Comparing version 0.19.0 to 0.20.0
@@ -11,3 +11,3 @@ 'use strict'; | ||
} else { | ||
module.exports = require('./dist/source'); | ||
module.exports = require('./dist'); | ||
} |
{ | ||
"name": "ow", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "Function argument validation for humans", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
}, | ||
"main": "dist/source", | ||
"main": "dist/index.js", | ||
"engines": { | ||
@@ -19,12 +19,10 @@ "node": ">=10" | ||
"scripts": { | ||
"test": "xo && nyc ava", | ||
"docs": "typedoc source", | ||
"build": "del-cli dist && tsc", | ||
"prepublishOnly": "npm run build", | ||
"pretest": "npm run compile -- --sourceMap", | ||
"test": "xo && nyc ava", | ||
"build": "npm run clean && webpack", | ||
"compile": "npm run clean && tsc", | ||
"clean": "del-cli dist", | ||
"docs": "typedoc source" | ||
"example": "npm run build && node example.js" | ||
}, | ||
"files": [ | ||
"dist/source", | ||
"dist", | ||
"dev-only.js" | ||
@@ -53,45 +51,35 @@ ], | ||
"dependencies": { | ||
"type-fest": "^0.18.0" | ||
"@sindresorhus/is": "^4.0.0", | ||
"callsites": "^3.1.0", | ||
"dot-prop": "^6.0.1", | ||
"lodash.isequal": "^4.5.0", | ||
"type-fest": "^0.20.2", | ||
"vali-date": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@sindresorhus/is": "^4.0.0", | ||
"@sindresorhus/tsconfig": "^0.7.0", | ||
"@sindresorhus/tsconfig": "^0.8.0", | ||
"@types/lodash.isequal": "^4.5.5", | ||
"@types/node": "^14.14.6", | ||
"@types/node": "^14.14.10", | ||
"@types/vali-date": "^1.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.6.0", | ||
"@typescript-eslint/parser": "^4.6.0", | ||
"add-asset-webpack-plugin": "^1.0.0", | ||
"add-module-exports-webpack-plugin": "^2.0.0", | ||
"ava": "^2.0.0", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"callsites": "^3.1.0", | ||
"codecov": "^3.8.0", | ||
"del-cli": "^3.0.1", | ||
"dot-prop": "^6.0.0", | ||
"eslint-config-xo-typescript": "^0.35.0", | ||
"license-webpack-plugin": "^2.3.1", | ||
"lodash.isequal": "^4.5.0", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^9.0.0", | ||
"typedoc": "^0.19.2", | ||
"typescript": "~4.0.5", | ||
"vali-date": "^1.0.0", | ||
"webpack": "^5.3.1", | ||
"webpack-cli": "^4.1.0", | ||
"xo": "^0.34.1" | ||
"typescript": "~4.1.2", | ||
"xo": "^0.35.0" | ||
}, | ||
"browser": { | ||
"./dist/source/utils/infer-label.js": "./dist/source/utils/infer-label.browser.js" | ||
"./dist/utils/infer-label.js": "./dist/utils/infer-label.browser.js" | ||
}, | ||
"types": "dist/source", | ||
"types": "dist", | ||
"sideEffects": false, | ||
"xo": { | ||
"extends": "xo-typescript", | ||
"extensions": [ | ||
"ts" | ||
], | ||
"parserOptions": { | ||
"project": "./tsconfig.xo.json" | ||
}, | ||
"ignores": [ | ||
"example.js", | ||
"webpack.config.js", | ||
"dev-only.js" | ||
"dev-only.js", | ||
"source/utils/infer-label.browser.ts" | ||
], | ||
@@ -114,11 +102,12 @@ "rules": { | ||
"files": [ | ||
"dist/test/**", | ||
"!dist/test/fixtures/**" | ||
"test/**", | ||
"!test/fixtures/**" | ||
], | ||
"extensions": [ | ||
"ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
] | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"dist/test" | ||
] | ||
} | ||
} |
@@ -7,3 +7,3 @@ <p align="center"> | ||
[![Build Status](https://travis-ci.org/sindresorhus/ow.svg?branch=master)](https://travis-ci.org/sindresorhus/ow) [![Coverage Status](https://codecov.io/gh/sindresorhus/ow/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/ow) [![gzip size](https://badgen.net/bundlephobia/minzip/ow)](https://bundlephobia.com/result?p=ow) [![install size](https://packagephobia.now.sh/badge?p=ow)](https://packagephobia.now.sh/result?p=ow) | ||
[![Coverage Status](https://codecov.io/gh/sindresorhus/ow/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/ow) [![gzip size](https://badgen.net/bundlephobia/minzip/ow)](https://bundlephobia.com/result?p=ow) [![install size](https://packagephobia.now.sh/badge?p=ow)](https://packagephobia.now.sh/result?p=ow) | ||
@@ -28,2 +28,4 @@ > Function argument validation for humans | ||
*If you use CommonJS, you need to import is as `const {default: ow} = require('ow')`.* | ||
```ts | ||
@@ -30,0 +32,0 @@ import ow from 'ow'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
11
68
0
100
3112
2
288
126984
6
+ Added@sindresorhus/is@^4.0.0
+ Addedcallsites@^3.1.0
+ Addeddot-prop@^6.0.1
+ Addedlodash.isequal@^4.5.0
+ Addedvali-date@^1.0.0
+ Added@sindresorhus/is@4.6.0(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addeddot-prop@6.0.1(transitive)
+ Addedis-obj@2.0.0(transitive)
+ Addedlodash.isequal@4.5.0(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedvali-date@1.0.0(transitive)
- Removedtype-fest@0.18.1(transitive)
Updatedtype-fest@^0.20.2