@aigne/platform-helpers 0.6.0 → 0.6.2
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 +14 -0
- package/lib/cjs/nodejs/index.browser.d.ts +2 -0
- package/lib/cjs/nodejs/index.browser.js +6 -0
- package/lib/cjs/nodejs/index.node.d.ts +2 -0
- package/lib/cjs/nodejs/index.node.js +8 -0
- package/lib/esm/nodejs/index.browser.d.ts +2 -0
- package/lib/esm/nodejs/index.browser.js +6 -0
- package/lib/esm/nodejs/index.node.d.ts +2 -0
- package/lib/esm/nodejs/index.node.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.2](https://github.com/AIGNE-io/aigne-framework/compare/platform-helpers-v0.6.1...platform-helpers-v0.6.2) (2025-08-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **cli:** log only once in loadAIGNE ([#357](https://github.com/AIGNE-io/aigne-framework/issues/357)) ([6e6d968](https://github.com/AIGNE-io/aigne-framework/commit/6e6d96814fbc87f210522ae16daf94c1f84f311a))
|
|
9
|
+
|
|
10
|
+
## [0.6.1](https://github.com/AIGNE-io/aigne-framework/compare/platform-helpers-v0.6.0...platform-helpers-v0.6.1) (2025-08-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **core:** examples cases that failed when using aigne-hub ([#337](https://github.com/AIGNE-io/aigne-framework/issues/337)) ([0d4a31c](https://github.com/AIGNE-io/aigne-framework/commit/0d4a31c24d9e7d26f00d1accb80719d9ad79a4c6))
|
|
16
|
+
|
|
3
17
|
## [0.6.0](https://github.com/AIGNE-io/aigne-framework/compare/platform-helpers-v0.5.1...platform-helpers-v0.6.0) (2025-08-06)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -17,4 +17,10 @@ exports.nodejs = {
|
|
|
17
17
|
get path() {
|
|
18
18
|
throw new Error("This code must run in a Node.js environment.");
|
|
19
19
|
},
|
|
20
|
+
get os() {
|
|
21
|
+
throw new Error("This code must run in a Node.js environment.");
|
|
22
|
+
},
|
|
23
|
+
get crypto() {
|
|
24
|
+
throw new Error("This code must run in a Node.js environment.");
|
|
25
|
+
},
|
|
20
26
|
};
|
|
@@ -4,8 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.nodejs = void 0;
|
|
7
|
+
const node_crypto_1 = __importDefault(require("node:crypto"));
|
|
7
8
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
9
|
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
10
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
9
11
|
const node_path_1 = __importDefault(require("node:path"));
|
|
10
12
|
const node_util_1 = require("node:util");
|
|
11
13
|
exports.nodejs = {
|
|
@@ -28,4 +30,10 @@ exports.nodejs = {
|
|
|
28
30
|
get path() {
|
|
29
31
|
return node_path_1.default;
|
|
30
32
|
},
|
|
33
|
+
get os() {
|
|
34
|
+
return node_os_1.default;
|
|
35
|
+
},
|
|
36
|
+
get crypto() {
|
|
37
|
+
return node_crypto_1.default;
|
|
38
|
+
},
|
|
31
39
|
};
|
|
@@ -14,4 +14,10 @@ export const nodejs = {
|
|
|
14
14
|
get path() {
|
|
15
15
|
throw new Error("This code must run in a Node.js environment.");
|
|
16
16
|
},
|
|
17
|
+
get os() {
|
|
18
|
+
throw new Error("This code must run in a Node.js environment.");
|
|
19
|
+
},
|
|
20
|
+
get crypto() {
|
|
21
|
+
throw new Error("This code must run in a Node.js environment.");
|
|
22
|
+
},
|
|
17
23
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
1
2
|
import fsSync from "node:fs";
|
|
2
3
|
import fs from "node:fs/promises";
|
|
4
|
+
import os from "node:os";
|
|
3
5
|
import path from "node:path";
|
|
4
6
|
import { inspect } from "node:util";
|
|
5
7
|
export const nodejs = {
|
|
@@ -22,4 +24,10 @@ export const nodejs = {
|
|
|
22
24
|
get path() {
|
|
23
25
|
return path;
|
|
24
26
|
},
|
|
27
|
+
get os() {
|
|
28
|
+
return os;
|
|
29
|
+
},
|
|
30
|
+
get crypto() {
|
|
31
|
+
return crypto;
|
|
32
|
+
},
|
|
25
33
|
};
|