Comparing version 3.0.0 to 3.0.1
'use strict'; | ||
module.exports = object => { | ||
if (typeof object !== 'object') { | ||
if (typeof object !== 'object' || object === null) { | ||
throw new TypeError('Expected an object'); | ||
@@ -5,0 +6,0 @@ } |
{ | ||
"name": "invert-kv", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`", | ||
"license": "MIT", | ||
"repository": "sindresorhus/invert-kv", | ||
"funding": "https://github.com/sindresorhus/invert-kv?sponsor=1", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
@@ -12,0 +13,0 @@ "engines": { |
@@ -1,6 +0,5 @@ | ||
# invert-kv [![Build Status](https://travis-ci.org/sindresorhus/invert-kv.svg?branch=master)](https://travis-ci.org/sindresorhus/invert-kv) | ||
# invert-kv [![Build Status](https://travis-ci.com/sindresorhus/invert-kv.svg?branch=master)](https://travis-ci.com/sindresorhus/invert-kv) | ||
> Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}` | ||
## Install | ||
@@ -12,3 +11,2 @@ | ||
## Usage | ||
@@ -23,5 +21,12 @@ | ||
--- | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-invert-kv?utm_source=npm-invert-kv&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
Sorry, the diff of this file is not supported yet
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
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
3672
31