oc 0.50.51 → 0.50.53
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/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +39 -35
- package/CHANGELOG.md +12 -0
- package/dist/cli/facade/publish.js +4 -1
- package/dist/components/oc-client/_package/package.json +4 -4
- package/dist/components/oc-client/_package/server.js +1 -1
- package/dist/components/oc-client/package.json +1 -1
- package/dist/utils/put.js +6 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> oc@0.50.
|
|
3
|
+
> oc@0.50.52 prebuild
|
|
4
4
|
> rimraf dist
|
|
5
5
|
|
|
6
6
|
⠙[1G[0K
|
|
7
|
-
> oc@0.50.
|
|
7
|
+
> oc@0.50.52 build
|
|
8
8
|
> npm run lint && tsc && node tasks/build.js
|
|
9
9
|
|
|
10
10
|
⠙[1G[0K
|
|
11
|
-
> oc@0.50.
|
|
11
|
+
> oc@0.50.52 lint
|
|
12
12
|
> npx @biomejs/biome check preview src test tasks
|
|
13
13
|
|
|
14
|
-
⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K[0m[34mChecked
|
|
14
|
+
⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K[0m[34mChecked 129 files in 39[0m[0m[2m[34mms[0m[0m[34m.[0m[0m[34m No fixes applied.[0m
|
|
15
15
|
⠙[1G[0K⠙[1G[0K[0m[32mBuilding client[39m[0m
|
|
16
16
|
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/src/components/oc-client/
|
|
17
17
|
[0m[32mClient has been built and packaged[39m[0m 👍
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> oc@0.50.
|
|
3
|
+
> oc@0.50.52 test
|
|
4
4
|
> npm run build && node tasks/mochaTest.js
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
> oc@0.50.
|
|
7
|
+
> oc@0.50.52 prebuild
|
|
8
8
|
> rimraf dist
|
|
9
9
|
|
|
10
10
|
⠙[1G[0K
|
|
11
|
-
> oc@0.50.
|
|
11
|
+
> oc@0.50.52 build
|
|
12
12
|
> npm run lint && tsc && node tasks/build.js
|
|
13
13
|
|
|
14
14
|
⠙[1G[0K
|
|
15
|
-
> oc@0.50.
|
|
15
|
+
> oc@0.50.52 lint
|
|
16
16
|
> npx @biomejs/biome check preview src test tasks
|
|
17
17
|
|
|
18
|
-
⠙[1G[0K⠹[1G[0K⠸[1G[0K[0m[34mChecked
|
|
18
|
+
⠙[1G[0K⠹[1G[0K⠸[1G[0K[0m[34mChecked 129 files in 40[0m[0m[2m[34mms[0m[0m[34m.[0m[0m[34m No fixes applied.[0m
|
|
19
19
|
⠙[1G[0K⠙[1G[0K[0m[32mBuilding client[39m[0m
|
|
20
20
|
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/src/components/oc-client/
|
|
21
21
|
[0m[32mClient has been built and packaged[39m[0m 👍
|
|
@@ -35,6 +35,13 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
35
35
|
[0m[32mTest components packaged[39m[0m 👍
|
|
36
36
|
|
|
37
37
|
[0m[0m
|
|
38
|
+
[0m The targz dependency[0m
|
|
39
|
+
[0m when compressing a folder with targz[0m
|
|
40
|
+
[32m [32m✔[39m[0m[90m should create the file[0m
|
|
41
|
+
[0m when decompressing the created file[0m
|
|
42
|
+
[32m [32m✔[39m[0m[90m should throw no error[0m
|
|
43
|
+
[32m [32m✔[39m[0m[90m should contain the files[0m
|
|
44
|
+
|
|
38
45
|
[0m cli : domain : clean[0m
|
|
39
46
|
[0m when fetching the list of folders to clean[0m
|
|
40
47
|
[0m happy path[0m
|
|
@@ -286,7 +293,7 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
286
293
|
[32m [32m✔[39m[0m[90m should show error message[0m
|
|
287
294
|
[0m when href = /component[0m
|
|
288
295
|
[32m [32m✔[39m[0m[90m href should be /component/~preview/[0m
|
|
289
|
-
(node:
|
|
296
|
+
(node:24225) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
|
|
290
297
|
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
291
298
|
[0m when href = /component/1.X.X[0m
|
|
292
299
|
[32m [32m✔[39m[0m[90m href should be /component/1.X.X/~preview/[0m
|
|
@@ -675,29 +682,29 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
675
682
|
|
|
676
683
|
[0m registry : domain : options-sanitiser[0m
|
|
677
684
|
[0m when options is empty[0m
|
|
678
|
-
[32m [32m✔[39m[0m[90m should set prefix to "/"[0m[31m (
|
|
679
|
-
[32m [32m✔[39m[0m[90m should set tempDir to "./temp/"[0m[31m (
|
|
680
|
-
[32m [32m✔[39m[0m[90m should set hotReloading to false[0m[
|
|
681
|
-
[32m [32m✔[39m[0m[90m should set verbosity to 0[0m[
|
|
682
|
-
[32m [32m✔[39m[0m[90m should set customHeadersToSkipOnWeakVersion to [][0m[
|
|
683
|
-
[32m [32m✔[39m[0m[90m should set timeout to 120000[0m[33m (
|
|
685
|
+
[32m [32m✔[39m[0m[90m should set prefix to "/"[0m[31m (268ms)[0m
|
|
686
|
+
[32m [32m✔[39m[0m[90m should set tempDir to "./temp/"[0m[31m (96ms)[0m
|
|
687
|
+
[32m [32m✔[39m[0m[90m should set hotReloading to false[0m[31m (103ms)[0m
|
|
688
|
+
[32m [32m✔[39m[0m[90m should set verbosity to 0[0m[33m (73ms)[0m
|
|
689
|
+
[32m [32m✔[39m[0m[90m should set customHeadersToSkipOnWeakVersion to [][0m[31m (85ms)[0m
|
|
690
|
+
[32m [32m✔[39m[0m[90m should set timeout to 120000[0m[33m (65ms)[0m
|
|
684
691
|
[0m when verbosity is provided[0m
|
|
685
|
-
[32m [32m✔[39m[0m[90m should leave value untouched[0m[33m (
|
|
692
|
+
[32m [32m✔[39m[0m[90m should leave value untouched[0m[33m (65ms)[0m
|
|
686
693
|
[0m customHeadersToSkipOnWeakVersion[0m
|
|
687
694
|
[0m when it contains valid elements[0m
|
|
688
|
-
[32m [32m✔[39m[0m[90m should convert the array elements to lower case[0m[33m (
|
|
695
|
+
[32m [32m✔[39m[0m[90m should convert the array elements to lower case[0m[33m (68ms)[0m
|
|
689
696
|
[0m fallbackRegistryUrl[0m
|
|
690
697
|
[0m when fallbackRegistryUrl doesn't contain / at the end of url[0m
|
|
691
|
-
[32m [32m✔[39m[0m[90m should add `/` at the end of url[0m[33m (
|
|
698
|
+
[32m [32m✔[39m[0m[90m should add `/` at the end of url[0m[33m (62ms)[0m
|
|
692
699
|
[0m when fallbackRegistryUrl contains `/` at the end of url[0m
|
|
693
|
-
[32m [32m✔[39m[0m[90m should not modify fallbackRegistryUrl url[0m[33m (
|
|
700
|
+
[32m [32m✔[39m[0m[90m should not modify fallbackRegistryUrl url[0m[33m (62ms)[0m
|
|
694
701
|
[0m prefix and baseUrl sanitization[0m
|
|
695
|
-
[32m [32m✔[39m[0m[90m should support various scenarios correctly[0m[31m (
|
|
702
|
+
[32m [32m✔[39m[0m[90m should support various scenarios correctly[0m[31m (832ms)[0m
|
|
696
703
|
[0m when pollingInterval[0m
|
|
697
704
|
[0m is provided[0m
|
|
698
|
-
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (
|
|
705
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (58ms)[0m
|
|
699
706
|
[0m is not provided[0m
|
|
700
|
-
[32m [32m✔[39m[0m[90m should initialize it as 5000[0m[33m (
|
|
707
|
+
[32m [32m✔[39m[0m[90m should initialize it as 5000[0m[33m (62ms)[0m
|
|
701
708
|
[0m when templates[0m
|
|
702
709
|
[0m is provided[0m
|
|
703
710
|
[32m [32m✔[39m[0m[90m should not modify it[0m
|
|
@@ -705,27 +712,27 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
705
712
|
[32m [32m✔[39m[0m[90m should initialize it as 5000[0m[33m (56ms)[0m
|
|
706
713
|
[0m when env[0m
|
|
707
714
|
[0m is provided[0m
|
|
708
|
-
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (
|
|
715
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (57ms)[0m
|
|
709
716
|
[0m is not provided[0m
|
|
710
|
-
[32m [32m✔[39m[0m[90m should initialize it as an empty {}[0m[33m (
|
|
717
|
+
[32m [32m✔[39m[0m[90m should initialize it as an empty {}[0m[33m (56ms)[0m
|
|
711
718
|
[0m storage adapter configuration[0m
|
|
712
719
|
[0m when legacy "s3" param[0m
|
|
713
720
|
[0m is provided[0m
|
|
714
|
-
[32m [32m✔[39m[0m[90m should create a storage.adapter configuration accordingly[0m[31m (
|
|
721
|
+
[32m [32m✔[39m[0m[90m should create a storage.adapter configuration accordingly[0m[31m (272ms)[0m
|
|
715
722
|
[0m when no storage adapter[0m
|
|
716
723
|
[0m is provided[0m
|
|
717
|
-
[32m [32m✔[39m[0m[90m should default to the oc-s3-storage-adapter[0m[33m (
|
|
724
|
+
[32m [32m✔[39m[0m[90m should default to the oc-s3-storage-adapter[0m[33m (57ms)[0m
|
|
718
725
|
[0m when refreshInterval[0m
|
|
719
726
|
[0m is provided[0m
|
|
720
727
|
[32m [32m✔[39m[0m[90m should pass the refreshInterval to the storage options[0m[33m (66ms)[0m
|
|
721
728
|
[0m when verbosity[0m
|
|
722
729
|
[0m is provided[0m
|
|
723
|
-
[32m [32m✔[39m[0m[90m should pass the verbosity to the storage options[0m[33m (
|
|
730
|
+
[32m [32m✔[39m[0m[90m should pass the verbosity to the storage options[0m[33m (54ms)[0m
|
|
724
731
|
[0m when storage.path[0m
|
|
725
732
|
[0m does not include a protocol[0m
|
|
726
|
-
[32m [32m✔[39m[0m[90m should sanitize the path to rely on the https protocol[0m[
|
|
733
|
+
[32m [32m✔[39m[0m[90m should sanitize the path to rely on the https protocol[0m[31m (78ms)[0m
|
|
727
734
|
[0m does include a prefix[0m
|
|
728
|
-
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (
|
|
735
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (56ms)[0m
|
|
729
736
|
|
|
730
737
|
[0m registry : domain : plugins-initialiser[0m
|
|
731
738
|
[0m when initialising not valid plugins[0m
|
|
@@ -1158,7 +1165,7 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
1158
1165
|
[32m [32m✔[39m[0m[90m should return component's name and request version for both requests[0m
|
|
1159
1166
|
[0m when getting a component that implements a plugin[0m
|
|
1160
1167
|
[0m when plugin not declared in package.json[0m
|
|
1161
|
-
(node:
|
|
1168
|
+
(node:24225) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. (Triggered by calling processImmediate on process.)
|
|
1162
1169
|
[32m [32m✔[39m[0m[90m should return 500 status code[0m
|
|
1163
1170
|
[32m [32m✔[39m[0m[90m should respond with GENERIC_ERROR error code[0m
|
|
1164
1171
|
[32m [32m✔[39m[0m[90m should respond with error message including missing plugin[0m
|
|
@@ -1323,6 +1330,10 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
1323
1330
|
[0m when is discoverable[0m
|
|
1324
1331
|
[32m [32m✔[39m[0m[90m should return the list of plugins[0m
|
|
1325
1332
|
|
|
1333
|
+
[0m registry : routes : publish[0m
|
|
1334
|
+
[0m when publish finishes[0m
|
|
1335
|
+
[32m [32m✔[39m[0m[90m should remove only the uploaded package and extracted package folder[0m
|
|
1336
|
+
|
|
1326
1337
|
[0m registry : routes : validate[0m
|
|
1327
1338
|
[0m when packageJson is missing in body[0m
|
|
1328
1339
|
[32m [32m✔[39m[0m[90m should return 400 status[0m
|
|
@@ -1455,13 +1466,6 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
1455
1466
|
[0m when a version is not included[0m
|
|
1456
1467
|
[32m [32m✔[39m[0m[90m should return the unmodified dependency[0m
|
|
1457
1468
|
|
|
1458
|
-
[0m The targz dependency[0m
|
|
1459
|
-
[0m when compressing a folder with targz[0m
|
|
1460
|
-
[32m [32m✔[39m[0m[90m should create the file[0m
|
|
1461
|
-
[0m when decompressing the created file[0m
|
|
1462
|
-
[32m [32m✔[39m[0m[90m should throw no error[0m
|
|
1463
|
-
[32m [32m✔[39m[0m[90m should contain the files[0m
|
|
1464
|
-
|
|
1465
1469
|
[0m registry (ui interface)[0m
|
|
1466
1470
|
[0m GET / with Accept: text/html[0m
|
|
1467
1471
|
[32m [32m✔[39m[0m[90m should not error[0m
|
|
@@ -1618,6 +1622,6 @@ compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/comp
|
|
|
1618
1622
|
[32m [32m✔[39m[0m[90m should respond with components parameters[0m
|
|
1619
1623
|
|
|
1620
1624
|
|
|
1621
|
-
[92m [0m[32m
|
|
1625
|
+
[92m [0m[32m 848 passing[0m[90m (9s)[0m
|
|
1622
1626
|
|
|
1623
1627
|
⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
|
@@ -107,7 +107,10 @@ const publish = ({ logger, registry, local }) => (0, universalify_1.fromPromise)
|
|
|
107
107
|
}
|
|
108
108
|
await putComponentToRegistry({
|
|
109
109
|
route: componentRoute,
|
|
110
|
-
path: compressedPackagePath
|
|
110
|
+
path: compressedPackagePath,
|
|
111
|
+
username: opts.username,
|
|
112
|
+
password: opts.password,
|
|
113
|
+
token: opts.token
|
|
111
114
|
});
|
|
112
115
|
}
|
|
113
116
|
await local.cleanup(compressedPackagePath);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-client",
|
|
3
3
|
"description": "The OpenComponents client-side javascript client",
|
|
4
|
-
"version": "0.50.
|
|
4
|
+
"version": "0.50.52",
|
|
5
5
|
"repository": "https://github.com/opencomponents/oc/tree/master/components/oc-client",
|
|
6
6
|
"author": "Matteo Figus <matteofigus@gmail.com>",
|
|
7
7
|
"oc": {
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dataProvider": {
|
|
25
25
|
"type": "node.js",
|
|
26
|
-
"hashKey": "
|
|
26
|
+
"hashKey": "e81ba1f42539b678079cb54ba2d4f72005ee12dd",
|
|
27
27
|
"src": "server.js",
|
|
28
28
|
"size": 644
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
"version": "0.50.
|
|
31
|
+
"version": "0.50.52",
|
|
32
32
|
"packaged": true,
|
|
33
|
-
"date":
|
|
33
|
+
"date": 1781776190510
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"oc-template-es6-compiler": "^8.0.0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(t,s)=>{const{staticPath:e,templates:a}=t;return s(null,{staticPath:e,templates:a})},r=(t,s)=>{o(t,(e,a,i={})=>{if(e)return s(e);if(a==null)return s(null,{__oc_emptyResponse:!0});const n=t.action?a:Object.assign({},a,{_staticPath:t.staticPath,_baseUrl:t.baseUrl,_componentName:"oc-client",_componentVersion:"0.50.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(t,s)=>{const{staticPath:e,templates:a}=t;return s(null,{staticPath:e,templates:a})},r=(t,s)=>{o(t,(e,a,i={})=>{if(e)return s(e);if(a==null)return s(null,{__oc_emptyResponse:!0});const n=t.action?a:Object.assign({},a,{_staticPath:t.staticPath,_baseUrl:t.baseUrl,_componentName:"oc-client",_componentVersion:"0.50.52"}),c=t.staticPath.indexOf("http")===0?t.staticPath:"https:"+t.staticPath;return s(null,Object.assign({},{component:{key:"c4abb6bf4dc6657fb718a45b64bd6b2cb92e874a",src:c+"template.js",props:n,esm:!1,development:void 0}}))})};exports.data=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-client",
|
|
3
3
|
"description": "The OpenComponents client-side javascript client",
|
|
4
|
-
"version": "0.50.
|
|
4
|
+
"version": "0.50.52",
|
|
5
5
|
"repository": "https://github.com/opencomponents/oc/tree/master/components/oc-client",
|
|
6
6
|
"author": "Matteo Figus <matteofigus@gmail.com>",
|
|
7
7
|
"oc": {
|
package/dist/utils/put.js
CHANGED
|
@@ -7,6 +7,10 @@ const node_path_1 = __importDefault(require("node:path"));
|
|
|
7
7
|
const form_data_1 = __importDefault(require("form-data"));
|
|
8
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
9
|
const undici_1 = require("undici");
|
|
10
|
+
// undici v8 enables HTTP/2 by default when the TLS server negotiates it via
|
|
11
|
+
// ALPN. Some gateways/proxies reset large multipart uploads over h2, surfacing
|
|
12
|
+
// as "Premature close". Force HTTP/1.1 for the publish upload to avoid this.
|
|
13
|
+
const dispatcher = new undici_1.Agent({ allowH2: false });
|
|
10
14
|
async function put(urlPath, files, headers) {
|
|
11
15
|
const form = new form_data_1.default();
|
|
12
16
|
if (!Array.isArray(files)) {
|
|
@@ -19,7 +23,8 @@ async function put(urlPath, files, headers) {
|
|
|
19
23
|
const res = await (0, undici_1.request)(urlPath, {
|
|
20
24
|
headers: { ...headers, ...form.getHeaders() },
|
|
21
25
|
method: 'PUT',
|
|
22
|
-
body: form
|
|
26
|
+
body: form,
|
|
27
|
+
dispatcher
|
|
23
28
|
});
|
|
24
29
|
const response = await res.body.text();
|
|
25
30
|
if (res.statusCode !== 200) {
|