Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix npm package.json documentation URL #73

Merged
merged 1 commit into from
Nov 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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