@twin.org/core 0.0.1-next.50 → 0.0.1-next.51
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/cjs/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/docs/changelog.md +7 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -3985,7 +3985,7 @@ class AsyncCache {
|
|
|
3985
3985
|
static async set(key, value, ttlMs) {
|
|
3986
3986
|
AsyncCache._cache[key] = {
|
|
3987
3987
|
response: Promise.resolve(value),
|
|
3988
|
-
expires:
|
|
3988
|
+
expires: Date.now() + (ttlMs ?? 1000)
|
|
3989
3989
|
};
|
|
3990
3990
|
}
|
|
3991
3991
|
/**
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3983,7 +3983,7 @@ class AsyncCache {
|
|
|
3983
3983
|
static async set(key, value, ttlMs) {
|
|
3984
3984
|
AsyncCache._cache[key] = {
|
|
3985
3985
|
response: Promise.resolve(value),
|
|
3986
|
-
expires:
|
|
3986
|
+
expires: Date.now() + (ttlMs ?? 1000)
|
|
3987
3987
|
};
|
|
3988
3988
|
}
|
|
3989
3989
|
/**
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/core-v0.0.1-next.50...core-v0.0.1-next.51) (2025-03-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* simplify async set ([#121](https://github.com/twinfoundation/framework/issues/121)) ([2693c32](https://github.com/twinfoundation/framework/commit/2693c325266fd1a0aede6f1336c8b254c981a9ca))
|
|
9
|
+
|
|
3
10
|
## [0.0.1-next.50](https://github.com/twinfoundation/framework/compare/core-v0.0.1-next.49...core-v0.0.1-next.50) (2025-03-26)
|
|
4
11
|
|
|
5
12
|
|