oc 0.50.50 → 0.50.52
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 +1 -1
- package/.turbo/turbo-test.log +47 -36
- package/CHANGELOG.md +12 -0
- package/dist/cli/facade/dev.d.ts +12 -12
- package/dist/components/oc-client/_package/package.json +5 -5
- package/dist/components/oc-client/_package/server.js +1 -1
- package/dist/components/oc-client/_package/src/oc-client.js +54 -56
- package/dist/components/oc-client/_package/src/oc-client.min.js +1 -1
- package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
- package/dist/components/oc-client/package-lock.json +2635 -10333
- package/dist/components/oc-client/package.json +2 -2
- package/dist/components/oc-client/src/oc-client.js +54 -56
- package/dist/components/oc-client/src/oc-client.min.js +1 -1
- package/dist/components/oc-client/src/oc-client.min.map +1 -1
- package/dist/registry/domain/extract-package.d.ts +2 -0
- package/dist/registry/domain/extract-package.js +3 -1
- package/dist/registry/routes/components.js +2 -2
- package/dist/registry/routes/publish.js +7 -0
- package/dist/registry/views/index.js +2 -1
- package/dist/registry/views/info.js +4 -3
- package/dist/registry/views/partials/component-parameters.js +6 -2
- package/dist/registry/views/partials/components-dependencies.js +1 -1
- package/dist/registry/views/partials/components-list.js +1 -1
- package/dist/registry/views/partials/components-plugins.js +1 -1
- package/dist/registry/views/partials/components-templates.js +3 -3
- package/dist/registry/views/partials/icon.d.ts +6 -0
- package/dist/registry/views/partials/icon.js +22 -0
- package/dist/registry/views/partials/layout.js +8 -4
- package/dist/registry/views/static/index.d.ts +1 -1
- package/dist/registry/views/static/index.js +22 -4
- package/dist/registry/views/static/info.d.ts +1 -1
- package/dist/registry/views/static/info.js +29 -0
- package/dist/registry/views/static/style.d.ts +1 -1
- package/dist/registry/views/static/style.js +799 -962
- package/dist/utils/put.js +6 -1
- package/package.json +24 -23
- package/tsconfig.json +1 -0
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.52",
|
|
4
4
|
"description": "A framework for developing and distributing html components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -37,40 +37,40 @@
|
|
|
37
37
|
"oc"
|
|
38
38
|
],
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@biomejs/biome": "2.
|
|
40
|
+
"@biomejs/biome": "^2.5.0",
|
|
41
41
|
"@types/accept-language-parser": "^1.5.8",
|
|
42
42
|
"@types/async": "^3.2.25",
|
|
43
|
-
"@types/bun": "^1.
|
|
44
|
-
"@types/cookie-parser": "^1.4.
|
|
43
|
+
"@types/bun": "^1.3.14",
|
|
44
|
+
"@types/cookie-parser": "^1.4.10",
|
|
45
45
|
"@types/cross-spawn": "^6.0.6",
|
|
46
46
|
"@types/errorhandler": "^1.5.3",
|
|
47
|
-
"@types/express": "^5.0.
|
|
47
|
+
"@types/express": "^5.0.6",
|
|
48
48
|
"@types/fs-extra": "^11.0.4",
|
|
49
49
|
"@types/livereload": "^0.9.5",
|
|
50
50
|
"@types/morgan": "^1.9.10",
|
|
51
|
-
"@types/multer": "^2.
|
|
52
|
-
"@types/node": "^
|
|
51
|
+
"@types/multer": "^2.1.0",
|
|
52
|
+
"@types/node": "^25.9.3",
|
|
53
53
|
"@types/parse-author": "^2.0.3",
|
|
54
54
|
"@types/read": "^0.0.32",
|
|
55
55
|
"@types/response-time": "^2.3.9",
|
|
56
56
|
"@types/semver": "^7.7.1",
|
|
57
57
|
"@types/targz": "^1.0.5",
|
|
58
|
-
"@types/yargs": "^17.0.
|
|
59
|
-
"chai": "^6.
|
|
58
|
+
"@types/yargs": "^17.0.35",
|
|
59
|
+
"chai": "^6.2.2",
|
|
60
60
|
"chalk": "^4.1.2",
|
|
61
61
|
"glob": "^7.2.3",
|
|
62
62
|
"injectr": "^0.5.1",
|
|
63
63
|
"minimist": "^1.2.8",
|
|
64
|
-
"mocha": "^11.7.
|
|
64
|
+
"mocha": "^11.7.6",
|
|
65
65
|
"node-emoji": "^2.2.0",
|
|
66
|
-
"rimraf": "^6.
|
|
66
|
+
"rimraf": "^6.1.3",
|
|
67
67
|
"sinon": "^21.0.0",
|
|
68
68
|
"type-fest": "^2.19.0",
|
|
69
|
-
"typescript": "^
|
|
69
|
+
"typescript": "^6.0.3"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@kitajs/html": "^4.2.
|
|
73
|
-
"@kitajs/ts-html-plugin": "^4.1.
|
|
72
|
+
"@kitajs/html": "^4.2.13",
|
|
73
|
+
"@kitajs/ts-html-plugin": "^4.1.4",
|
|
74
74
|
"@rdevis/turbo-stream": "^2.4.1",
|
|
75
75
|
"@types/lodash.isequal": "^4.5.8",
|
|
76
76
|
"accept-language-parser": "^1.5.0",
|
|
@@ -82,15 +82,16 @@
|
|
|
82
82
|
"cookie-parser": "^1.4.7",
|
|
83
83
|
"cross-spawn": "^7.0.6",
|
|
84
84
|
"dependency-graph": "^1.0.0",
|
|
85
|
-
"dotenv": "^17.
|
|
86
|
-
"errorhandler": "^1.5.
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
85
|
+
"dotenv": "^17.4.2",
|
|
86
|
+
"errorhandler": "^1.5.2",
|
|
87
|
+
"esbuild": "^0.25.12",
|
|
88
|
+
"express": "^5.2.1",
|
|
89
|
+
"form-data": "^4.0.6",
|
|
90
|
+
"fs-extra": "^11.3.5",
|
|
90
91
|
"getport": "^0.1.0",
|
|
91
92
|
"livereload": "^0.10.3",
|
|
92
93
|
"lodash.isequal": "^4.5.0",
|
|
93
|
-
"morgan": "^1.
|
|
94
|
+
"morgan": "^1.11.0",
|
|
94
95
|
"multer": "^2.0.2",
|
|
95
96
|
"nice-cache": "^0.0.5",
|
|
96
97
|
"oc-client": "^4.0.3",
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
"oc-s3-storage-adapter": "^2.2.2",
|
|
101
102
|
"oc-storage-adapters-utils": "^2.1.2",
|
|
102
103
|
"oc-template-es6": "^2.0.0",
|
|
103
|
-
"oc-template-es6-compiler": "^7.1.
|
|
104
|
+
"oc-template-es6-compiler": "^7.1.4",
|
|
104
105
|
"oc-template-handlebars": "^6.0.26",
|
|
105
106
|
"oc-template-handlebars-compiler": "^6.7.1",
|
|
106
107
|
"oc-template-jade": "^7.0.6",
|
|
@@ -110,13 +111,13 @@
|
|
|
110
111
|
"read": "^1.0.7",
|
|
111
112
|
"require-package-name": "^2.0.1",
|
|
112
113
|
"response-time": "^2.3.4",
|
|
113
|
-
"semver": "^7.
|
|
114
|
+
"semver": "^7.8.4",
|
|
114
115
|
"semver-extra": "^3.0.0",
|
|
115
116
|
"serialize-error": "^12.0.0",
|
|
116
117
|
"source-map": "^0.7.6",
|
|
117
118
|
"targz": "^1.0.1",
|
|
118
119
|
"try-require": "^1.2.1",
|
|
119
|
-
"undici": "^
|
|
120
|
+
"undici": "^8.4.1",
|
|
120
121
|
"universalify": "^2.0.1",
|
|
121
122
|
"yargs": "^17.7.2"
|
|
122
123
|
}
|