@bundlekit/service 0.0.6 → 0.0.7

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.6";
2698
+ var version = "0.0.7";
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,56 +1004,47 @@ const isPrerelease = (type) => {
1004
1004
 
1005
1005
  var truncate_1 = truncate$1;
1006
1006
 
1007
- var lrucache;
1008
- var hasRequiredLrucache;
1009
-
1010
- function requireLrucache () {
1011
- if (hasRequiredLrucache) return lrucache;
1012
- hasRequiredLrucache = 1;
1013
-
1014
- class LRUCache {
1015
- constructor () {
1016
- this.max = 1000;
1017
- this.map = new Map();
1018
- }
1019
-
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
- }
1007
+ class LRUCache {
1008
+ constructor () {
1009
+ this.max = 1000;
1010
+ this.map = new Map();
1011
+ }
1031
1012
 
1032
- delete (key) {
1033
- return this.map.delete(key)
1034
- }
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
+ }
1035
1024
 
1036
- set (key, value) {
1037
- const deleted = this.delete(key);
1025
+ delete (key) {
1026
+ return this.map.delete(key)
1027
+ }
1038
1028
 
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
- }
1029
+ set (key, value) {
1030
+ const deleted = this.delete(key);
1045
1031
 
1046
- this.map.set(key, value);
1047
- }
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
+ }
1048
1038
 
1049
- return this
1050
- }
1051
- }
1039
+ this.map.set(key, value);
1040
+ }
1052
1041
 
1053
- lrucache = LRUCache;
1054
- return lrucache;
1042
+ return this
1043
+ }
1055
1044
  }
1056
1045
 
1046
+ var lrucache = LRUCache;
1047
+
1057
1048
  var range;
1058
1049
  var hasRequiredRange;
1059
1050
 
@@ -1275,7 +1266,7 @@ function requireRange () {
1275
1266
 
1276
1267
  range = Range;
1277
1268
 
1278
- const LRU = requireLrucache();
1269
+ const LRU = lrucache;
1279
1270
  const cache = new LRU();
1280
1271
 
1281
1272
  const parseOptions = parseOptions_1;
@@ -2669,7 +2660,7 @@ var minimist = function (args, opts) {
2669
2660
  var minimist$1 = /*@__PURE__*/getDefaultExportFromCjs(minimist);
2670
2661
 
2671
2662
  var name = "@bundlekit/service";
2672
- var version = "0.0.6";
2663
+ var version = "0.0.7";
2673
2664
  var main = "./dist/index.cjs";
2674
2665
  var module$1 = "./dist/index.mjs";
2675
2666
  var cjs = "./dist/index.cjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bundlekit/service",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
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.4"
28
+ "@bundlekit/shared-utils": "0.0.5"
29
29
  },
30
30
  "peerDependencies": {
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.6",
35
- "@bundlekit/bundler-rolldown": "0.0.4"
31
+ "@bundlekit/bundler-webpack": "0.0.5",
32
+ "@bundlekit/bundler-vite": "0.0.5",
33
+ "@bundlekit/bundler-rspack": "0.0.5",
34
+ "@bundlekit/bundler-rollup": "0.0.7",
35
+ "@bundlekit/bundler-rolldown": "0.0.5"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@bundlekit/bundler-webpack": {