@fast-simon/bigcommerce_customer 1.0.35 → 1.0.37
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/lib/@types/bigcommerceCustomerTypes.js +2 -0
- package/lib/@types/bigcommerceCustomerTypes.js.map +1 -0
- package/lib/main.d.ts +2 -2
- package/lib/main.js +2 -2
- package/lib/main.js.map +1 -1
- package/lib/utils/bigcommerceCustomer.d.ts +1 -1
- package/lib/utils/bigcommerceCustomer.js +2 -2
- package/package.json +34 -35
- package/lib/@types/bigcommerceCustomer.js +0 -2
- package/lib/@types/bigcommerceCustomer.js.map +0 -1
- /package/lib/@types/{bigcommerceCustomer.d.ts → bigcommerceCustomerTypes.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigcommerceCustomerTypes.js","sourceRoot":"","sources":["../../src/@types/bigcommerceCustomerTypes.ts"],"names":[],"mappings":""}
|
package/lib/main.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bigcommerceCustomer } from "./utils/bigcommerceCustomer";
|
|
2
|
+
export { bigcommerceCustomer };
|
package/lib/main.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bigcommerceCustomer } from "./utils/bigcommerceCustomer";
|
|
2
|
+
export { bigcommerceCustomer };
|
|
3
3
|
//# sourceMappingURL=main.js.map
|
package/lib/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EACH,mBAAmB,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EACH,mBAAmB,EACtB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const __ISP_BC_GROUP_KEY = "__ISP_BC_GROUP_KEY";
|
|
2
2
|
export declare const __ISP_BC_GROUP_KEY_SAVED_DATE = "__ISP_BC_GROUP_KEY_SAVED_DATE";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class bigcommerceCustomer {
|
|
4
4
|
private static get;
|
|
5
5
|
static setBigcommerceCustomerGroupId(): Promise<string | undefined>;
|
|
6
6
|
static getBigcommerceCustomerGroupId(): string | undefined;
|
|
@@ -2,7 +2,7 @@ export const __ISP_BC_GROUP_KEY = '__ISP_BC_GROUP_KEY';
|
|
|
2
2
|
export const __ISP_BC_GROUP_KEY_SAVED_DATE = '__ISP_BC_GROUP_KEY_SAVED_DATE';
|
|
3
3
|
import { API } from "./API";
|
|
4
4
|
const appClientId = "igimdk6jnrt5g5mbwui5gi7f7ke1w5p";
|
|
5
|
-
export class
|
|
5
|
+
export class bigcommerceCustomer {
|
|
6
6
|
static get() {
|
|
7
7
|
return API.get({
|
|
8
8
|
url: `/customer/current.jwt?app_client_id=${appClientId}`,
|
|
@@ -15,7 +15,7 @@ export class BigcommerceCustomer {
|
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
17
17
|
try {
|
|
18
|
-
const res = (await
|
|
18
|
+
const res = (await bigcommerceCustomer.get());
|
|
19
19
|
if (!res?.token)
|
|
20
20
|
return;
|
|
21
21
|
const currentCustomer = isp_parseJwt(res.token);
|
package/package.json
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fast-simon/bigcommerce_customer",
|
|
3
|
-
"files": [
|
|
4
|
-
"lib/**/*"
|
|
5
|
-
],
|
|
6
|
-
"type": "module",
|
|
7
|
-
"types": "lib/main.d.ts",
|
|
8
|
-
"version": "1.0.
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "vite",
|
|
11
|
-
"build": "tsc && vite build",
|
|
12
|
-
"preview": "vite preview",
|
|
13
|
-
"prepublishOnly": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command ./build.ps1",
|
|
14
|
-
"tsc": "tsc"
|
|
15
|
-
},
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"author": {
|
|
18
|
-
"name": "Fast Simon inc",
|
|
19
|
-
"url": "",
|
|
20
|
-
"email": ""
|
|
21
|
-
},
|
|
22
|
-
"main": "lib/main.js",
|
|
23
|
-
"directories": {
|
|
24
|
-
"lib": "lib"
|
|
25
|
-
},
|
|
26
|
-
"description": "",
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fast-simon/bigcommerce_customer",
|
|
3
|
+
"files": [
|
|
4
|
+
"lib/**/*"
|
|
5
|
+
],
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "lib/main.d.ts",
|
|
8
|
+
"version": "1.0.37",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "tsc && vite build",
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"prepublishOnly": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command ./build.ps1",
|
|
14
|
+
"tsc": "tsc"
|
|
15
|
+
},
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Fast Simon inc",
|
|
19
|
+
"url": "",
|
|
20
|
+
"email": ""
|
|
21
|
+
},
|
|
22
|
+
"main": "lib/main.js",
|
|
23
|
+
"directories": {
|
|
24
|
+
"lib": "lib"
|
|
25
|
+
},
|
|
26
|
+
"description": "",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "^4.5.5",
|
|
29
|
+
"vite": "^2.8.0"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"axios": "^0.24.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bigcommerceCustomer.js","sourceRoot":"","sources":["../../src/@types/bigcommerceCustomer.ts"],"names":[],"mappings":""}
|
|
File without changes
|