@dainprotocol/cli 1.2.24 → 1.2.26
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/commands/build.js +17 -7
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/testchat.js +17 -7
- package/package.json +5 -5
package/dist/commands/build.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/commands/deploy.js
CHANGED
|
@@ -173,7 +173,7 @@ function deployAndPushFiles(startDeployUrl, envArray, isProduction, environmentN
|
|
|
173
173
|
projectZipBuffer = _a.sent();
|
|
174
174
|
formData = new FormData();
|
|
175
175
|
formData.append("array", JSON.stringify(envArray));
|
|
176
|
-
formData.append("file", new Blob([projectZipBuffer]), "project.zip");
|
|
176
|
+
formData.append("file", new Blob([new Uint8Array(projectZipBuffer)]), "project.zip");
|
|
177
177
|
formData.append("isProduction", isProduction.toString());
|
|
178
178
|
formData.append("environment", environmentName);
|
|
179
179
|
_a.label = 3;
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
47
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
48
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dainprotocol/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@ai-sdk/anthropic": "^0.0.50",
|
|
19
|
-
"@dainprotocol/service-sdk": "^2.0.
|
|
20
|
-
"@dainprotocol/tunnel": "^1.1.
|
|
19
|
+
"@dainprotocol/service-sdk": "^2.0.77",
|
|
20
|
+
"@dainprotocol/tunnel": "^1.1.26",
|
|
21
21
|
"@types/fs-extra": "^11.0.4",
|
|
22
22
|
"@types/localtunnel": "^2.0.4",
|
|
23
23
|
"ai": "^3.3.41",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"chokidar": "^3.6.0",
|
|
27
27
|
"commander": "^11.1.0",
|
|
28
28
|
"dotenv": "^16.4.5",
|
|
29
|
-
"esbuild": "^0.
|
|
29
|
+
"esbuild": "^0.27.2",
|
|
30
30
|
"fs-extra": "^11.2.0",
|
|
31
31
|
"localtunnel": "^2.0.2",
|
|
32
32
|
"miniflare": "^3.20240909.1",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/archiver": "^6.0.3",
|
|
37
37
|
"@types/node": "^22.5.4",
|
|
38
38
|
"ts-node": "^10.9.2",
|
|
39
|
-
"typescript": "^5.
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsc && cp -r templates dist/"
|