package-json
Advanced tools
Comparing version 6.3.0 to 6.4.0
@@ -99,3 +99,3 @@ /// <reference types="node"/> | ||
readonly bin?: {readonly [key: string]: string}; | ||
readonly directories?: ReadonlyArray<string>; | ||
readonly directories?: readonly string[]; | ||
readonly engines?: {readonly [type: string]: string}; | ||
@@ -117,8 +117,8 @@ readonly _hasShrinkwrap?: boolean; | ||
| {readonly url?: string; readonly email: string}; | ||
readonly contributors?: ReadonlyArray<Person>; | ||
readonly contributors?: readonly Person[]; | ||
readonly description?: string; | ||
readonly homepage?: string; | ||
readonly keywords?: ReadonlyArray<string>; | ||
readonly keywords?: readonly string[]; | ||
readonly license?: string; | ||
readonly maintainers?: ReadonlyArray<Person>; | ||
readonly maintainers?: readonly Person[]; | ||
readonly readme?: string; | ||
@@ -148,4 +148,4 @@ readonly readmeFilename?: string; | ||
readonly main?: string; | ||
readonly files?: ReadonlyArray<string>; | ||
readonly man?: ReadonlyArray<string>; | ||
readonly files?: readonly string[]; | ||
readonly man?: readonly string[]; | ||
readonly scripts?: {readonly [scriptName: string]: string}; | ||
@@ -152,0 +152,0 @@ readonly gitHead?: string; |
{ | ||
"name": "package-json", | ||
"version": "6.3.0", | ||
"version": "6.4.0", | ||
"description": "Get metadata of a package from the npm registry", | ||
@@ -37,11 +37,11 @@ "license": "MIT", | ||
"registry-url": "^5.0.0", | ||
"semver": "^5.6.0" | ||
"semver": "^6.1.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^11.12.2", | ||
"ava": "^1.4.1", | ||
"@types/node": "^12.0.7", | ||
"ava": "^2.1.0", | ||
"mock-private-registry": "^1.1.2", | ||
"tsd": "^0.7.1", | ||
"tsd": "^0.7.3", | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -30,3 +30,3 @@ # package-json [![Build Status](https://travis-ci.org/sindresorhus/package-json.svg?branch=master)](https://travis-ci.org/sindresorhus/package-json) | ||
### packageJson(packageName, [options]) | ||
### packageJson(packageName, options?) | ||
@@ -41,3 +41,3 @@ #### packageName | ||
Type: `Object` | ||
Type: `object` | ||
@@ -81,3 +81,3 @@ ##### version | ||
Type: `http.Agent | https.Agent | Object | false` | ||
Type: `http.Agent | https.Agent | object | false` | ||
@@ -111,4 +111,12 @@ Overwrite the `agent` option that is passed down to [`got`](https://github.com/sindresorhus/got#agent). This might be useful to add [proxy support](https://github.com/sindresorhus/got#proxies). | ||
## License | ||
--- | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-package-json?utm_source=npm-package-json&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> |
14277
119
+ Addedsemver@6.3.1(transitive)
- Removedsemver@5.7.2(transitive)
Updatedsemver@^6.1.1