@fastly/compute-js-static-publish
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -16,4 +16,5 @@ import { ContentAsset, ContentAssetMetadataMapEntry, StoreEntry } from "../../types/index.js"; | ||
getText(): string; | ||
getJson<T = unknown>(): T; | ||
getMetadata(): ContentAssetMetadataMapEntry; | ||
} | ||
//# sourceMappingURL=content-asset-kv-store.d.ts.map |
@@ -57,2 +57,5 @@ import { KVStore } from "fastly:kv-store"; | ||
} | ||
getJson() { | ||
throw new Error("Can't getJson() for KV Store asset"); | ||
} | ||
getMetadata() { | ||
@@ -59,0 +62,0 @@ return this.metadata; |
@@ -15,4 +15,5 @@ import { ContentAsset, ContentAssetMetadataMapEntry, StoreEntry } from "../../types/index.js"; | ||
getText(): string; | ||
getJson<T = unknown>(): T; | ||
getMetadata(): ContentAssetMetadataMapEntry; | ||
} | ||
//# sourceMappingURL=content-asset-wasm-inline.d.ts.map |
@@ -44,2 +44,6 @@ import { includeBytes } from "fastly:experimental"; | ||
} | ||
getJson() { | ||
const text = this.getText(); | ||
return JSON.parse(text); | ||
} | ||
getMetadata() { | ||
@@ -46,0 +50,0 @@ return this.metadata; |
@@ -24,2 +24,3 @@ import { AssetManager } from "./asset-manager.js"; | ||
getText(): string; | ||
getJson<T = unknown>(): T; | ||
getMetadata(): ContentAssetMetadataMapEntry; | ||
@@ -26,0 +27,0 @@ } |
@@ -52,2 +52,6 @@ import { AssetManager } from "./asset-manager.js"; | ||
} | ||
getJson() { | ||
const text = this.getText(); | ||
return JSON.parse(text); | ||
} | ||
getMetadata() { | ||
@@ -54,0 +58,0 @@ return this.metadata; |
@@ -53,3 +53,4 @@ import type { ContentCompressionTypes } from "../constants/compression.js"; | ||
getText(): string; | ||
getJson<T = unknown>(): T; | ||
} | ||
//# sourceMappingURL=content-assets.d.ts.map |
{ | ||
"name": "@fastly/compute-js-static-publish", | ||
"type": "module", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Static Publisher for Fastly Compute JavaScript", | ||
@@ -6,0 +6,0 @@ "main": "./build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230081
3950