+9
-5
lines changedFilter options
+9
-5
lines changed Original file line number Diff line number Diff line change
@@ -165,7 +165,11 @@ const errorMessage = (er, npm) => {
165
165
const pkg = er.pkgid.replace(/(?!^)@.*$/, '')
166
166
167
167
detail.push(['404', ''])
168
-
detail.push(['404', '', `'${replaceInfo(er.pkgid)}' is not in this registry.`])
168
+
detail.push([
169
+
'404',
170
+
'',
171
+
`The requested resource '${replaceInfo(er.pkgid)}' could not be found or you do not have permission to access it.`,
172
+
])
169
173
170
174
const nameValidator = require('validate-npm-package-name')
171
175
const valResult = nameValidator(pkg)
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ Object {
15
15
Array [
16
16
"404",
17
17
"",
18
-
"'http://evil:***@npmjs.org/not-found' is not in this registry.",
18
+
"The requested resource 'http://evil:***@npmjs.org/not-found' could not be found or you do not have permission to access it.",
19
19
],
20
20
Array [
21
21
"404",
@@ -58,7 +58,7 @@ Object {
58
58
Array [
59
59
"404",
60
60
"",
61
-
"'node_modules' is not in this registry.",
61
+
"The requested resource 'node_modules' could not be found or you do not have permission to access it.",
62
62
],
63
63
Array [
64
64
"404",
@@ -101,7 +101,7 @@ Object {
101
101
Array [
102
102
"404",
103
103
"",
104
-
"'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is not in this registry.",
104
+
"The requested resource 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' could not be found or you do not have permission to access it.",
105
105
],
106
106
Array [
107
107
"404",
@@ -156,7 +156,7 @@ Object {
156
156
Array [
157
157
"404",
158
158
"",
159
-
"'yolo' is not in this registry.",
159
+
"The requested resource 'yolo' could not be found or you do not have permission to access it.",
160
160
],
161
161
Array [
162
162
"404",
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4