@nextlyhq/storage-vercel-blob 0.0.2-alpha.70 → 0.0.2-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _vercel_blob = require("@vercel/blob");
|
|
3
|
-
// ../nextly/dist/nextly-error-
|
|
3
|
+
// ../nextly/dist/nextly-error-CwDiSPDF.mjs
|
|
4
4
|
function isDbError(err) {
|
|
5
5
|
if (!err || typeof err !== "object") return false;
|
|
6
6
|
const obj = err;
|
|
@@ -78,6 +78,7 @@ const NEXTLY_ERROR_STATUS = {
|
|
|
78
78
|
API_KEY_ROLE_ABOVE_CREATOR: 403,
|
|
79
79
|
NOT_FOUND: 404,
|
|
80
80
|
METHOD_NOT_ALLOWED: 405,
|
|
81
|
+
RANGE_NOT_SATISFIABLE: 416,
|
|
81
82
|
CONFLICT: 409,
|
|
82
83
|
DUPLICATE: 409,
|
|
83
84
|
RATE_LIMITED: 429,
|
|
@@ -191,6 +192,7 @@ const GENERIC_PUBLIC_MESSAGE = {
|
|
|
191
192
|
FORBIDDEN: "You don't have permission to perform this action.",
|
|
192
193
|
NOT_FOUND: "Not found.",
|
|
193
194
|
METHOD_NOT_ALLOWED: "That method is not allowed on this address.",
|
|
195
|
+
RANGE_NOT_SATISFIABLE: "The requested range is outside the file.",
|
|
194
196
|
CONFLICT: "The resource has changed since you last loaded it. Please refresh and try again.",
|
|
195
197
|
DUPLICATE: "Resource already exists.",
|
|
196
198
|
PAYLOAD_TOO_LARGE: "The request is too large.",
|
|
@@ -657,7 +659,7 @@ function ipv4ToInt(ip) {
|
|
|
657
659
|
}
|
|
658
660
|
return acc >>> 0;
|
|
659
661
|
}
|
|
660
|
-
// ../nextly/dist/validate-external-url-
|
|
662
|
+
// ../nextly/dist/validate-external-url-CnZrcJdP.mjs
|
|
661
663
|
const IPV4_RE = /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;
|
|
662
664
|
/**
|
|
663
665
|
* IPv4 CIDR ranges that must NEVER be the destination of an outbound
|