@fastly/js-compute
Advanced tools
Comparing version 2.1.0 to 2.2.0
# Changelog | ||
## 2.2.0 (2023-06-08) | ||
### Added | ||
* Implement SimpleCache.getOrSet method ([a1f4517](https://github.com/fastly/js-compute-runtime/commit/a1f4517e5e377354254ee2a635f97a562c87e13c)) | ||
## 2.1.0 (2023-06-02) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@fastly/js-compute", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": "16 - 20", |
@@ -30,3 +30,3 @@ import { dirname } from "node:path"; | ||
console.error( | ||
"Error: Failed to open the `input` (${input})", | ||
`Error: Failed to open the \`input\` (${input})`, | ||
error.message | ||
@@ -33,0 +33,0 @@ ); |
@@ -6,2 +6,4 @@ declare module "fastly:cache" { | ||
static set(key: string, value: ReadableStream, ttl: number, length: number): undefined; | ||
static getOrSet(key: string, set: () => Promise<{value: BodyInit, ttl: number}>): Promise<SimpleCacheEntry>; | ||
static getOrSet(key: string, set: () => Promise<{value: ReadableStream, ttl: number, length: number}>): Promise<SimpleCacheEntry>; | ||
static delete(key: string): undefined; | ||
@@ -8,0 +10,0 @@ } |
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
23437294
3151