@blotoutio/providers-blotout-wallet-sdk 0.41.1 → 0.42.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-blotout-wallet-sdk",
3
- "version": "0.41.1",
3
+ "version": "0.42.0",
4
4
  "description": "Blotout Wallet SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",
@@ -16,10 +16,15 @@
16
16
  "import": "./index.mjs",
17
17
  "default": "./index.js"
18
18
  },
19
- "./stores/shopify.js": {
19
+ "./stores/shopify/index.js": {
20
20
  "require": "./stores/shopify/index.cjs.js",
21
21
  "import": "./stores/shopify/index.mjs",
22
22
  "default": "./stores/shopify/index.js"
23
+ },
24
+ "./stores/demo/index.js": {
25
+ "require": "./stores/demo/index.cjs.js",
26
+ "import": "./stores/demo/index.mjs",
27
+ "default": "./stores/demo/index.js"
23
28
  }
24
29
  },
25
30
  "repository": {
@@ -1,6 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const symbol = Symbol.for('blotout-store-implementation');
3
+ var _a;
4
+ const registryKey = Symbol.for('blotout-wallet');
5
+ (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
4
6
 
5
7
  const createShopApi = (fetchOverride = window.fetch) => ({
6
8
  addItems(items) {
@@ -55,4 +57,4 @@ const createShopApi = (fetchOverride = window.fetch) => ({
55
57
  })));
56
58
  },
57
59
  });
58
- window[symbol] = createShopApi;
60
+ window[registryKey].storeAPIFactory = createShopApi;
@@ -1,7 +1,9 @@
1
1
  (function () {
2
2
  'use strict';
3
3
 
4
- const symbol = Symbol.for('blotout-store-implementation');
4
+ var _a;
5
+ const registryKey = Symbol.for('blotout-wallet');
6
+ (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
5
7
 
6
8
  const createShopApi = (fetchOverride = window.fetch) => ({
7
9
  addItems(items) {
@@ -56,6 +58,6 @@
56
58
  })));
57
59
  },
58
60
  });
59
- window[symbol] = createShopApi;
61
+ window[registryKey].storeAPIFactory = createShopApi;
60
62
 
61
63
  })();
@@ -1,4 +1,6 @@
1
- const symbol = Symbol.for('blotout-store-implementation');
1
+ var _a;
2
+ const registryKey = Symbol.for('blotout-wallet');
3
+ (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
2
4
 
3
5
  const createShopApi = (fetchOverride = window.fetch) => ({
4
6
  addItems(items) {
@@ -53,4 +55,4 @@ const createShopApi = (fetchOverride = window.fetch) => ({
53
55
  })));
54
56
  },
55
57
  });
56
- window[symbol] = createShopApi;
58
+ window[registryKey].storeAPIFactory = createShopApi;