@kaoruisaac/pedelec 0.4.4 → 0.4.5
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.js
CHANGED
|
@@ -1791,7 +1791,9 @@ function normalizeProviderArtifact(value) {
|
|
|
1791
1791
|
const optionalIdIsValid = (key) => !(key in value) || (typeof value[key] === "string" && value[key].trim().length > 0);
|
|
1792
1792
|
const validName = typeof name === "string" && name.trim().length > 0 &&
|
|
1793
1793
|
!name.includes("/") && !name.includes("\\") && name !== "." && name !== "..";
|
|
1794
|
-
|
|
1794
|
+
// Core persists a collision-safe basename (`<artifact-id>-<name>`). Logical `name`
|
|
1795
|
+
// and public `path` are validated independently.
|
|
1796
|
+
const validPath = isValidAssetPath(path);
|
|
1795
1797
|
const validSize = typeof sizeBytes === "number" && Number.isFinite(sizeBytes) &&
|
|
1796
1798
|
Number.isInteger(sizeBytes) && sizeBytes >= 0;
|
|
1797
1799
|
const validKind = kind === "image" || kind === "audio" || kind === "video" || kind === "file";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.5";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated from sdk/package.json. Do not edit manually.
|
|
2
|
-
export const SDK_VERSION = "0.4.
|
|
2
|
+
export const SDK_VERSION = "0.4.5";
|