@bundlekit/service 0.0.2 → 0.0.3

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 CHANGED
@@ -104,7 +104,7 @@ export default defineConfig({
104
104
 
105
105
  ## 文档
106
106
 
107
- 完整文档请访问 [https://bundlekit.dev](https://bundlekit.dev)
107
+ 完整文档请访问 [https://bundlekit.harhao.workers.dev](https://bundlekit.harhao.workers.dev)
108
108
 
109
109
  ## License
110
110
 
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.2";
2698
+ var version = "0.0.3";
2699
2699
  var main = "./dist/index.cjs";
2700
2700
  var module$1 = "./dist/index.mjs";
2701
2701
  var cjs = "./dist/index.cjs";
@@ -2770,7 +2770,13 @@ var keywords = [
2770
2770
  "ds"
2771
2771
  ];
2772
2772
  var author = "harhao@163.com";
2773
- var license = "ISC";
2773
+ var license = "MIT";
2774
+ var website = "https://bundlekit.harhao.workers.dev";
2775
+ var repository = {
2776
+ type: "git",
2777
+ url: "https://github.com/Harhao/bundlekit.git",
2778
+ directory: "packages/bundlekit-service"
2779
+ };
2774
2780
  var publishConfig = {
2775
2781
  registry: "https://registry.npmjs.org/",
2776
2782
  access: "public"
@@ -2796,6 +2802,8 @@ var pkg = {
2796
2802
  keywords: keywords,
2797
2803
  author: author,
2798
2804
  license: license,
2805
+ website: website,
2806
+ repository: repository,
2799
2807
  publishConfig: publishConfig,
2800
2808
  engines: engines
2801
2809
  };
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.2";
2663
+ var version = "0.0.3";
2673
2664
  var main = "./dist/index.cjs";
2674
2665
  var module$1 = "./dist/index.mjs";
2675
2666
  var cjs = "./dist/index.cjs";
@@ -2744,7 +2735,13 @@ var keywords = [
2744
2735
  "ds"
2745
2736
  ];
2746
2737
  var author = "harhao@163.com";
2747
- var license = "ISC";
2738
+ var license = "MIT";
2739
+ var website = "https://bundlekit.harhao.workers.dev";
2740
+ var repository = {
2741
+ type: "git",
2742
+ url: "https://github.com/Harhao/bundlekit.git",
2743
+ directory: "packages/bundlekit-service"
2744
+ };
2748
2745
  var publishConfig = {
2749
2746
  registry: "https://registry.npmjs.org/",
2750
2747
  access: "public"
@@ -2770,6 +2767,8 @@ var pkg = {
2770
2767
  keywords: keywords,
2771
2768
  author: author,
2772
2769
  license: license,
2770
+ website: website,
2771
+ repository: repository,
2773
2772
  publishConfig: publishConfig,
2774
2773
  engines: engines
2775
2774
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bundlekit/service",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
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.2"
28
+ "@bundlekit/shared-utils": "0.0.3"
29
29
  },
30
30
  "peerDependencies": {
31
- "@bundlekit/bundler-webpack": "0.0.2",
32
- "@bundlekit/bundler-vite": "0.0.2",
33
- "@bundlekit/bundler-rspack": "0.0.2",
34
- "@bundlekit/bundler-rolldown": "0.0.2",
35
- "@bundlekit/bundler-rollup": "0.0.2"
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"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@bundlekit/bundler-webpack": {
@@ -70,7 +70,13 @@
70
70
  "ds"
71
71
  ],
72
72
  "author": "harhao@163.com",
73
- "license": "ISC",
73
+ "license": "MIT",
74
+ "website": "https://bundlekit.harhao.workers.dev",
75
+ "repository": {
76
+ "type": "git",
77
+ "url": "https://github.com/Harhao/bundlekit.git",
78
+ "directory": "packages/bundlekit-service"
79
+ },
74
80
  "publishConfig": {
75
81
  "registry": "https://registry.npmjs.org/",
76
82
  "access": "public"