@storm-software/esbuild 0.31.39 → 0.31.41
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/README.md +1 -2
- package/bin/esbuild.cjs +20 -2
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm ESBuild Package](#storm-esbuild-package)
|
package/bin/esbuild.cjs
CHANGED
|
@@ -2333,7 +2333,7 @@ minimatch.unescape = unescape;
|
|
|
2333
2333
|
// ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/glob.js
|
|
2334
2334
|
var import_node_url2 = require("url");
|
|
2335
2335
|
|
|
2336
|
-
// ../../node_modules/.pnpm/lru-cache@11.0
|
|
2336
|
+
// ../../node_modules/.pnpm/lru-cache@11.1.0/node_modules/lru-cache/dist/esm/index.js
|
|
2337
2337
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
2338
2338
|
var warned = /* @__PURE__ */ new Set();
|
|
2339
2339
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
@@ -2431,6 +2431,7 @@ var LRUCache = class _LRUCache {
|
|
|
2431
2431
|
#max;
|
|
2432
2432
|
#maxSize;
|
|
2433
2433
|
#dispose;
|
|
2434
|
+
#onInsert;
|
|
2434
2435
|
#disposeAfter;
|
|
2435
2436
|
#fetchMethod;
|
|
2436
2437
|
#memoMethod;
|
|
@@ -2512,6 +2513,7 @@ var LRUCache = class _LRUCache {
|
|
|
2512
2513
|
#hasDispose;
|
|
2513
2514
|
#hasFetchMethod;
|
|
2514
2515
|
#hasDisposeAfter;
|
|
2516
|
+
#hasOnInsert;
|
|
2515
2517
|
/**
|
|
2516
2518
|
* Do not call this method unless you need to inspect the
|
|
2517
2519
|
* inner workings of the cache. If anything returned by this
|
|
@@ -2588,6 +2590,12 @@ var LRUCache = class _LRUCache {
|
|
|
2588
2590
|
get dispose() {
|
|
2589
2591
|
return this.#dispose;
|
|
2590
2592
|
}
|
|
2593
|
+
/**
|
|
2594
|
+
* {@link LRUCache.OptionsBase.onInsert} (read-only)
|
|
2595
|
+
*/
|
|
2596
|
+
get onInsert() {
|
|
2597
|
+
return this.#onInsert;
|
|
2598
|
+
}
|
|
2591
2599
|
/**
|
|
2592
2600
|
* {@link LRUCache.OptionsBase.disposeAfter} (read-only)
|
|
2593
2601
|
*/
|
|
@@ -2595,7 +2603,7 @@ var LRUCache = class _LRUCache {
|
|
|
2595
2603
|
return this.#disposeAfter;
|
|
2596
2604
|
}
|
|
2597
2605
|
constructor(options) {
|
|
2598
|
-
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
|
|
2606
|
+
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
|
|
2599
2607
|
if (max !== 0 && !isPosInt(max)) {
|
|
2600
2608
|
throw new TypeError("max option must be a nonnegative integer");
|
|
2601
2609
|
}
|
|
@@ -2637,6 +2645,9 @@ var LRUCache = class _LRUCache {
|
|
|
2637
2645
|
if (typeof dispose === "function") {
|
|
2638
2646
|
this.#dispose = dispose;
|
|
2639
2647
|
}
|
|
2648
|
+
if (typeof onInsert === "function") {
|
|
2649
|
+
this.#onInsert = onInsert;
|
|
2650
|
+
}
|
|
2640
2651
|
if (typeof disposeAfter === "function") {
|
|
2641
2652
|
this.#disposeAfter = disposeAfter;
|
|
2642
2653
|
this.#disposed = [];
|
|
@@ -2645,6 +2656,7 @@ var LRUCache = class _LRUCache {
|
|
|
2645
2656
|
this.#disposed = void 0;
|
|
2646
2657
|
}
|
|
2647
2658
|
this.#hasDispose = !!this.#dispose;
|
|
2659
|
+
this.#hasOnInsert = !!this.#onInsert;
|
|
2648
2660
|
this.#hasDisposeAfter = !!this.#disposeAfter;
|
|
2649
2661
|
this.noDisposeOnSet = !!noDisposeOnSet;
|
|
2650
2662
|
this.noUpdateTTL = !!noUpdateTTL;
|
|
@@ -3167,6 +3179,9 @@ var LRUCache = class _LRUCache {
|
|
|
3167
3179
|
this.#addItemSize(index, size, status);
|
|
3168
3180
|
if (status) status.set = "add";
|
|
3169
3181
|
noUpdateTTL = false;
|
|
3182
|
+
if (this.#hasOnInsert) {
|
|
3183
|
+
this.#onInsert?.(v, k, "add");
|
|
3184
|
+
}
|
|
3170
3185
|
} else {
|
|
3171
3186
|
this.#moveToTail(index);
|
|
3172
3187
|
const oldVal = this.#valList[index];
|
|
@@ -3209,6 +3224,9 @@ var LRUCache = class _LRUCache {
|
|
|
3209
3224
|
} else if (status) {
|
|
3210
3225
|
status.set = "update";
|
|
3211
3226
|
}
|
|
3227
|
+
if (this.#hasOnInsert) {
|
|
3228
|
+
this.onInsert?.(v, k, v === oldVal ? "update" : "replace");
|
|
3229
|
+
}
|
|
3212
3230
|
}
|
|
3213
3231
|
if (ttl !== 0 && !this.#ttls) {
|
|
3214
3232
|
this.#initializeTTLTracking();
|
package/dist/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
|
|
2
|
-
import {
|
|
3
|
-
import { BuildOptions, OutputFile, Metafile,
|
|
2
|
+
import { TypeScriptBuildResolvedOptions, TypeScriptBuildOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
|
|
3
|
+
import { BuildOptions, OutputFile, Metafile, Format, BuildResult } from 'esbuild';
|
|
4
4
|
import { SourceMap } from 'rollup';
|
|
5
5
|
import { RawSourceMap } from 'source-map';
|
|
6
6
|
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
|
|
2
|
-
import {
|
|
3
|
-
import { BuildOptions, OutputFile, Metafile,
|
|
2
|
+
import { TypeScriptBuildResolvedOptions, TypeScriptBuildOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
|
|
3
|
+
import { BuildOptions, OutputFile, Metafile, Format, BuildResult } from 'esbuild';
|
|
4
4
|
import { SourceMap } from 'rollup';
|
|
5
5
|
import { RawSourceMap } from 'source-map';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
"@microsoft/api-extractor": "^7.48.1",
|
|
173
173
|
"@nx/devkit": "20.6.0",
|
|
174
174
|
"@nx/js": "20.6.0",
|
|
175
|
-
"@storm-software/build-tools": "0.143.
|
|
176
|
-
"@storm-software/config": "1.112.
|
|
177
|
-
"@storm-software/config-tools": "1.162.
|
|
175
|
+
"@storm-software/build-tools": "0.143.32",
|
|
176
|
+
"@storm-software/config": "1.112.12",
|
|
177
|
+
"@storm-software/config-tools": "1.162.6",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"rollup": "^4.29.1",
|
|
180
180
|
"spdx-exceptions": "^2.5.0",
|