@depup/typebox 1.1.16-depup.0 → 1.1.17-depup.0
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/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @depup/typebox
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [typebox](https://www.npmjs.com/package/typebox) @ 1.1.
|
|
16
|
+
| Original | [typebox](https://www.npmjs.com/package/typebox) @ 1.1.17 |
|
|
17
17
|
| Processed | 2026-04-06 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export interface TExternal {
|
|
2
|
-
|
|
3
|
-
identifier: string;
|
|
4
|
-
/** An array of external variables */
|
|
2
|
+
identifier: 'External';
|
|
5
3
|
variables: unknown[];
|
|
6
4
|
}
|
|
7
|
-
export declare function ResetExternal(): void;
|
|
8
5
|
export declare function CreateVariable(value: unknown): string;
|
|
6
|
+
export declare function ResetExternal(): void;
|
|
9
7
|
export declare function GetExternal(): TExternal;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
const identifier = 'external_';
|
|
3
|
-
let resetCount = 0;
|
|
4
2
|
const state = {
|
|
5
|
-
identifier:
|
|
3
|
+
identifier: 'External',
|
|
6
4
|
variables: []
|
|
7
5
|
};
|
|
8
6
|
// ------------------------------------------------------------------
|
|
9
|
-
// ResetExternals
|
|
10
|
-
//
|
|
11
|
-
// Each reset results in a new external group identifier. This is done
|
|
12
|
-
// to prevent variable name overlap when generating and evaluating
|
|
13
|
-
// multiple types in the same scope.
|
|
14
|
-
//
|
|
15
|
-
// ------------------------------------------------------------------
|
|
16
|
-
export function ResetExternal() {
|
|
17
|
-
state.identifier = `${identifier}${resetCount}`;
|
|
18
|
-
state.variables = [];
|
|
19
|
-
resetCount += 1;
|
|
20
|
-
}
|
|
21
|
-
// ------------------------------------------------------------------
|
|
22
7
|
// CreateVariable
|
|
23
8
|
// ------------------------------------------------------------------
|
|
24
9
|
export function CreateVariable(value) {
|
|
25
|
-
const call =
|
|
10
|
+
const call = `External[${state.variables.length}]`;
|
|
26
11
|
state.variables.push(value);
|
|
27
12
|
return call;
|
|
28
13
|
}
|
|
29
14
|
// ------------------------------------------------------------------
|
|
15
|
+
// ResetExternal
|
|
16
|
+
// ------------------------------------------------------------------
|
|
17
|
+
export function ResetExternal() {
|
|
18
|
+
state.variables = [];
|
|
19
|
+
}
|
|
20
|
+
// ------------------------------------------------------------------
|
|
30
21
|
// GetExternals
|
|
31
22
|
// ------------------------------------------------------------------
|
|
32
23
|
export function GetExternal() {
|
|
33
|
-
return state;
|
|
24
|
+
return { ...state };
|
|
34
25
|
}
|
package/changes.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/typebox",
|
|
3
3
|
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript (with updated dependencies)",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.17-depup.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typebox",
|
|
7
7
|
"depup",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"changes": {},
|
|
95
95
|
"depsUpdated": 0,
|
|
96
96
|
"originalPackage": "typebox",
|
|
97
|
-
"originalVersion": "1.1.
|
|
98
|
-
"processedAt": "2026-04-
|
|
97
|
+
"originalVersion": "1.1.17",
|
|
98
|
+
"processedAt": "2026-04-06T20:18:19.479Z",
|
|
99
99
|
"smokeTest": "passed"
|
|
100
100
|
}
|
|
101
101
|
}
|