shopify_storefront_sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs-wrapper.js ADDED
@@ -0,0 +1,2 @@
1
+ const ShopifyStorefront = require("./dist/cjs/index.js").default;
2
+ module.exports = ShopifyStorefront;
@@ -30,12 +30,12 @@
30
30
  * This test file demonstrates how to use the SDK in real-world scenarios.
31
31
  * ============================================================================
32
32
  */
33
- import ShopifyStorefront from "../index.js";
33
+ import ShopifyStoreFront from "../index.js";
34
34
  import * as dotenv from "dotenv";
35
35
  dotenv.config();
36
36
  const { SHOPIFY_STORE_DOMAIN, SHOPIFY_STOREFRONT_TOKEN } = process.env;
37
37
  // Instantiate the SDK once
38
- const client = new ShopifyStorefront({
38
+ const client = new ShopifyStoreFront({
39
39
  storeUrl: String(SHOPIFY_STORE_DOMAIN),
40
40
  storefrontToken: String(SHOPIFY_STOREFRONT_TOKEN),
41
41
  });
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "shopify_storefront_sdk",
3
- "version": "1.0.2",
4
- "main": "dist/cjs/index.js",
3
+ "version": "1.0.3",
4
+ "main": "cjs-wrapper.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": "./dist/index.js",
11
- "require": "./dist/cjs/index.js",
11
+ "require": "./cjs-wrapper.js",
12
12
  "types": "./dist/index.d.ts"
13
13
  },
14
14
  "./package.json": "./package.json"
@@ -16,8 +16,10 @@
16
16
  "files": [
17
17
  "dist",
18
18
  "README.md",
19
- "LICENSE"
19
+ "LICENSE",
20
+ "cjs-wrapper.js"
20
21
  ],
22
+ "sideEffects": false,
21
23
  "scripts": {
22
24
  "clean": "rimraf dist",
23
25
  "dev": "node --loader ts-node/esm src/tests/test.ts",