@valbuild/core 0.78.1 → 0.78.3

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.
@@ -47,7 +47,7 @@ export type InitSchema = {
47
47
  export declare function initSchema(): {
48
48
  string: <T extends string>(options?: Record<string, never> | undefined) => import("./schema/string.js").StringSchema<T>;
49
49
  boolean: () => import("./schema/index.js").Schema<boolean>;
50
- array: <S extends import("./schema/index.js").Schema<import("./selector/index.js").SelectorSource>>(schema: S) => import("./schema/array.js").ArraySchema<S, import("./schema/index.js").SelectorOfSchema<S>[] | null>;
50
+ array: <S extends import("./schema/index.js").Schema<import("./selector/index.js").SelectorSource>>(schema: S) => import("./schema/array.js").ArraySchema<S, import("./schema/index.js").SelectorOfSchema<S>[]>;
51
51
  object: <Props extends {
52
52
  [key: string]: import("./schema/index.js").Schema<import("./selector/index.js").SelectorSource>;
53
53
  } & {
@@ -30,4 +30,4 @@ export declare class ArraySchema<T extends Schema<SelectorSource>, Src extends S
30
30
  };
31
31
  }): this;
32
32
  }
33
- export declare const array: <S extends Schema<SelectorSource>>(schema: S) => ArraySchema<S, SelectorOfSchema<S>[] | null>;
33
+ export declare const array: <S extends Schema<SelectorSource>>(schema: S) => ArraySchema<S, SelectorOfSchema<S>[]>;
@@ -872,7 +872,8 @@ var ArraySchema = /*#__PURE__*/function (_Schema) {
872
872
  if (src === null) {
873
873
  return res;
874
874
  }
875
- for (var key in src) {
875
+ for (var i = 0; i < src.length; i++) {
876
+ var key = i;
876
877
  var itemSrc = src[key];
877
878
  if (itemSrc === null || itemSrc === undefined) {
878
879
  continue;
@@ -872,7 +872,8 @@ var ArraySchema = /*#__PURE__*/function (_Schema) {
872
872
  if (src === null) {
873
873
  return res;
874
874
  }
875
- for (var key in src) {
875
+ for (var i = 0; i < src.length; i++) {
876
+ var key = i;
876
877
  var itemSrc = src[key];
877
878
  if (itemSrc === null || itemSrc === undefined) {
878
879
  continue;
@@ -870,7 +870,8 @@ var ArraySchema = /*#__PURE__*/function (_Schema) {
870
870
  if (src === null) {
871
871
  return res;
872
872
  }
873
- for (var key in src) {
873
+ for (var i = 0; i < src.length; i++) {
874
+ var key = i;
874
875
  var itemSrc = src[key];
875
876
  if (itemSrc === null || itemSrc === undefined) {
876
877
  continue;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-beacdff9.cjs.dev.js');
5
+ var dist_valbuildCore = require('./index-2e346d06.cjs.dev.js');
6
6
  require('./result-bb1f436e.cjs.dev.js');
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-1061d844.cjs.prod.js');
5
+ var dist_valbuildCore = require('./index-047950e1.cjs.prod.js');
6
6
  require('./result-787e35f6.cjs.prod.js');
7
7
 
8
8
 
@@ -1,2 +1,2 @@
1
- export { A as ArraySchema, B as BooleanSchema, e as DEFAULT_APP_HOST, D as DEFAULT_CONTENT_HOST, f as DEFAULT_VAL_REMOTE_HOST, o as DateSchema, F as FATAL_ERROR_TYPES, g as FILE_REF_PROP, h as FILE_REF_SUBTYPE_TAG, n as FileSchema, G as GenericSelector, l as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, p as RichTextSchema, S as Schema, k as StringSchema, U as UnionSchema, V as VAL_EXTENSION, j as derefPatch, q as deserializeSchema, i as initVal, m as modules } from './index-24c8829d.esm.js';
1
+ export { A as ArraySchema, B as BooleanSchema, e as DEFAULT_APP_HOST, D as DEFAULT_CONTENT_HOST, f as DEFAULT_VAL_REMOTE_HOST, o as DateSchema, F as FATAL_ERROR_TYPES, g as FILE_REF_PROP, h as FILE_REF_SUBTYPE_TAG, n as FileSchema, G as GenericSelector, l as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, p as RichTextSchema, S as Schema, k as StringSchema, U as UnionSchema, V as VAL_EXTENSION, j as derefPatch, q as deserializeSchema, i as initVal, m as modules } from './index-b59ab889.esm.js';
2
2
  import './result-daff1cae.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/core",
3
- "version": "0.78.1",
3
+ "version": "0.78.3",
4
4
  "private": false,
5
5
  "description": "Val - supercharged hard-coded content",
6
6
  "scripts": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-beacdff9.cjs.dev.js');
5
+ var dist_valbuildCore = require('../../dist/index-2e346d06.cjs.dev.js');
6
6
  var result = require('../../dist/result-bb1f436e.cjs.dev.js');
7
7
  var util = require('../../dist/util-b213092b.cjs.dev.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-1061d844.cjs.prod.js');
5
+ var dist_valbuildCore = require('../../dist/index-047950e1.cjs.prod.js');
6
6
  var result = require('../../dist/result-787e35f6.cjs.prod.js');
7
7
  var util = require('../../dist/util-030d8a1f.cjs.prod.js');
8
8
 
@@ -1,5 +1,5 @@
1
- import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-24c8829d.esm.js';
2
- export { P as PatchError } from '../../dist/index-24c8829d.esm.js';
1
+ import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-b59ab889.esm.js';
2
+ export { P as PatchError } from '../../dist/index-b59ab889.esm.js';
3
3
  import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-daff1cae.esm.js';
4
4
  import { p as pipe } from '../../dist/util-18613e99.esm.js';
5
5