Skip to content

Commit

Permalink
Merge pull request #73 from vkrol/fix-npm-package-json-documentation-url
Browse files Browse the repository at this point in the history
Fix npm package.json documentation URL
  • Loading branch information
LinusU authored Nov 13, 2022
2 parents 8e16702 + 6b858a4 commit f1fe16c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PJV.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
PJV.getSpecMap = function (specName) {

if (specName == "npm") {
// https://npmjs.org/doc/json.html
// https://docs.npmjs.com/cli/v9/configuring-npm/package-json
return {
"name": {"type": "string", required: true, format: PJV.packageFormat},
"version": {"type": "string", required: true, format: PJV.versionFormat},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Supported Specifications
Of course, there are multiple ones to follow, which makes it trickier.

* [NPM](https://npmjs.org/doc/json.html)
* [NPM](https://docs.npmjs.com/cli/v9/configuring-npm/package-json)
* [CommonJS Packages 1.0](http://wiki.commonjs.org/wiki/Packages/1.0)
* [CommonJS Packages 1.1](http://wiki.commonjs.org/wiki/Packages/1.1)

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2>Package.json validator</h2>
<div id="options" ng-show="advanced">
Validate against:<br />
<label class="radio inline">
<input type="radio" ng-model="data.spec" name="spec" value="npm"><a href="https://npmjs.org/doc/json.html">NPM</a> (recommended)
<input type="radio" ng-model="data.spec" name="spec" value="npm"><a href="https://docs.npmjs.com/cli/v9/configuring-npm/package-json">NPM</a> (recommended)
</label>
<label class="radio inline">
<input type="radio" ng-model="data.spec" name="spec" value="commonjs_1.0"><a href="http://wiki.commonjs.org/wiki/Packages/1.0">Packages 1.0</a>
Expand Down
2 changes: 1 addition & 1 deletion test/qunit-pjv.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ QUnit.test("Recommended fields", function() {
});

QUnit.test("Licenses", function() {
// https://npmjs.org/doc/json.html#license
// https://docs.npmjs.com/cli/v9/configuring-npm/package-json#license

// licenses as an array
var json = getPackageJson(npmWarningFields);
Expand Down

0 comments on commit f1fe16c

Please sign in to comment.