@ordergroove/smi-serve 1.3.4 → 1.3.5
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/CHANGELOG.md +8 -0
- package/README.md +2 -1
- package/package.json +3 -3
- package/src/auth.js +6 -3
- package/src/init.js +5 -6
- package/src/partials/devmode.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.5](https://github.com/ordergroove/plush-toys/compare/@ordergroove/smi-serve@1.3.4...@ordergroove/smi-serve@1.3.5) (2023-12-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ordergroove/smi-serve
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.3.4](https://github.com/ordergroove/plush-toys/compare/@ordergroove/smi-serve@1.3.3...@ordergroove/smi-serve@1.3.4) (2023-11-28)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @ordergroove/smi-serve
|
package/README.md
CHANGED
|
@@ -29,7 +29,8 @@ To initialize the current directory with assets from Ordergroove RC3 and start t
|
|
|
29
29
|
`npx @ordergroove/smi-serve init`
|
|
30
30
|
|
|
31
31
|
This command initializes the current directory with assets from Ordergroove RC3 and starts a development server for serving the initialized assets. Any initialization errors will be displayed.
|
|
32
|
-
Options:
|
|
32
|
+
Options:
|
|
33
|
+
|
|
33
34
|
- `-y` Answer all prompts as yes and silent the prompts
|
|
34
35
|
- `--force` or `-f` Force override local files if present
|
|
35
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ordergroove/smi-serve",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Utility to serve a SMI template locally",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Eugenio Lattanzio <eugenio.lattanzio@ordergroove.com>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/ordergroove/plush-toys/tree/master/packages/smi-serve#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ordergroove/smi-precompile": "^1.7.
|
|
24
|
+
"@ordergroove/smi-precompile": "^1.7.10",
|
|
25
25
|
"adm-zip": "^0.5.10",
|
|
26
26
|
"esbuild": "^0.19.2",
|
|
27
27
|
"esbuild-plugin-less": "^1.2.4",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"ora": "^5.4.1",
|
|
33
33
|
"yargs": "^17.7.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0110539ccd5202a8c19a67fa44e4d924dd597e89"
|
|
36
36
|
}
|
package/src/auth.js
CHANGED
|
@@ -118,9 +118,12 @@ async function login(args) {
|
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
// terminate the program after 5 minutes waiting for auth.
|
|
121
|
-
setTimeout(
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
setTimeout(
|
|
122
|
+
() => {
|
|
123
|
+
rejectAuth(new Error('Auth timeout'));
|
|
124
|
+
},
|
|
125
|
+
5 * 60 * 1000
|
|
126
|
+
);
|
|
124
127
|
});
|
|
125
128
|
}
|
|
126
129
|
|
package/src/init.js
CHANGED
|
@@ -78,12 +78,11 @@ async function init(args) {
|
|
|
78
78
|
|
|
79
79
|
const [token, merchant] = await chooseMerchant(args);
|
|
80
80
|
|
|
81
|
-
const {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
);
|
|
81
|
+
const {
|
|
82
|
+
configs: msiConfigs,
|
|
83
|
+
meta_fields,
|
|
84
|
+
meta_fields_default
|
|
85
|
+
} = await getConfigs(args, SUBSCRIPTION_MANAGEMENT_ENDPOINT, merchant, token);
|
|
87
86
|
|
|
88
87
|
const { useMerchantSpecific } = args.yes
|
|
89
88
|
? { useMerchantSpecific: true }
|
package/src/partials/devmode.js
CHANGED
|
@@ -17,8 +17,8 @@ export const auth_config = params.has('auth')
|
|
|
17
17
|
auth: params.has('auth')
|
|
18
18
|
}
|
|
19
19
|
: OG_HMAC_AUTH
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
? { env: OG_ENV, auth: OG_HMAC_AUTH }
|
|
21
|
+
: {
|
|
22
|
+
auth_url: 'https://static-origin-server.ordergroove.com/0e5de2bedc5e11e3a2e4bc764e106cf4/demo/auth.json',
|
|
23
|
+
env: 'staging'
|
|
24
|
+
};
|