Socket
Socket
Sign inDemoInstall

@arktype/schema

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arktype/schema - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

3

out/node.d.ts

@@ -51,3 +51,4 @@ import { Callable, type Guardable, type Json, type Key, type array, type conform, type listable, type mutable } from "@ark/util";

toString(): string;
equals(other: BaseNode): boolean;
equals(r: unknown): boolean;
ifEquals(r: unknown): BaseNode | undefined;
hasKind<kind extends NodeKind>(kind: kind): this is nodeOfKind<kind>;

@@ -54,0 +55,0 @@ assertHasKind<kind extends NodeKind>(kind: kind): nodeOfKind<kind>;

@@ -128,5 +128,9 @@ import { Callable, appendUnique, flatMorph, includes, isArray, isEmptyObject, throwError } from "@ark/util";

}
equals(other) {
return this.innerHash === other.innerHash;
equals(r) {
const rNode = isNode(r) ? r : this.$.parseDefinition(r);
return this.innerHash === rNode.innerHash;
}
ifEquals(r) {
return this.equals(r) ? this : undefined;
}
hasKind(kind) {

@@ -133,0 +137,0 @@ return this.kind === kind;

@@ -53,7 +53,8 @@ import { inferred, type array } from "@ark/util";

extract(r: unknown): BaseRoot;
exclude(r: BaseRoot): BaseRoot;
exclude(r: unknown): BaseRoot;
array(): BaseRoot;
overlaps(r: BaseRoot): boolean;
extends(r: BaseRoot): boolean;
subsumes(r: BaseRoot): boolean;
overlaps(r: unknown): boolean;
extends(r: unknown): boolean;
ifExtends(r: unknown): BaseRoot | undefined;
subsumes(r: unknown): boolean;
configure(meta: MetaSchema): this;

@@ -60,0 +61,0 @@ describe(description: string): this;

@@ -148,4 +148,8 @@ import { includes, inferred, omit, throwInternalError, throwParseError } from "@ark/util";

}
ifExtends(r) {
return this.extends(r) ? this : undefined;
}
subsumes(r) {
return r.extends(this);
const rNode = this.$.parseDefinition(r);
return rNode.extends(this);
}

@@ -152,0 +156,0 @@ configure(meta) {

{
"name": "@arktype/schema",
"version": "0.9.0",
"version": "0.10.0",
"license": "MIT",

@@ -32,3 +32,3 @@ "author": {

"dependencies": {
"@ark/util": "0.9.0"
"@ark/util": "0.10.0"
},

@@ -35,0 +35,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc