New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@decs/typeschema

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@decs/typeschema - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

49

dist/adapters/deepkit.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const type_1 = require("@deepkit/type");
const registry_1 = require("../registry");
const schema_1 = require("../schema");
const utils_1 = require("../utils");
(registry_1.register.Ω = [undefined], (0, registry_1.register)(schema => ('kind' in schema && !(0, utils_1.isTypeBoxSchema)(schema) ? schema : null), async (schema) => ({
validate: async (data) => {
const result = (0, type_1.validate)(data, schema);
if (result.length === 0) {
return { data: data };
}
return {
issues: result.map(({ message, path }) => new schema_1.ValidationIssue(message, [path])),
};
},
}), '@deepkit/type'));
(registry_1.register.Ω = [undefined], (0, registry_1.register)(schema => ('kind' in schema && !(0, utils_1.isTypeBoxSchema)(schema) ? schema : null), async (schema) => {
const { validate } = await Promise.resolve().then(() => __importStar(require('@deepkit/type')));
return {
validate: async (data) => {
const result = validate(data, schema);
if (result.length === 0) {
return { data: data };
}
return {
issues: result.map(({ message, path }) => new schema_1.ValidationIssue(message, [path])),
};
},
};
}, '@deepkit/type'));
{
"name": "@decs/typeschema",
"version": "0.6.0",
"version": "0.6.1",
"description": "Universal adapter for schema validation",

@@ -44,7 +44,6 @@ "keywords": [

"build": "tsc -p tsconfig.build.json",
"prepare": "ts-patch install && yarn build",
"lint": "eslint src --fix",
"format": "prettier --write src",
"test": "jest src",
"benchmark": "for i in src/__tests__/benchmarks/*.ts ; do yarn ts-node \"$i\" ; done"
"benchmark": "for i in src/__tests__/benchmarks/*.ts ; do ts-node --project tsconfig.test.json \"$i\" ; done"
},

@@ -56,22 +55,22 @@ "devDependencies": {

"@sinclair/typebox": "^0.29.6",
"@types/node": "^20.3.3",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@types/node": "^20.4.5",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"ajv": "^8.12.0",
"arktype": "^1.0.14-alpha",
"arktype": "^1.0.18-alpha",
"benny": "^3.7.1",
"eslint": "^8.44.0",
"eslint": "^8.46.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sort-keys": "^2.3.5",
"expect-type": "^0.16.0",
"fp-ts": "^2.16.0",
"fp-ts": "^2.16.1",
"io-ts": "^2.2.20",
"io-ts-types": "^0.5.19",
"jest": "^29.5.0",
"jest": "^29.6.2",
"joi": "^17.9.2",

@@ -81,3 +80,3 @@ "monocle-ts": "^2.3.13",

"ow": "^0.28.2",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"runtypes": "^6.7.0",

@@ -87,7 +86,6 @@ "superstruct": "^1.0.3",

"ts-node": "^10.9.1",
"ts-patch": "^3.0.1",
"ts-patch": "^3.0.2",
"typescript": "^5.1.6",
"typia": "^4.1.2",
"uuid": "^9.0.0",
"webpack": "^5.88.1",
"typia": "^4.1.8",
"webpack": "^5.88.2",
"yup": "^1.2.0",

@@ -98,5 +96,5 @@ "zod": "^3.21.4"

"@deepkit/type": "^1.0.1-alpha.97",
"@sinclair/typebox": "^0.29.4",
"@sinclair/typebox": "^0.29.6",
"ajv": "^8.12.0",
"arktype": "^1.0.14-alpha",
"arktype": "^1.0.18-alpha",
"fp-ts": "^2.16.0",

@@ -103,0 +101,0 @@ "io-ts": "^2.2.20",

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