Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

superstruct

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superstruct - npm Package Compare versions

Comparing version 0.16.1 to 0.16.2

lib/index.d.mts

23

package.json

@@ -5,3 +5,3 @@ {

"description": "A simple and composable way to validate data in JavaScript (and TypeScript).",
"version": "0.16.1",
"version": "0.16.2",
"license": "MIT",

@@ -11,7 +11,7 @@ "repository": "git://github.com/ianstormtaylor/superstruct.git",

"types": "./lib/index.d.ts",
"main": "./lib/index.cjs.js",
"module": "./lib/index.es.js",
"main": "./lib/index.cjs",
"module": "./lib/index.mjs",
"exports": {
"import": "./lib/index.es.js",
"require": "./lib/index.cjs.js"
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},

@@ -40,3 +40,2 @@ "sideEffects": false,

"babel-eslint": "^10.0.3",
"cross-env": "^7.0.3",
"eslint": "^7.14.0",

@@ -60,11 +59,10 @@ "eslint-config-prettier": "^7.2.0",

"rollup-plugin-ts": "^3.0.1",
"ts-mocha": "^10.0.0",
"typescript": "^4.1.2"
},
"scripts": {
"build": "yarn build:types && yarn build:es && yarn build:cjs && yarn build:max && yarn build:min",
"build": "rm -rf ./{lib,umd} && yarn build:types && yarn build:mjs && yarn build:cjs && yarn build:umd && yarn build:umd-min",
"build:cjs": "rollup --config ./config/rollup-cjs.js",
"build:es": "rollup --config ./config/rollup.js",
"build:max": "rollup --config ./config/rollup-umd.js",
"build:min": "rollup --config ./config/rollup-umd-min.js",
"build:mjs": "rollup --config ./config/rollup.js",
"build:umd": "rollup --config ./config/rollup-umd.js",
"build:umd-min": "rollup --config ./config/rollup-umd-min.js",
"build:types": "tsc --emitDeclarationOnly --declarationMap --outDir ./lib",

@@ -79,3 +77,4 @@ "clean": "rm -rf ./{lib,umd,node_modules}",

"release": "yarn build && yarn lint && np",
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"target\": \"es2019\" }' ts-mocha -p ./test/tsconfig.json ./test/index.ts",
"test": "yarn build:types && yarn test:types && yarn build:cjs && yarn test:mocha",
"test:mocha": "mocha --require ./test/register.cjs --require source-map-support/register ./test/index.ts",
"test:types": "tsc --noEmit && tsc --project ./test/tsconfig.json --noEmit",

@@ -82,0 +81,0 @@ "watch": "yarn build:cjs --watch",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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