🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sjsf/cfworker-validator

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sjsf/cfworker-validator - npm Package Compare versions

Comparing version
3.6.0
to
3.7.0
+2
-2
dist/validator.svelte.d.ts
import { Validator as CfValidator } from "@cfworker/json-schema";
import type { Config, Schema, FieldValueValidator, FormValueValidator, FormValue } from "@sjsf/form";
import { type SchemaValue, type Validator } from "@sjsf/form/core";
import { type MapLike } from "@sjsf/form/lib/memoize";
import { type SchemaValue, type Validator } from "@sjsf/form/core";
import type { Config, Schema, FieldValueValidator, FormValueValidator, FormValue } from "@sjsf/form";
export interface ValueToJSON {

@@ -6,0 +6,0 @@ valueToJSON: (value: FormValue) => SchemaValue;

import { Validator as CfValidator, } from "@cfworker/json-schema";
import { ID_KEY, prefixSchemaRefs, ROOT_SCHEMA_PREFIX, pathFromLocation, } from "@sjsf/form/core";
import { memoize, weakMemoize } from "@sjsf/form/lib/memoize";
import { ID_KEY, prefixSchemaRefs, ROOT_SCHEMA_PREFIX, pathFromLocation, } from "@sjsf/form/core";
export const defaultValidatorFactory = (schema) => new CfValidator(schema, "7", false);

@@ -5,0 +5,0 @@ export function createSchemaValidatorFactory(factory, validatorsCache = new WeakMap()) {

{
"name": "@sjsf/cfworker-validator",
"version": "3.6.0",
"version": "3.7.0",
"description": "The @cfworker/json-schema based validator for svelte-jsonschema-form",
"license": "MIT",
"keywords": [
"validator",
"@cfworker/json-schema",
"jsonschema",
"@cfworker/json-schema"
"validator"
],
"type": "module",
"homepage": "https://x0k.github.io/svelte-jsonschema-form/",
"bugs": "https://github.com/x0k/svelte-jsonschema-form/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/x0k/svelte-jsonschema-form.git",
"directory": "packages/cfworker-validator"
},
"files": [

@@ -17,14 +23,5 @@ "dist",

],
"publishConfig": {
"provenance": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/x0k/svelte-jsonschema-form.git",
"directory": "packages/cfworker-validator"
},
"bugs": "https://github.com/x0k/svelte-jsonschema-form/issues",
"homepage": "https://x0k.github.io/svelte-jsonschema-form/",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"exports": {

@@ -37,17 +34,23 @@ "./package.json": "./package.json",

},
"peerDependencies": {
"@sjsf/form": "^3.5.0",
"@cfworker/json-schema": "^4.1.0"
"publishConfig": {
"provenance": true
},
"devDependencies": {
"@cfworker/json-schema": "^4.1.1",
"svelte": "^5.55.5",
"@sjsf/form": "3.6.0",
"validator-testing": "1.0.27"
"svelte": "^5.56.4",
"@sjsf/form": "3.7.0",
"validator-testing": "1.0.28"
},
"peerDependencies": {
"@cfworker/json-schema": "^4.1.0",
"@sjsf/form": "^3.5.0"
},
"scripts": {
"test": "vitest run",
"build": "tsc && publint",
"dev": "tsc --watch"
"dev": "tsc --watch",
"lint": "eslint .",
"format": "oxfmt .",
"format:check": "oxfmt --check ."
}
}

@@ -19,3 +19,3 @@ # @sjsf/cfworker-validator

const validator = createFormValidator()
const validator = createFormValidator();
```

@@ -22,0 +22,0 @@