@power-plant/schema 0.0.64 → 0.0.65
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-DcXkFGvG.cjs → storage-BLfnq6kZ.cjs} +3 -2
- package/dist/{storage-BmKqiKj7.mjs → storage-DEe8ZAMI.mjs} +5 -4
- package/dist/storage-DEe8ZAMI.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/storage-BmKqiKj7.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":";;;;;iBA0CgB,aAAa,eAAe,SAAS;;;
|
|
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;;;UCiDpC;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;;;iBCtFzC,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-BhouTvk6.cjs');
|
|
6
6
|
const require_codegen = require('./codegen.cjs');
|
|
7
|
-
const require_storage = require('./storage-
|
|
7
|
+
const require_storage = require('./storage-BLfnq6kZ.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-DEe8ZAMI.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-BLfnq6kZ.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-DEe8ZAMI.mjs";
|
|
2
2
|
|
|
3
3
|
export { createStoragePromises, mapStorageToFileSystem, normalizeKey };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
2
|
+
let node_fs_promises = require("node:fs/promises");
|
|
2
3
|
let node_events = require("node:events");
|
|
3
4
|
let node_fs = require("node:fs");
|
|
4
5
|
node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
|
|
@@ -197,14 +198,14 @@ function createStoragePromises(storage) {
|
|
|
197
198
|
}
|
|
198
199
|
async function readStoredFile(path, options) {
|
|
199
200
|
const encoding = getEncoding(options);
|
|
201
|
+
const key = normalizeKey(path);
|
|
200
202
|
try {
|
|
201
|
-
const key = normalizeKey(path);
|
|
202
203
|
if ((await requireEntry(key, true)).type !== "file") throw createFsError("EISDIR", "read", key, "EISDIR: illegal operation on a directory, read");
|
|
203
204
|
const value = shouldReadRaw(options) ? await storage.getItemRaw(key) : await storage.getItem(key);
|
|
204
205
|
if (value == null) throw createFsError("ENOENT", "open", key);
|
|
205
206
|
return decodeStoredValue(value, encoding);
|
|
206
207
|
} catch (error) {
|
|
207
|
-
if ((0, node_fs.existsSync)(key)) return (0,
|
|
208
|
+
if ((0, node_fs.existsSync)(key)) return (0, node_fs_promises.readFile)(key, encoding);
|
|
208
209
|
throw error;
|
|
209
210
|
}
|
|
210
211
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
1
2
|
import { EventEmitter } from "node:events";
|
|
2
3
|
import * as nodeFs from "node:fs";
|
|
3
|
-
import { Stats, constants, existsSync
|
|
4
|
+
import { Stats, constants, existsSync } from "node:fs";
|
|
4
5
|
import { callbackify } from "node:util";
|
|
5
6
|
import { correctPath } from "@stryke/path/correct-path";
|
|
6
7
|
import { Buffer } from "node:buffer";
|
|
@@ -196,14 +197,14 @@ function createStoragePromises(storage) {
|
|
|
196
197
|
}
|
|
197
198
|
async function readStoredFile(path, options) {
|
|
198
199
|
const encoding = getEncoding(options);
|
|
200
|
+
const key = normalizeKey(path);
|
|
199
201
|
try {
|
|
200
|
-
const key = normalizeKey(path);
|
|
201
202
|
if ((await requireEntry(key, true)).type !== "file") throw createFsError("EISDIR", "read", key, "EISDIR: illegal operation on a directory, read");
|
|
202
203
|
const value = shouldReadRaw(options) ? await storage.getItemRaw(key) : await storage.getItem(key);
|
|
203
204
|
if (value == null) throw createFsError("ENOENT", "open", key);
|
|
204
205
|
return decodeStoredValue(value, encoding);
|
|
205
206
|
} catch (error) {
|
|
206
|
-
if (existsSync(key)) return
|
|
207
|
+
if (existsSync(key)) return readFile(key, encoding);
|
|
207
208
|
throw error;
|
|
208
209
|
}
|
|
209
210
|
}
|
|
@@ -917,4 +918,4 @@ function mapStorageToFileSystem(storage) {
|
|
|
917
918
|
|
|
918
919
|
//#endregion
|
|
919
920
|
export { createStoragePromises as n, normalizeKey as r, mapStorageToFileSystem as t };
|
|
920
|
-
//# sourceMappingURL=storage-
|
|
921
|
+
//# sourceMappingURL=storage-DEe8ZAMI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-DEe8ZAMI.mjs","names":[],"sources":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -185,5 +185,5 @@
|
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
187
|
"inlinedDependencies": { "@deepkit/type-compiler": "1.0.19" },
|
|
188
|
-
"gitHead": "
|
|
188
|
+
"gitHead": "5a3d58291a37542f8252e40a754067d768602f46"
|
|
189
189
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-BmKqiKj7.mjs","names":[],"sources":[],"mappings":""}
|