How to use the @commercetools/sync-actions.createSyncStates function in @commercetools/sync-actions

To help you get started, we’ve selected a few @commercetools/sync-actions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / nodejs / packages / state-importer / src / main.js View on Github external
createAuthMiddlewareForClientCredentialsFlow({
          ...this.apiConfig,
          fetch,
        }),
        createUserAgentMiddleware({
          libraryName: pkg.name,
          libraryVersion: pkg.version,
        }),
        createHttpMiddleware({
          host: this.apiConfig.apiUrl,
          fetch,
        }),
      ],
    })

    this.syncStates = createSyncStates()

    this.logger = logger || {
      error: () => {},
      warn: () => {},
      info: () => {},
      debug: () => {},
    }
    this._resetSummary()
  }

@commercetools/sync-actions

Build API update actions for the commercetools platform.

MIT
Latest version published 6 days ago

Package Health Score

87 / 100
Full package analysis