@power-plant/schema 0.0.61 → 0.0.63
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/index-ldf5lukz.d.cts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.mjs +1 -1
- package/dist/{storage-DuoqLXEu.mjs → storage-BTmQwq5v.mjs} +3 -7
- package/dist/storage-BTmQwq5v.mjs.map +1 -0
- package/dist/{storage-BWf2MNw0.cjs → storage-CZDzy5me.cjs} +2 -6
- package/package.json +4 -4
- package/dist/storage-DuoqLXEu.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-ldf5lukz.d.cts","names":[],"sources":["../src/storage/helpers.ts","../src/storage/promises.ts","../src/storage/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index-ldf5lukz.d.cts","names":[],"sources":["../src/storage/helpers.ts","../src/storage/promises.ts","../src/storage/index.ts"],"mappings":";;;;;iBA0CgB,aAAa,eAAe,SAAS;;;UCgDpC;EACf,UAAU;EACV,mBAAmB,MAAM,UAAU,UAAU,sBAAsB;EACnE,oBACE,MAAM,UACN,UAAU,uBACP;EACL,SAAS,MAAM,UAAU,QAAQ,UAAU,OAAO,SAAS;EAC3D,UAAU,eAAe;EACzB,UACE,YACA,UAAU;IAAgB;QACvB,WAAW;EAChB,SACE,YACA,QAAQ,QACR,gBACA,gBACA,4BACG;IAAU;IAAmB,QAAQ;;EAC1C,UACE,YACA,QAAQ,QACR,gBACA,gBACA,4BACG;IAAU;IAAsB,QAAQ;;EAC7C,cAAc,YAAY,iBAAiB;EAC3C,YAAY,YAAY,OAAO,UAAU,OAAO,aAAa;EAC7D,UACE,YACA,SAAS,OAAO,mBAChB,sBACG,QAAQ;EACb,WACE,YACA,SAAS,OAAO,mBAChB,sBACG,QAAQ;;iBAKC,sBAAsB,SAAS,UAAU;;;iBCrFzC,uBAAuB,SAAS,UAAU"}
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_constants = require('./constants-CPMTQEYP.cjs');
|
|
|
4
4
|
const require_helpers = require('./helpers-C34rr_D0.cjs');
|
|
5
5
|
const require_deepkit = require('./deepkit-CHBsrtv1.cjs');
|
|
6
6
|
const require_codegen = require('./codegen.cjs');
|
|
7
|
-
const require_storage = require('./storage-
|
|
7
|
+
const require_storage = require('./storage-CZDzy5me.cjs');
|
|
8
8
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
9
9
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
10
10
|
let _stryke_type_checks = require("@stryke/type-checks");
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { i as ReflectionTransformer, n as Cache, r as DeclarationTransformer } f
|
|
|
2
2
|
import { a as JSON_SCHEMA_TYPES, c as SCHEMA_RECORD_KEYWORDS, i as JSON_SCHEMA_PRIMITIVE_TYPES, l as SCHEMA_SINGLE_KEYWORDS, n as JSON_SCHEMA_CONSTRUCTOR_KEY, o as JsonSchemaTypeNames, r as JSON_SCHEMA_METADATA_KEYS, s as SCHEMA_ARRAY_CONCAT_KEYWORDS, t as JSON_SCHEMA_ANY } from "./constants-D0asFRyy.mjs";
|
|
3
3
|
import { $ as isUntypedConfig, A as isJsonSchemaNativeEnum, B as isJsonSchemaSet, C as isJsonSchemaDate, D as isJsonSchemaKeywords, E as isJsonSchemaInteger, F as isJsonSchemaObject, G as isJsonSchemaUnion, H as isJsonSchemaTuple, I as isJsonSchemaPrimitiveType, J as isSchema, K as isJsonSchemaUnknown, L as isJsonSchemaPrimitiveUnion, M as isJsonSchemaNull, N as isJsonSchemaNullable, O as isJsonSchemaLiteral, P as isJsonSchemaNumber, Q as isStandardSchema, R as isJsonSchemaRecord, S as isJsonSchemaBoolean, T as isJsonSchemaEnum, U as isJsonSchemaType, V as isJsonSchemaString, W as isJsonSchemaUndefined, X as isSchemaOf, Y as isSchemaObject, Z as isSchemaWithSource, _ as isJsonSchemaAllOf, a as getPropertiesList, at as isValibotSchema, b as isJsonSchemaArray, c as isSchemaNullable, ct as readSchemaTypes, d as merge, et as isUntypedConfigStrict, f as mergeMetadata, g as isJsonSchema, h as isFileReference, i as getProperties, it as isUntypedSchemaStrict, j as isJsonSchemaNever, k as isJsonSchemaMap, l as isValidSchemaConfigFile, m as hasJsonSchemaConstructorFlag, n as getJsonSchema, nt as isUntypedInputStrict, o as getProperty, ot as applyJsonSchemaMetadata, p as traverseSchema, q as isNullOnlyJsonSchema, r as getJsonSchemaObject, rt as isUntypedSchema, s as isPropertyOptional, st as getPrimarySchemaType, t as addProperty, tt as isUntypedInput, u as isValidSchemaInputFile, v as isJsonSchemaAny, w as isJsonSchemaDecimal, x as isJsonSchemaBigint, y as isJsonSchemaAnyOf, z as isJsonSchemaRef } from "./helpers-BCP4VzlJ.mjs";
|
|
4
4
|
import { getJsonSchemaType } from "./codegen.mjs";
|
|
5
|
-
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "./storage-
|
|
5
|
+
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "./storage-BTmQwq5v.mjs";
|
|
6
6
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
7
7
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
8
8
|
import { isBigInt, isBoolean, isEmptyObject, isInteger, isNull, isNumber, isObject, isRegExp, isSetArray, isSetObject as isSetObject$1, isSetString as isSetString$1, isString, isUndefined } from "@stryke/type-checks";
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_storage = require('../storage-
|
|
2
|
+
const require_storage = require('../storage-CZDzy5me.cjs');
|
|
3
3
|
|
|
4
4
|
exports.createStoragePromises = require_storage.createStoragePromises;
|
|
5
5
|
exports.mapStorageToFileSystem = require_storage.mapStorageToFileSystem;
|
package/dist/storage/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "../storage-
|
|
1
|
+
import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "../storage-BTmQwq5v.mjs";
|
|
2
2
|
|
|
3
3
|
export { createStoragePromises, mapStorageToFileSystem, normalizeKey };
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "node:events";
|
|
|
2
2
|
import * as nodeFs from "node:fs";
|
|
3
3
|
import { Stats, constants } from "node:fs";
|
|
4
4
|
import { callbackify } from "node:util";
|
|
5
|
+
import { correctPath } from "@stryke/path/correct-path";
|
|
5
6
|
import { Buffer } from "node:buffer";
|
|
6
7
|
import { MessageChannel, receiveMessageOnPort } from "node:worker_threads";
|
|
7
8
|
import { Readable, Writable } from "node:stream";
|
|
@@ -13,12 +14,7 @@ function toPathInput(path) {
|
|
|
13
14
|
return path;
|
|
14
15
|
}
|
|
15
16
|
function normalizeKey(path) {
|
|
16
|
-
|
|
17
|
-
while (value.startsWith("./")) value = value.slice(2);
|
|
18
|
-
value = value.replace(/^\/+/, "");
|
|
19
|
-
value = value.replace(/\/+/g, "/");
|
|
20
|
-
if (value.length > 1 && value.endsWith("/")) value = value.slice(0, -1);
|
|
21
|
-
return value;
|
|
17
|
+
return correctPath(toPathInput(path).replace(/\\/g, "/"));
|
|
22
18
|
}
|
|
23
19
|
function resolveKey(...segments) {
|
|
24
20
|
const parts = [];
|
|
@@ -916,4 +912,4 @@ function mapStorageToFileSystem(storage) {
|
|
|
916
912
|
|
|
917
913
|
//#endregion
|
|
918
914
|
export { createStoragePromises as n, normalizeKey as r, mapStorageToFileSystem as t };
|
|
919
|
-
//# sourceMappingURL=storage-
|
|
915
|
+
//# sourceMappingURL=storage-BTmQwq5v.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-BTmQwq5v.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -3,6 +3,7 @@ let node_events = require("node:events");
|
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
|
|
5
5
|
let node_util = require("node:util");
|
|
6
|
+
let _stryke_path_correct_path = require("@stryke/path/correct-path");
|
|
6
7
|
let node_buffer = require("node:buffer");
|
|
7
8
|
let node_worker_threads = require("node:worker_threads");
|
|
8
9
|
let node_stream = require("node:stream");
|
|
@@ -14,12 +15,7 @@ function toPathInput(path) {
|
|
|
14
15
|
return path;
|
|
15
16
|
}
|
|
16
17
|
function normalizeKey(path) {
|
|
17
|
-
|
|
18
|
-
while (value.startsWith("./")) value = value.slice(2);
|
|
19
|
-
value = value.replace(/^\/+/, "");
|
|
20
|
-
value = value.replace(/\/+/g, "/");
|
|
21
|
-
if (value.length > 1 && value.endsWith("/")) value = value.slice(0, -1);
|
|
22
|
-
return value;
|
|
18
|
+
return (0, _stryke_path_correct_path.correctPath)(toPathInput(path).replace(/\\/g, "/"));
|
|
23
19
|
}
|
|
24
20
|
function resolveKey(...segments) {
|
|
25
21
|
const parts = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -169,9 +169,9 @@
|
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
171
|
"@deepkit/type-compiler": "1.0.19",
|
|
172
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
172
|
+
"@powerlines/plugin-tsdown": "^0.1.582",
|
|
173
173
|
"@types/node": "^25.9.5",
|
|
174
|
-
"powerlines": "^0.47.
|
|
174
|
+
"powerlines": "^0.47.181",
|
|
175
175
|
"valibot": "^1.4.2",
|
|
176
176
|
"zod": "^4.4.3"
|
|
177
177
|
},
|
|
@@ -185,5 +185,5 @@
|
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
187
|
"inlinedDependencies": { "@deepkit/type-compiler": "1.0.19" },
|
|
188
|
-
"gitHead": "
|
|
188
|
+
"gitHead": "7b24f48bfb43e5624abf0dcf95b4a368df9b1ad3"
|
|
189
189
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-DuoqLXEu.mjs","names":[],"sources":[],"mappings":""}
|