@bundlekit/service 0.0.3 → 0.0.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.cjs CHANGED
@@ -2695,7 +2695,7 @@ var minimist = function (args, opts) {
2695
2695
  var minimist$1 = /*@__PURE__*/getDefaultExportFromCjs(minimist);
2696
2696
 
2697
2697
  var name = "@bundlekit/service";
2698
- var version = "0.0.3";
2698
+ var version = "0.0.5";
2699
2699
  var main = "./dist/index.cjs";
2700
2700
  var module$1 = "./dist/index.mjs";
2701
2701
  var cjs = "./dist/index.cjs";
package/dist/index.mjs CHANGED
@@ -1004,46 +1004,55 @@ const isPrerelease = (type) => {
1004
1004
 
1005
1005
  var truncate_1 = truncate$1;
1006
1006
 
1007
- class LRUCache {
1008
- constructor () {
1009
- this.max = 1000;
1010
- this.map = new Map();
1011
- }
1007
+ var lrucache;
1008
+ var hasRequiredLrucache;
1012
1009
 
1013
- get (key) {
1014
- const value = this.map.get(key);
1015
- if (value === undefined) {
1016
- return undefined
1017
- } else {
1018
- // Remove the key from the map and add it to the end
1019
- this.map.delete(key);
1020
- this.map.set(key, value);
1021
- return value
1022
- }
1023
- }
1010
+ function requireLrucache () {
1011
+ if (hasRequiredLrucache) return lrucache;
1012
+ hasRequiredLrucache = 1;
1024
1013
 
1025
- delete (key) {
1026
- return this.map.delete(key)
1027
- }
1014
+ class LRUCache {
1015
+ constructor () {
1016
+ this.max = 1000;
1017
+ this.map = new Map();
1018
+ }
1028
1019
 
1029
- set (key, value) {
1030
- const deleted = this.delete(key);
1020
+ get (key) {
1021
+ const value = this.map.get(key);
1022
+ if (value === undefined) {
1023
+ return undefined
1024
+ } else {
1025
+ // Remove the key from the map and add it to the end
1026
+ this.map.delete(key);
1027
+ this.map.set(key, value);
1028
+ return value
1029
+ }
1030
+ }
1031
1031
 
1032
- if (!deleted && value !== undefined) {
1033
- // If cache is full, delete the least recently used item
1034
- if (this.map.size >= this.max) {
1035
- const firstKey = this.map.keys().next().value;
1036
- this.delete(firstKey);
1037
- }
1032
+ delete (key) {
1033
+ return this.map.delete(key)
1034
+ }
1038
1035
 
1039
- this.map.set(key, value);
1040
- }
1036
+ set (key, value) {
1037
+ const deleted = this.delete(key);
1041
1038
 
1042
- return this
1043
- }
1044
- }
1039
+ if (!deleted && value !== undefined) {
1040
+ // If cache is full, delete the least recently used item
1041
+ if (this.map.size >= this.max) {
1042
+ const firstKey = this.map.keys().next().value;
1043
+ this.delete(firstKey);
1044
+ }
1045
1045
 
1046
- var lrucache = LRUCache;
1046
+ this.map.set(key, value);
1047
+ }
1048
+
1049
+ return this
1050
+ }
1051
+ }
1052
+
1053
+ lrucache = LRUCache;
1054
+ return lrucache;
1055
+ }
1047
1056
 
1048
1057
  var range;
1049
1058
  var hasRequiredRange;
@@ -1266,7 +1275,7 @@ function requireRange () {
1266
1275
 
1267
1276
  range = Range;
1268
1277
 
1269
- const LRU = lrucache;
1278
+ const LRU = requireLrucache();
1270
1279
  const cache = new LRU();
1271
1280
 
1272
1281
  const parseOptions = parseOptions_1;
@@ -2660,7 +2669,7 @@ var minimist = function (args, opts) {
2660
2669
  var minimist$1 = /*@__PURE__*/getDefaultExportFromCjs(minimist);
2661
2670
 
2662
2671
  var name = "@bundlekit/service";
2663
- var version = "0.0.3";
2672
+ var version = "0.0.5";
2664
2673
  var main = "./dist/index.cjs";
2665
2674
  var module$1 = "./dist/index.mjs";
2666
2675
  var cjs = "./dist/index.cjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bundlekit/service",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.mjs",
6
6
  "cjs": "./dist/index.cjs",
@@ -25,14 +25,14 @@
25
25
  "jiti": "^2.4.2",
26
26
  "minimist": "^1.2.8",
27
27
  "semver": "^7.7.1",
28
- "@bundlekit/shared-utils": "0.0.3"
28
+ "@bundlekit/shared-utils": "0.0.4"
29
29
  },
30
30
  "peerDependencies": {
31
- "@bundlekit/bundler-webpack": "0.0.3",
32
- "@bundlekit/bundler-vite": "0.0.3",
33
- "@bundlekit/bundler-rspack": "0.0.3",
34
- "@bundlekit/bundler-rollup": "0.0.3",
35
- "@bundlekit/bundler-rolldown": "0.0.3"
31
+ "@bundlekit/bundler-webpack": "0.0.4",
32
+ "@bundlekit/bundler-vite": "0.0.4",
33
+ "@bundlekit/bundler-rspack": "0.0.4",
34
+ "@bundlekit/bundler-rollup": "0.0.5",
35
+ "@bundlekit/bundler-rolldown": "0.0.4"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@bundlekit/bundler-webpack": {