@meethive/vite 0.0.3 → 0.0.4

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/satisfy.js CHANGED
@@ -1,33 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const buildIdentifier = "[0-9A-Za-z-]+";
4
- const build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
5
- const numericIdentifier = "0|[1-9]\\d*";
6
- const numericIdentifierLoose = "[0-9]+";
7
- const nonNumericIdentifier = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
8
- const preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;
9
- const preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;
10
- const preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;
11
- const preRelease = `(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;
12
- const xRangeIdentifier = `${numericIdentifier}|x|X|\\*`;
13
- const xRangePlain = `[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;
14
- const hyphenRange = `^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;
15
- const mainVersionLoose = `(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;
16
- const loosePlain = `[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;
17
- const gtlt = "((?:<|>)?=?)";
18
- const comparatorTrim = `(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;
19
- const loneTilde = "(?:~>?)";
20
- const tildeTrim = `(\\s*)${loneTilde}\\s+`;
21
- const loneCaret = "(?:\\^)";
22
- const caretTrim = `(\\s*)${loneCaret}\\s+`;
23
- const star = "(<|>)?=?\\s*\\*";
24
- const caret = `^${loneCaret}${xRangePlain}$`;
25
- const mainVersion = `(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;
26
- const fullPlain = `v?${mainVersion}${preRelease}?${build}?`;
27
- const tilde = `^${loneTilde}${xRangePlain}$`;
28
- const xRange = `^${gtlt}\\s*${xRangePlain}$`;
29
- const comparator = `^${gtlt}\\s*(${fullPlain})$|^$`;
30
- const gte0 = "^\\s*>=\\s*0.0.0\\s*$";
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/federation/satisfy.ts
20
+ var satisfy_exports = {};
21
+ __export(satisfy_exports, {
22
+ satisfy: () => satisfy
23
+ });
24
+ module.exports = __toCommonJS(satisfy_exports);
25
+
26
+ // src/federation/src/utils/semver/constants.ts
27
+ var buildIdentifier = "[0-9A-Za-z-]+";
28
+ var build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
29
+ var numericIdentifier = "0|[1-9]\\d*";
30
+ var numericIdentifierLoose = "[0-9]+";
31
+ var nonNumericIdentifier = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
32
+ var preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;
33
+ var preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;
34
+ var preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;
35
+ var preRelease = `(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;
36
+ var xRangeIdentifier = `${numericIdentifier}|x|X|\\*`;
37
+ var xRangePlain = `[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;
38
+ var hyphenRange = `^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;
39
+ var mainVersionLoose = `(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;
40
+ var loosePlain = `[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;
41
+ var gtlt = "((?:<|>)?=?)";
42
+ var comparatorTrim = `(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;
43
+ var loneTilde = "(?:~>?)";
44
+ var tildeTrim = `(\\s*)${loneTilde}\\s+`;
45
+ var loneCaret = "(?:\\^)";
46
+ var caretTrim = `(\\s*)${loneCaret}\\s+`;
47
+ var star = "(<|>)?=?\\s*\\*";
48
+ var caret = `^${loneCaret}${xRangePlain}$`;
49
+ var mainVersion = `(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;
50
+ var fullPlain = `v?${mainVersion}${preRelease}?${build}?`;
51
+ var tilde = `^${loneTilde}${xRangePlain}$`;
52
+ var xRange = `^${gtlt}\\s*${xRangePlain}$`;
53
+ var comparator = `^${gtlt}\\s*(${fullPlain})$|^$`;
54
+ var gte0 = "^\\s*>=\\s*0.0.0\\s*$";
55
+
56
+ // src/federation/src/utils/semver/utils.ts
31
57
  function parseRegex(source) {
32
58
  return new RegExp(source);
33
59
  }
@@ -49,6 +75,8 @@ function combineVersion(major, minor, patch, preRelease2) {
49
75
  }
50
76
  return mainVersion2;
51
77
  }
78
+
79
+ // src/federation/src/utils/semver/parser.ts
52
80
  function parseHyphen(range) {
53
81
  return range.replace(
54
82
  parseRegex(hyphenRange),
@@ -205,6 +233,8 @@ function parseStar(range) {
205
233
  function parseGTE0(comparatorString) {
206
234
  return comparatorString.trim().replace(parseRegex(gte0), "");
207
235
  }
236
+
237
+ // src/federation/src/utils/semver/compare.ts
208
238
  function compareAtom(rangeAtom, versionAtom) {
209
239
  rangeAtom = +rangeAtom || rangeAtom;
210
240
  versionAtom = +versionAtom || versionAtom;
@@ -273,6 +303,8 @@ function compare(rangeAtom, versionAtom) {
273
303
  return false;
274
304
  }
275
305
  }
306
+
307
+ // src/federation/src/utils/semver/satisfy.ts
276
308
  function parseComparatorString(range) {
277
309
  return pipe(
278
310
  // handle caret
@@ -332,6 +364,7 @@ function satisfy(version, range) {
332
364
  versionPreRelease
333
365
  ] = extractedVersion;
334
366
  const versionAtom = {
367
+ operator: versionOperator,
335
368
  version: combineVersion(
336
369
  versionMajor,
337
370
  versionMinor,
@@ -342,7 +375,7 @@ function satisfy(version, range) {
342
375
  major: versionMajor,
343
376
  minor: versionMinor,
344
377
  patch: versionPatch,
345
- preRelease: versionPreRelease?.split(".")
378
+ preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(".")
346
379
  };
347
380
  for (const comparator2 of comparators) {
348
381
  const extractedComparator = extractComparator(comparator2);
@@ -370,7 +403,7 @@ function satisfy(version, range) {
370
403
  major: rangeMajor,
371
404
  minor: rangeMinor,
372
405
  patch: rangePatch,
373
- preRelease: rangePreRelease?.split(".")
406
+ preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(".")
374
407
  };
375
408
  if (!compare(rangeAtom, versionAtom)) {
376
409
  return false;
@@ -378,4 +411,7 @@ function satisfy(version, range) {
378
411
  }
379
412
  return true;
380
413
  }
381
- exports.satisfy = satisfy;
414
+ // Annotate the CommonJS export names for ESM import in node:
415
+ 0 && (module.exports = {
416
+ satisfy
417
+ });
package/dist/satisfy.mjs CHANGED
@@ -1,31 +1,34 @@
1
- const buildIdentifier = "[0-9A-Za-z-]+";
2
- const build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
3
- const numericIdentifier = "0|[1-9]\\d*";
4
- const numericIdentifierLoose = "[0-9]+";
5
- const nonNumericIdentifier = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
6
- const preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;
7
- const preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;
8
- const preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;
9
- const preRelease = `(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;
10
- const xRangeIdentifier = `${numericIdentifier}|x|X|\\*`;
11
- const xRangePlain = `[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;
12
- const hyphenRange = `^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;
13
- const mainVersionLoose = `(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;
14
- const loosePlain = `[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;
15
- const gtlt = "((?:<|>)?=?)";
16
- const comparatorTrim = `(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;
17
- const loneTilde = "(?:~>?)";
18
- const tildeTrim = `(\\s*)${loneTilde}\\s+`;
19
- const loneCaret = "(?:\\^)";
20
- const caretTrim = `(\\s*)${loneCaret}\\s+`;
21
- const star = "(<|>)?=?\\s*\\*";
22
- const caret = `^${loneCaret}${xRangePlain}$`;
23
- const mainVersion = `(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;
24
- const fullPlain = `v?${mainVersion}${preRelease}?${build}?`;
25
- const tilde = `^${loneTilde}${xRangePlain}$`;
26
- const xRange = `^${gtlt}\\s*${xRangePlain}$`;
27
- const comparator = `^${gtlt}\\s*(${fullPlain})$|^$`;
28
- const gte0 = "^\\s*>=\\s*0.0.0\\s*$";
1
+ // src/federation/src/utils/semver/constants.ts
2
+ var buildIdentifier = "[0-9A-Za-z-]+";
3
+ var build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
4
+ var numericIdentifier = "0|[1-9]\\d*";
5
+ var numericIdentifierLoose = "[0-9]+";
6
+ var nonNumericIdentifier = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
7
+ var preReleaseIdentifierLoose = `(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;
8
+ var preReleaseLoose = `(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;
9
+ var preReleaseIdentifier = `(?:${numericIdentifier}|${nonNumericIdentifier})`;
10
+ var preRelease = `(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;
11
+ var xRangeIdentifier = `${numericIdentifier}|x|X|\\*`;
12
+ var xRangePlain = `[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;
13
+ var hyphenRange = `^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;
14
+ var mainVersionLoose = `(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;
15
+ var loosePlain = `[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;
16
+ var gtlt = "((?:<|>)?=?)";
17
+ var comparatorTrim = `(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;
18
+ var loneTilde = "(?:~>?)";
19
+ var tildeTrim = `(\\s*)${loneTilde}\\s+`;
20
+ var loneCaret = "(?:\\^)";
21
+ var caretTrim = `(\\s*)${loneCaret}\\s+`;
22
+ var star = "(<|>)?=?\\s*\\*";
23
+ var caret = `^${loneCaret}${xRangePlain}$`;
24
+ var mainVersion = `(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;
25
+ var fullPlain = `v?${mainVersion}${preRelease}?${build}?`;
26
+ var tilde = `^${loneTilde}${xRangePlain}$`;
27
+ var xRange = `^${gtlt}\\s*${xRangePlain}$`;
28
+ var comparator = `^${gtlt}\\s*(${fullPlain})$|^$`;
29
+ var gte0 = "^\\s*>=\\s*0.0.0\\s*$";
30
+
31
+ // src/federation/src/utils/semver/utils.ts
29
32
  function parseRegex(source) {
30
33
  return new RegExp(source);
31
34
  }
@@ -47,6 +50,8 @@ function combineVersion(major, minor, patch, preRelease2) {
47
50
  }
48
51
  return mainVersion2;
49
52
  }
53
+
54
+ // src/federation/src/utils/semver/parser.ts
50
55
  function parseHyphen(range) {
51
56
  return range.replace(
52
57
  parseRegex(hyphenRange),
@@ -203,6 +208,8 @@ function parseStar(range) {
203
208
  function parseGTE0(comparatorString) {
204
209
  return comparatorString.trim().replace(parseRegex(gte0), "");
205
210
  }
211
+
212
+ // src/federation/src/utils/semver/compare.ts
206
213
  function compareAtom(rangeAtom, versionAtom) {
207
214
  rangeAtom = +rangeAtom || rangeAtom;
208
215
  versionAtom = +versionAtom || versionAtom;
@@ -271,6 +278,8 @@ function compare(rangeAtom, versionAtom) {
271
278
  return false;
272
279
  }
273
280
  }
281
+
282
+ // src/federation/src/utils/semver/satisfy.ts
274
283
  function parseComparatorString(range) {
275
284
  return pipe(
276
285
  // handle caret
@@ -330,6 +339,7 @@ function satisfy(version, range) {
330
339
  versionPreRelease
331
340
  ] = extractedVersion;
332
341
  const versionAtom = {
342
+ operator: versionOperator,
333
343
  version: combineVersion(
334
344
  versionMajor,
335
345
  versionMinor,
@@ -340,7 +350,7 @@ function satisfy(version, range) {
340
350
  major: versionMajor,
341
351
  minor: versionMinor,
342
352
  patch: versionPatch,
343
- preRelease: versionPreRelease?.split(".")
353
+ preRelease: versionPreRelease == null ? void 0 : versionPreRelease.split(".")
344
354
  };
345
355
  for (const comparator2 of comparators) {
346
356
  const extractedComparator = extractComparator(comparator2);
@@ -368,7 +378,7 @@ function satisfy(version, range) {
368
378
  major: rangeMajor,
369
379
  minor: rangeMinor,
370
380
  patch: rangePatch,
371
- preRelease: rangePreRelease?.split(".")
381
+ preRelease: rangePreRelease == null ? void 0 : rangePreRelease.split(".")
372
382
  };
373
383
  if (!compare(rangeAtom, versionAtom)) {
374
384
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meethive/vite",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -58,7 +58,7 @@
58
58
  "sharp": "^0.34.3"
59
59
  },
60
60
  "scripts": {
61
- "build": "vite build",
61
+ "build": "vite build && node build.js",
62
62
  "clean": "pnpm rimraf node_modules && pnpm rimraf dist"
63
63
  }
64
64
  }