runcheck 0.2.0 → 0.3.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/dist/runcheck.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var k=(e,r)=>{for(var n in r)f(e,n,{get:r[n],enumerable:!0})},$=(e,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of O(r))!m.call(e,t)&&t!==n&&f(e,t,{get:()=>r[t],enumerable:!(s=w(r,t))||s.enumerable});return e};var A=e=>$(f({},"__esModule",{value:!0}),e);var Z={};k(Z,{rc_any:()=>M,rc_array:()=>J,rc_boolean:()=>C,rc_date:()=>B,rc_extends_obj:()=>q,rc_instanceof:()=>U,rc_is_valid:()=>h,rc_literals:()=>V,rc_null:()=>K,rc_number:()=>z,rc_obj_intersection:()=>H,rc_object:()=>u,rc_parse:()=>R,rc_parser:()=>Q,rc_strict_obj:()=>G,rc_string:()=>W,rc_tuple:()=>L,rc_undefined:()=>F,rc_union:()=>D,rc_validator:()=>X});module.exports=A(Z);function N(e){return{...this,o:e}}function a(e,r,n,s){if(e.i&&r===void 0)return[!0,r];if(e.c&&r==null)return[!0,r];let t=s();if(t&&(t===!0||"data"in t)){let o=t===!0?r:t.data;return e.t&&!e.t(o)?[!1,[e.s(o)]]:[!0,o]}if(e.o!==void 0)return n.warnings.push(`Fallback used, ${e.s(r)}`),[!0,e.o];if(e.u&&e.n){let o=e.n(r);if(o)return e.t&&!e.t(o.fixed)?[!1,[e.s(o.fixed)]]:[!0,o.fixed]}return[!1,t&&"errors"in t?t.errors:[e.s(r)]]}function S(e){if(!this.n&&!e)throw new Error("This type don't have a default autofix and no custom one was provided");return{...this,u:!0,n:e||this.n}}function P(e){return{...this,t:e,e:`${this.e}_with_predicate`}}function v(){return{...this,i:!0}}function I(e){return`Type '${b(e)}' is not assignable to '${this.e}'`}function E(){return{...this,c:!0,e:`${this.e}_or_nullish`}}var i={withFallback:N,where:P,optional:v,s:I,orNullish:E,withAutofix:S},F={...i,r(e,r){return a(this,e,r,()=>e===void 0)},e:"undefined"},K={...i,r(e,r){return a(this,e,r,()=>e===null)},e:"null"},M={...i,r(e,r){return a(this,e,r,()=>!0)},e:"any"},C={...i,r(e,r){return a(this,e,r,()=>typeof e=="boolean")},e:"boolean",n(e){return e===0||e===1?{fixed:!!e}:e==="true"||e==="false"?{fixed:e==="true"}:!1}},W={...i,r(e,r){return a(this,e,r,()=>typeof e=="string")},e:"string",n(e){return typeof e=="number"&&!Number.isNaN(e)?{fixed:e.toString()}:!1}},z={...i,r(e,r){return a(this,e,r,()=>typeof e=="number"&&!Number.isNaN(e))},e:"number",n(e){if(typeof e=="string"){let r=Number(e);if(!Number.isNaN(r))return{fixed:r}}return!1}},B={...i,r(e,r){return a(this,e,r,()=>typeof e=="object"&&e instanceof Date&&!Number.isNaN(e.getTime()))},e:"date"};function U(e){return{...i,r(r,n){return a(this,r,n,()=>r instanceof e)},e:`instanceof_${e.name?`_${e.name}`:""}`}}function V(...e){if(e.length===0)throw new Error("rc_literal requires at least one literal");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(r===s)return!0;return!1})},e:e.length==1?`${b(e[0])}_literal`:"literals"}}function D(...e){if(e.length===0)throw new Error("Unions should have at least one type");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(s.r(r,n)[0])return!0;return!1})},e:e.map(r=>r.e).join(" | ")}}function d(e,r){if(e.startsWith("$[")||e.startsWith("$.")){let[n="",s]=e.split(": "),t=n.slice(1);return`$${r}${t}: ${s}`}return`$${r}: ${e}`}function u(e){return{...i,a:e,e:"object",r(r,n){return a(this,r,n,()=>{if(!Y(r))return!1;let s=new Set(Object.keys(r)),t={},o=[];for(let[c,y]of Object.entries(e)){let l=c,T=r[c];s.delete(c);let[_,x]=y.r(T,n);if(_)t[l]=T;else{let g=x;for(let j of g)o.push(d(j,`.${c}`))}}if(this.e==="strict_obj"&&s.size>0)for(let c of s)o.push(`Key '${c}' is not defined in the object shape`);return o.length>0?{errors:o}:this.e.startsWith("extends_object")?{data:r}:{data:t}})}}}function q(e){return{...u(e),e:"extends_object"}}function G(e){return{...u(e),e:"strict_obj"}}function H(e,r){return u({...e.a,...r.a})}function p(e,r,n){let s=-1;for(let t of e){s++;let o=Array.isArray(r)?r[s]:r,[c,y]=o.r(t,n);if(!c)return{errors:y.map(l=>d(l,`[${s}]`))}}return!0}function J(e){return{...i,e:`${e.e}[]`,r(r,n){return a(this,r,n,()=>Array.isArray(r)?r.length===0?!0:p.call(this,r,e,n):!1)}}}function L(e){return{...i,e:`[${e.map(r=>r.e).join(", ")}]`,r(r,n){return a(this,r,n,()=>!Array.isArray(r)||r.length!==e.length?!1:p.call(this,r,e,n))}}}function R(e,r){let n={warnings:[]},[s,t]=r.r(e,n);return s?{error:!1,data:t,warningMsgs:n.warnings.length>0?n.warnings:!1}:{error:!0,errors:t}}function Q(e){return r=>R(r,e)}function h(e,r){let n={warnings:[]};return!!r.r(e,n)[0]}function X(e){return r=>h(r,e)}function b(e){if(typeof e=="object"){if(Array.isArray(e))return"array";if(!e)return"null"}return typeof e}function Y(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}0&&(module.exports={rc_any,rc_array,rc_boolean,rc_date,rc_extends_obj,rc_instanceof,rc_is_valid,rc_literals,rc_null,rc_number,rc_obj_intersection,rc_object,rc_parse,rc_parser,rc_strict_obj,rc_string,rc_tuple,rc_undefined,rc_union,rc_validator});
1
+ "use strict";var l=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var $=(e,r)=>{for(var n in r)l(e,n,{get:r[n],enumerable:!0})},k=(e,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of O(r))!m.call(e,t)&&t!==n&&l(e,t,{get:()=>r[t],enumerable:!(s=w(r,t))||s.enumerable});return e};var A=e=>k(l({},"__esModule",{value:!0}),e);var Z={};$(Z,{rc_any:()=>C,rc_array:()=>J,rc_boolean:()=>W,rc_date:()=>M,rc_extends_obj:()=>q,rc_instanceof:()=>U,rc_is_valid:()=>h,rc_literals:()=>V,rc_null:()=>K,rc_number:()=>B,rc_obj_intersection:()=>H,rc_object:()=>u,rc_parse:()=>R,rc_parser:()=>Q,rc_strict_obj:()=>G,rc_string:()=>z,rc_tuple:()=>L,rc_undefined:()=>F,rc_union:()=>D,rc_validator:()=>X});module.exports=A(Z);function N(e){return{...this,o:e}}function a(e,r,n,s){if(e.i&&r===void 0)return[!0,r];if(e.c&&r==null)return[!0,r];let t=s();if(t&&(t===!0||"data"in t)){let o=t===!0?r:t.data;return e.s&&!e.s(o)?[!1,[e.t(o)]]:[!0,o]}if(e.o!==void 0)return n.warnings.push(`Fallback used, ${e.t(r)}`),[!0,e.o];if(e.u&&e.n){let o=e.n(r);if(o)return e.s&&!e.s(o.fixed)?[!1,[e.t(o.fixed)]]:(n.warnings.push(`Autofixed from, ${e.t(r)}`),[!0,o.fixed])}return[!1,t&&"errors"in t?t.errors:[e.t(r)]]}function S(e){if(!this.n&&!e)throw new Error("This type don't have a default autofix and no custom one was provided");return{...this,u:!0,n:e||this.n}}function P(e){return{...this,s:e,e:`${this.e}_with_predicate`}}function v(){return{...this,i:!0}}function I(e){return`Type '${b(e)}' is not assignable to '${this.e}'`}function E(){return{...this,c:!0,e:`${this.e}_or_nullish`}}var i={withFallback:N,where:P,optional:v,t:I,orNullish:E,withAutofix:S},F={...i,r(e,r){return a(this,e,r,()=>e===void 0)},e:"undefined"},K={...i,r(e,r){return a(this,e,r,()=>e===null)},e:"null"},C={...i,r(e,r){return a(this,e,r,()=>!0)},e:"any"},W={...i,r(e,r){return a(this,e,r,()=>typeof e=="boolean")},e:"boolean",n(e){return e===0||e===1?{fixed:!!e}:e==="true"||e==="false"?{fixed:e==="true"}:!1}},z={...i,r(e,r){return a(this,e,r,()=>typeof e=="string")},e:"string",n(e){return typeof e=="number"&&!Number.isNaN(e)?{fixed:e.toString()}:!1}},B={...i,r(e,r){return a(this,e,r,()=>typeof e=="number"&&!Number.isNaN(e))},e:"number",n(e){if(typeof e=="string"){let r=Number(e);if(!Number.isNaN(r))return{fixed:r}}return!1}},M={...i,r(e,r){return a(this,e,r,()=>typeof e=="object"&&e instanceof Date&&!Number.isNaN(e.getTime()))},e:"date"};function U(e){return{...i,r(r,n){return a(this,r,n,()=>r instanceof e)},e:`instanceof_${e.name?`_${e.name}`:""}`}}function V(...e){if(e.length===0)throw new Error("rc_literal requires at least one literal");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(r===s)return!0;return!1})},e:e.length==1?`${b(e[0])}_literal`:"literals"}}function D(...e){if(e.length===0)throw new Error("Unions should have at least one type");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(s.r(r,n)[0])return!0;return!1})},e:e.map(r=>r.e).join(" | ")}}function d(e,r){if(e.startsWith("$[")||e.startsWith("$.")){let[n="",s]=e.split(": "),t=n.slice(1);return`$${r}${t}: ${s}`}return`$${r}: ${e}`}function u(e){return{...i,a:e,e:"object",r(r,n){return a(this,r,n,()=>{if(!Y(r))return!1;let s=new Set(Object.keys(r)),t={},o=[];for(let[c,y]of Object.entries(e)){let f=c,T=r[c];s.delete(c);let[_,x]=y.r(T,n);if(_)t[f]=T;else{let g=x;for(let j of g)o.push(d(j,`.${c}`))}}if(this.e==="strict_obj"&&s.size>0)for(let c of s)o.push(`Key '${c}' is not defined in the object shape`);return o.length>0?{errors:o}:this.e.startsWith("extends_object")?{data:r}:{data:t}})}}}function q(e){return{...u(e),e:"extends_object"}}function G(e){return{...u(e),e:"strict_obj"}}function H(e,r){return u({...e.a,...r.a})}function p(e,r,n){let s=-1;for(let t of e){s++;let o=Array.isArray(r)?r[s]:r,[c,y]=o.r(t,n);if(!c)return{errors:y.map(f=>d(f,`[${s}]`))}}return!0}function J(e){return{...i,e:`${e.e}[]`,r(r,n){return a(this,r,n,()=>Array.isArray(r)?r.length===0?!0:p.call(this,r,e,n):!1)}}}function L(e){return{...i,e:`[${e.map(r=>r.e).join(", ")}]`,r(r,n){return a(this,r,n,()=>!Array.isArray(r)||r.length!==e.length?!1:p.call(this,r,e,n))}}}function R(e,r){let n={warnings:[]},[s,t]=r.r(e,n);return s?{error:!1,data:t,warnings:n.warnings.length>0?n.warnings:!1}:{error:!0,errors:t}}function Q(e){return r=>R(r,e)}function h(e,r){let n={warnings:[]};return!!r.r(e,n)[0]}function X(e){return r=>h(r,e)}function b(e){if(typeof e=="object"){if(Array.isArray(e))return"array";if(!e)return"null"}return typeof e}function Y(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}0&&(module.exports={rc_any,rc_array,rc_boolean,rc_date,rc_extends_obj,rc_instanceof,rc_is_valid,rc_literals,rc_null,rc_number,rc_obj_intersection,rc_object,rc_parse,rc_parser,rc_strict_obj,rc_string,rc_tuple,rc_undefined,rc_union,rc_validator});
@@ -1,7 +1,7 @@
1
1
  declare type RcParseResult<T> = {
2
2
  error: false;
3
3
  data: T;
4
- warningMsgs: string[] | false;
4
+ warnings: string[] | false;
5
5
  } | {
6
6
  error: true;
7
7
  errors: string[];
package/dist/runcheck.js CHANGED
@@ -1 +1 @@
1
- function x(e){return{...this,o:e}}function a(e,r,n,s){if(e.i&&r===void 0)return[!0,r];if(e.c&&r==null)return[!0,r];let t=s();if(t&&(t===!0||"data"in t)){let o=t===!0?r:t.data;return e.t&&!e.t(o)?[!1,[e.s(o)]]:[!0,o]}if(e.o!==void 0)return n.warnings.push(`Fallback used, ${e.s(r)}`),[!0,e.o];if(e.u&&e.n){let o=e.n(r);if(o)return e.t&&!e.t(o.fixed)?[!1,[e.s(o.fixed)]]:[!0,o.fixed]}return[!1,t&&"errors"in t?t.errors:[e.s(r)]]}function g(e){if(!this.n&&!e)throw new Error("This type don't have a default autofix and no custom one was provided");return{...this,u:!0,n:e||this.n}}function j(e){return{...this,t:e,e:`${this.e}_with_predicate`}}function w(){return{...this,i:!0}}function O(e){return`Type '${p(e)}' is not assignable to '${this.e}'`}function m(){return{...this,c:!0,e:`${this.e}_or_nullish`}}var i={withFallback:x,where:j,optional:w,s:O,orNullish:m,withAutofix:g},N={...i,r(e,r){return a(this,e,r,()=>e===void 0)},e:"undefined"},S={...i,r(e,r){return a(this,e,r,()=>e===null)},e:"null"},P={...i,r(e,r){return a(this,e,r,()=>!0)},e:"any"},v={...i,r(e,r){return a(this,e,r,()=>typeof e=="boolean")},e:"boolean",n(e){return e===0||e===1?{fixed:!!e}:e==="true"||e==="false"?{fixed:e==="true"}:!1}},I={...i,r(e,r){return a(this,e,r,()=>typeof e=="string")},e:"string",n(e){return typeof e=="number"&&!Number.isNaN(e)?{fixed:e.toString()}:!1}},E={...i,r(e,r){return a(this,e,r,()=>typeof e=="number"&&!Number.isNaN(e))},e:"number",n(e){if(typeof e=="string"){let r=Number(e);if(!Number.isNaN(r))return{fixed:r}}return!1}},F={...i,r(e,r){return a(this,e,r,()=>typeof e=="object"&&e instanceof Date&&!Number.isNaN(e.getTime()))},e:"date"};function K(e){return{...i,r(r,n){return a(this,r,n,()=>r instanceof e)},e:`instanceof_${e.name?`_${e.name}`:""}`}}function M(...e){if(e.length===0)throw new Error("rc_literal requires at least one literal");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(r===s)return!0;return!1})},e:e.length==1?`${p(e[0])}_literal`:"literals"}}function C(...e){if(e.length===0)throw new Error("Unions should have at least one type");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(s.r(r,n)[0])return!0;return!1})},e:e.map(r=>r.e).join(" | ")}}function T(e,r){if(e.startsWith("$[")||e.startsWith("$.")){let[n="",s]=e.split(": "),t=n.slice(1);return`$${r}${t}: ${s}`}return`$${r}: ${e}`}function l(e){return{...i,a:e,e:"object",r(r,n){return a(this,r,n,()=>{if(!A(r))return!1;let s=new Set(Object.keys(r)),t={},o=[];for(let[c,u]of Object.entries(e)){let y=c,f=r[c];s.delete(c);let[R,h]=u.r(f,n);if(R)t[y]=f;else{let b=h;for(let _ of b)o.push(T(_,`.${c}`))}}if(this.e==="strict_obj"&&s.size>0)for(let c of s)o.push(`Key '${c}' is not defined in the object shape`);return o.length>0?{errors:o}:this.e.startsWith("extends_object")?{data:r}:{data:t}})}}}function W(e){return{...l(e),e:"extends_object"}}function z(e){return{...l(e),e:"strict_obj"}}function B(e,r){return l({...e.a,...r.a})}function d(e,r,n){let s=-1;for(let t of e){s++;let o=Array.isArray(r)?r[s]:r,[c,u]=o.r(t,n);if(!c)return{errors:u.map(y=>T(y,`[${s}]`))}}return!0}function U(e){return{...i,e:`${e.e}[]`,r(r,n){return a(this,r,n,()=>Array.isArray(r)?r.length===0?!0:d.call(this,r,e,n):!1)}}}function V(e){return{...i,e:`[${e.map(r=>r.e).join(", ")}]`,r(r,n){return a(this,r,n,()=>!Array.isArray(r)||r.length!==e.length?!1:d.call(this,r,e,n))}}}function k(e,r){let n={warnings:[]},[s,t]=r.r(e,n);return s?{error:!1,data:t,warningMsgs:n.warnings.length>0?n.warnings:!1}:{error:!0,errors:t}}function D(e){return r=>k(r,e)}function $(e,r){let n={warnings:[]};return!!r.r(e,n)[0]}function q(e){return r=>$(r,e)}function p(e){if(typeof e=="object"){if(Array.isArray(e))return"array";if(!e)return"null"}return typeof e}function A(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export{P as rc_any,U as rc_array,v as rc_boolean,F as rc_date,W as rc_extends_obj,K as rc_instanceof,$ as rc_is_valid,M as rc_literals,S as rc_null,E as rc_number,B as rc_obj_intersection,l as rc_object,k as rc_parse,D as rc_parser,z as rc_strict_obj,I as rc_string,V as rc_tuple,N as rc_undefined,C as rc_union,q as rc_validator};
1
+ function x(e){return{...this,o:e}}function a(e,r,n,s){if(e.i&&r===void 0)return[!0,r];if(e.c&&r==null)return[!0,r];let t=s();if(t&&(t===!0||"data"in t)){let o=t===!0?r:t.data;return e.s&&!e.s(o)?[!1,[e.t(o)]]:[!0,o]}if(e.o!==void 0)return n.warnings.push(`Fallback used, ${e.t(r)}`),[!0,e.o];if(e.u&&e.n){let o=e.n(r);if(o)return e.s&&!e.s(o.fixed)?[!1,[e.t(o.fixed)]]:(n.warnings.push(`Autofixed from, ${e.t(r)}`),[!0,o.fixed])}return[!1,t&&"errors"in t?t.errors:[e.t(r)]]}function g(e){if(!this.n&&!e)throw new Error("This type don't have a default autofix and no custom one was provided");return{...this,u:!0,n:e||this.n}}function j(e){return{...this,s:e,e:`${this.e}_with_predicate`}}function w(){return{...this,i:!0}}function O(e){return`Type '${p(e)}' is not assignable to '${this.e}'`}function m(){return{...this,c:!0,e:`${this.e}_or_nullish`}}var i={withFallback:x,where:j,optional:w,t:O,orNullish:m,withAutofix:g},N={...i,r(e,r){return a(this,e,r,()=>e===void 0)},e:"undefined"},S={...i,r(e,r){return a(this,e,r,()=>e===null)},e:"null"},P={...i,r(e,r){return a(this,e,r,()=>!0)},e:"any"},v={...i,r(e,r){return a(this,e,r,()=>typeof e=="boolean")},e:"boolean",n(e){return e===0||e===1?{fixed:!!e}:e==="true"||e==="false"?{fixed:e==="true"}:!1}},I={...i,r(e,r){return a(this,e,r,()=>typeof e=="string")},e:"string",n(e){return typeof e=="number"&&!Number.isNaN(e)?{fixed:e.toString()}:!1}},E={...i,r(e,r){return a(this,e,r,()=>typeof e=="number"&&!Number.isNaN(e))},e:"number",n(e){if(typeof e=="string"){let r=Number(e);if(!Number.isNaN(r))return{fixed:r}}return!1}},F={...i,r(e,r){return a(this,e,r,()=>typeof e=="object"&&e instanceof Date&&!Number.isNaN(e.getTime()))},e:"date"};function K(e){return{...i,r(r,n){return a(this,r,n,()=>r instanceof e)},e:`instanceof_${e.name?`_${e.name}`:""}`}}function C(...e){if(e.length===0)throw new Error("rc_literal requires at least one literal");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(r===s)return!0;return!1})},e:e.length==1?`${p(e[0])}_literal`:"literals"}}function W(...e){if(e.length===0)throw new Error("Unions should have at least one type");return{...i,r(r,n){return a(this,r,n,()=>{for(let s of e)if(s.r(r,n)[0])return!0;return!1})},e:e.map(r=>r.e).join(" | ")}}function T(e,r){if(e.startsWith("$[")||e.startsWith("$.")){let[n="",s]=e.split(": "),t=n.slice(1);return`$${r}${t}: ${s}`}return`$${r}: ${e}`}function f(e){return{...i,a:e,e:"object",r(r,n){return a(this,r,n,()=>{if(!A(r))return!1;let s=new Set(Object.keys(r)),t={},o=[];for(let[c,u]of Object.entries(e)){let y=c,l=r[c];s.delete(c);let[R,h]=u.r(l,n);if(R)t[y]=l;else{let b=h;for(let _ of b)o.push(T(_,`.${c}`))}}if(this.e==="strict_obj"&&s.size>0)for(let c of s)o.push(`Key '${c}' is not defined in the object shape`);return o.length>0?{errors:o}:this.e.startsWith("extends_object")?{data:r}:{data:t}})}}}function z(e){return{...f(e),e:"extends_object"}}function B(e){return{...f(e),e:"strict_obj"}}function M(e,r){return f({...e.a,...r.a})}function d(e,r,n){let s=-1;for(let t of e){s++;let o=Array.isArray(r)?r[s]:r,[c,u]=o.r(t,n);if(!c)return{errors:u.map(y=>T(y,`[${s}]`))}}return!0}function U(e){return{...i,e:`${e.e}[]`,r(r,n){return a(this,r,n,()=>Array.isArray(r)?r.length===0?!0:d.call(this,r,e,n):!1)}}}function V(e){return{...i,e:`[${e.map(r=>r.e).join(", ")}]`,r(r,n){return a(this,r,n,()=>!Array.isArray(r)||r.length!==e.length?!1:d.call(this,r,e,n))}}}function $(e,r){let n={warnings:[]},[s,t]=r.r(e,n);return s?{error:!1,data:t,warnings:n.warnings.length>0?n.warnings:!1}:{error:!0,errors:t}}function D(e){return r=>$(r,e)}function k(e,r){let n={warnings:[]};return!!r.r(e,n)[0]}function q(e){return r=>k(r,e)}function p(e){if(typeof e=="object"){if(Array.isArray(e))return"array";if(!e)return"null"}return typeof e}function A(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}export{P as rc_any,U as rc_array,v as rc_boolean,F as rc_date,z as rc_extends_obj,K as rc_instanceof,k as rc_is_valid,C as rc_literals,S as rc_null,E as rc_number,M as rc_obj_intersection,f as rc_object,$ as rc_parse,D as rc_parser,B as rc_strict_obj,I as rc_string,V as rc_tuple,N as rc_undefined,W as rc_union,q as rc_validator};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcheck",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "test": "vitest --ui",