@fastify/type-provider-typebox
Advanced tools
Comparing version 3.6.0 to 4.0.0
{ | ||
"name": "@fastify/type-provider-typebox", | ||
"version": "3.6.0", | ||
"version": "4.0.0", | ||
"description": "A Type Provider for Typebox over Fastify", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/esm/index.mjs", | ||
"main": "dist/cjs/index.js", | ||
"types": "dist/cjs/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": { | ||
"types": "./dist/cjs/index.d.ts", | ||
"default": "./dist/cjs/index.js" | ||
}, | ||
"import": { | ||
"types": "./dist/esm/index.d.mts", | ||
"default": "./dist/esm/index.mjs" | ||
} | ||
} | ||
}, | ||
"peerDependencies": { | ||
@@ -11,7 +24,13 @@ "@sinclair/typebox": ">=0.26 <=0.32" | ||
"scripts": { | ||
"build": "rimraf ./dist && mkdir dist && tsc --outDir dist", | ||
"test": "npm run build && npm run typescript && tap tests/index.js --no-check-coverage", | ||
"lint": "eslint . --ext .ts --ext .js", | ||
"build:clean": "rimraf ./dist", | ||
"build:cjs": "tsc --outDir dist/cjs --module CommonJS --moduleResolution Node10 --sourcemap false", | ||
"build:esm": "tsc --outDir dist/esm --module NodeNext --moduleResolution NodeNext --sourcemap false", | ||
"build:post": "node post-build.js", | ||
"build:test": "attw --pack .", | ||
"build": "npm-run-all build:clean build:cjs build:esm build:post build:test", | ||
"test:tap": "tap tests/index.js --no-check-coverage", | ||
"test:types": "tsd", | ||
"test": "npm-run-all build test:tap test:types", | ||
"lint:fix": "npm run lint -- --fix", | ||
"typescript": "tsd", | ||
"lint": "eslint . --ext .ts --ext .js --ext .mts --ext .mjs", | ||
"prepublishOnly": "npm run build" | ||
@@ -34,2 +53,3 @@ }, | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.13.5", | ||
"@types/node": "^20.1.0", | ||
@@ -46,5 +66,6 @@ "@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"fastify-tsconfig": "^2.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"rimraf": "^5.0.0", | ||
"tap": "^16.3.0", | ||
"tsd": "^0.29.0", | ||
"tsd": "^0.30.1", | ||
"typescript": "^5.0.2" | ||
@@ -51,0 +72,0 @@ }, |
@@ -5,3 +5,3 @@ 'use strict' | ||
const Fastify = require('fastify') | ||
const { Type, TypeBoxValidatorCompiler } = require('../dist/index') | ||
const { Type, TypeBoxValidatorCompiler } = require('../dist/cjs/index') | ||
@@ -8,0 +8,0 @@ // This test ensures AJV ignores the TypeBox [Kind] symbol property in strict |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"exclude": ["./node_modules", "types/**/*.test-d.ts"] | ||
"exclude": ["./node_modules", "types/**/*.test-d.mts"] | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
27561
18
17
253
1
1