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

ow

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ow - npm Package Compare versions

Comparing version 0.19.0 to 0.20.0

dist/argument-error.d.ts

2

dev-only.js

@@ -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';

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