@anker-in/lib 1.1.0-beta.5 → 1.1.0-beta.6
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/dist/cjs/constants.d.ts +2 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +2 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +2 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +2 -2
- package/package.json +4 -5
- package/src/constants.ts +1 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAwB,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var N=(e,o)=>{for(var c in o)n(e,c,{get:o[c],enumerable:!0})},R=(e,o,c,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let D of t(o))!u.call(e,D)&&D!==c&&n(e,D,{get:()=>o[D],enumerable:!(r=s(o,D))||r.enumerable});return e};var d=e=>R(n({},"__esModule",{value:!0}),e);var p={};N(p,{ROUNDED_BRANDS:()=>f});module.exports=d(p);const f=["eufy","soundcore"];
|
|
2
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants.ts"],
|
|
4
|
+
"sourcesContent": ["export const ROUNDED_BRANDS = ['eufy', 'soundcore']\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,IAAA,eAAAC,EAAAH,GAAO,MAAME,EAAiB,CAAC,OAAQ,WAAW",
|
|
6
|
+
"names": ["constants_exports", "__export", "ROUNDED_BRANDS", "__toCommonJS"]
|
|
7
|
+
}
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,cAAc,WAAW,CAAA;AAEzB,cAAc,QAAQ,CAAA;AAEtB,cAAc,SAAS,CAAA;AAEvB,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,cAAc,WAAW,CAAA;AAEzB,cAAc,QAAQ,CAAA;AAEtB,cAAc,SAAS,CAAA;AAEvB,cAAc,gBAAgB,CAAA;AAE9B,cAAc,aAAa,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("./context"),module.exports);r(o,require("./shopify"),module.exports);r(o,require("./cart"),module.exports);r(o,require("./utils"),module.exports);r(o,require("./registration"),module.exports);
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,e,p,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of c(e))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>e[m],enumerable:!(x=b(e,m))||x.enumerable});return f},r=(f,e,p)=>(t(f,e,"default"),p&&t(p,e,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);r(o,require("./context"),module.exports);r(o,require("./shopify"),module.exports);r(o,require("./cart"),module.exports);r(o,require("./utils"),module.exports);r(o,require("./registration"),module.exports);r(o,require("./constants"),module.exports);
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './context'\n\nexport * from './shopify'\n\nexport * from './cart'\n\nexport * from './utils'\n\nexport * from './registration'\n"],
|
|
5
|
-
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,qBAAd,gBAEAE,EAAAF,EAAc,qBAFd,gBAIAE,EAAAF,EAAc,kBAJd,gBAMAE,EAAAF,EAAc,mBANd,gBAQAE,EAAAF,EAAc,0BARd",
|
|
4
|
+
"sourcesContent": ["export * from './context'\n\nexport * from './shopify'\n\nexport * from './cart'\n\nexport * from './utils'\n\nexport * from './registration'\n\nexport * from './constants'\n"],
|
|
5
|
+
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,qBAAd,gBAEAE,EAAAF,EAAc,qBAFd,gBAIAE,EAAAF,EAAc,kBAJd,gBAMAE,EAAAF,EAAc,mBANd,gBAQAE,EAAAF,EAAc,0BARd,gBAUAE,EAAAF,EAAc,uBAVd",
|
|
6
6
|
"names": ["src_exports", "__toCommonJS", "__reExport"]
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAwB,CAAA"}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,cAAc,WAAW,CAAA;AAEzB,cAAc,QAAQ,CAAA;AAEtB,cAAc,SAAS,CAAA;AAEvB,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,cAAc,WAAW,CAAA;AAEzB,cAAc,QAAQ,CAAA;AAEtB,cAAc,SAAS,CAAA;AAEvB,cAAc,gBAAgB,CAAA;AAE9B,cAAc,aAAa,CAAA"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./context";export*from"./shopify";export*from"./cart";export*from"./utils";export*from"./registration";
|
|
1
|
+
export*from"./context";export*from"./shopify";export*from"./cart";export*from"./utils";export*from"./registration";export*from"./constants";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './context'\n\nexport * from './shopify'\n\nexport * from './cart'\n\nexport * from './utils'\n\nexport * from './registration'\n"],
|
|
5
|
-
"mappings": "AAAA,WAAc,YAEd,WAAc,YAEd,WAAc,SAEd,WAAc,UAEd,WAAc",
|
|
4
|
+
"sourcesContent": ["export * from './context'\n\nexport * from './shopify'\n\nexport * from './cart'\n\nexport * from './utils'\n\nexport * from './registration'\n\nexport * from './constants'\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,YAEd,WAAc,YAEd,WAAc,SAEd,WAAc,UAEd,WAAc,iBAEd,WAAc",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anker-in/lib",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.6",
|
|
4
4
|
"description": "Unified Anker headless library with shared context, Shopify integration, and cart utilities",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"react": "^18.0.0",
|
|
22
|
-
"react-dom": "^18.0.0",
|
|
23
21
|
"tailwind-merge": "^1.11.0",
|
|
24
22
|
"clsx": "^2.1.1"
|
|
25
23
|
},
|
|
@@ -54,10 +52,11 @@
|
|
|
54
52
|
"license": "MIT",
|
|
55
53
|
"scripts": {
|
|
56
54
|
"dev": "tsup --watch",
|
|
57
|
-
"build": "pnpm run build:js:esm & pnpm run build:js:cjs & pnpm run build:types",
|
|
55
|
+
"build": "pnpm run build:js:esm & pnpm run build:js:cjs & pnpm run build:types:esm & pnpm run build:types:cjs",
|
|
58
56
|
"build:js:cjs": "node esbuild-cjs.mjs",
|
|
59
57
|
"build:js:esm": "node esbuild-esm.mjs",
|
|
60
|
-
"build:types": "tsc --outdir dist",
|
|
58
|
+
"build:types:esm": "tsc --outdir dist/esm",
|
|
59
|
+
"build:types:cjs": "tsc --outdir dist/cjs",
|
|
61
60
|
"test": "jest --passWithNoTests",
|
|
62
61
|
"test:watch": "jest --watch",
|
|
63
62
|
"coverage": "jest --coverage",
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ROUNDED_BRANDS = ['eufy', 'soundcore']
|