fyn 1.1.25 → 1.1.26

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.
Files changed (2) hide show
  1. package/dist/fyn.js +36 -27
  2. package/package.json +1 -1
package/dist/fyn.js CHANGED
@@ -5753,7 +5753,7 @@ const {
5753
5753
  const {
5754
5754
  getDepSection,
5755
5755
  makeDepStep
5756
- } = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/index.js");
5756
+ } = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/index.js");
5757
5757
 
5758
5758
  const xaa = __webpack_require__("./lib/util/xaa.js");
5759
5759
 
@@ -8723,7 +8723,7 @@ const {
8723
8723
 
8724
8724
  const {
8725
8725
  PackageRef
8726
- } = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/index.js");
8726
+ } = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/index.js");
8727
8727
 
8728
8728
  const WATCH_TIME = 5000; // consider meta cache stale after this much time (30 minutes)
8729
8729
 
@@ -9739,7 +9739,7 @@ const {
9739
9739
  const {
9740
9740
  FynpoConfigManager,
9741
9741
  FynpoDepGraph
9742
- } = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/index.js");
9742
+ } = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/index.js");
9743
9743
  /* eslint-disable no-magic-numbers, max-statements, no-empty, complexity, no-eval */
9744
9744
 
9745
9745
 
@@ -11237,7 +11237,7 @@ module.exports = __webpack_require__("./node_modules/.f/_/xaa/1.7.0/xaa/dist/xaa
11237
11237
 
11238
11238
  /***/ }),
11239
11239
 
11240
- /***/ "./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/caching.js":
11240
+ /***/ "./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/caching.js":
11241
11241
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
11242
11242
 
11243
11243
  "use strict";
@@ -11258,27 +11258,36 @@ const fs_1 = (0, tslib_1.__importDefault)(__webpack_require__("fs"));
11258
11258
  const path_1 = (0, tslib_1.__importDefault)(__webpack_require__("path"));
11259
11259
  const crypto_1 = (0, tslib_1.__importDefault)(__webpack_require__("crypto"));
11260
11260
  /**
11261
- * generate sha256 has of a file
11261
+ * create a sha256 hash for some data
11262
11262
  *
11263
- * @param filename
11263
+ * @param data
11264
11264
  * @returns
11265
11265
  */
11266
11266
 
11267
- async function hashFile(filename, encoding = "base64url") {
11268
- const data = await fs_1.default.promises.readFile(filename);
11269
- const hash = crypto_1.default.createHash("sha256").update(data).digest(encoding);
11270
- return hash;
11267
+ function hashData1(data, encoding = "base64url") {
11268
+ return crypto_1.default.createHash("sha256").update(data).digest(encoding);
11271
11269
  }
11270
+
11271
+ function hashData2(data, encoding = "base64url") {
11272
+ if (encoding === "base64url") {
11273
+ return hashData1(data, "base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
11274
+ }
11275
+
11276
+ return crypto_1.default.createHash("sha256").update(data).digest(encoding);
11277
+ }
11278
+
11279
+ const hashData = typeof crypto_1.default.createHash("sha256").digest("base64url") === "string" ? hashData1 : hashData2;
11272
11280
  /**
11273
- * create a sha256 hash for some data
11281
+ * generate sha256 has of a file
11274
11282
  *
11275
- * @param data
11283
+ * @param filename
11276
11284
  * @returns
11277
11285
  */
11278
11286
 
11279
-
11280
- function hashData(data, encoding = "base64url") {
11281
- return crypto_1.default.createHash("sha256").update(data).digest(encoding);
11287
+ async function hashFile(filename, encoding = "base64url") {
11288
+ const data = await fs_1.default.promises.readFile(filename);
11289
+ const hash = hashData(data, encoding);
11290
+ return hash;
11282
11291
  }
11283
11292
  /**
11284
11293
  * generate hash for an array of files
@@ -11478,7 +11487,7 @@ exports.processOutput = processOutput;
11478
11487
 
11479
11488
  /***/ }),
11480
11489
 
11481
- /***/ "./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/fynpo-config.js":
11490
+ /***/ "./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/fynpo-config.js":
11482
11491
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
11483
11492
 
11484
11493
  "use strict";
@@ -11628,7 +11637,7 @@ exports.FynpoConfigManager = FynpoConfigManager;
11628
11637
 
11629
11638
  /***/ }),
11630
11639
 
11631
- /***/ "./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/fynpo-dep-graph.js":
11640
+ /***/ "./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/fynpo-dep-graph.js":
11632
11641
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
11633
11642
 
11634
11643
  "use strict";
@@ -11658,9 +11667,9 @@ const minimatch_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_mod
11658
11667
  const lodash_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/lodash/4.17.21/lodash/lodash.min.js"));
11659
11668
  const semver_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/semver/7.3.5/semver/index.js"));
11660
11669
 
11661
- const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
11670
+ const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
11662
11671
 
11663
- const util_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/util.js");
11672
+ const util_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/util.js");
11664
11673
 
11665
11674
  const is_path_inside_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/is-path-inside/3.0.3/is-path-inside/index.js"));
11666
11675
  const DepSectionMap = {
@@ -12381,7 +12390,7 @@ exports.FynpoDepGraph = FynpoDepGraph;
12381
12390
 
12382
12391
  /***/ }),
12383
12392
 
12384
- /***/ "./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/index.js":
12393
+ /***/ "./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/index.js":
12385
12394
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
12386
12395
 
12387
12396
  "use strict";
@@ -12403,12 +12412,12 @@ const filter_scan_dir_1 = __webpack_require__("./node_modules/.f/_/filter-scan-d
12403
12412
  const minimatch_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/minimatch/3.0.4/minimatch/minimatch.js"));
12404
12413
  const lodash_1 = (0, tslib_1.__importDefault)(__webpack_require__("./node_modules/.f/_/lodash/4.17.21/lodash/lodash.min.js"));
12405
12414
 
12406
- const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
12415
+ const minimatch_group_1 = __webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/minimatch-group.js");
12407
12416
 
12408
- (0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/fynpo-dep-graph.js"), exports);
12409
- (0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/fynpo-config.js"), exports);
12410
- (0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/util.js"), exports);
12411
- exports.caching = (0, tslib_1.__importStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/caching.js"));
12417
+ (0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/fynpo-dep-graph.js"), exports);
12418
+ (0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/fynpo-config.js"), exports);
12419
+ (0, tslib_1.__exportStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/util.js"), exports);
12420
+ exports.caching = (0, tslib_1.__importStar)(__webpack_require__("./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/caching.js"));
12412
12421
  /**
12413
12422
  * Take an array of packages and figure out their dependencies on each other
12414
12423
  *
@@ -12664,7 +12673,7 @@ exports.makePkgDeps = makePkgDeps;
12664
12673
 
12665
12674
  /***/ }),
12666
12675
 
12667
- /***/ "./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/minimatch-group.js":
12676
+ /***/ "./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/minimatch-group.js":
12668
12677
  /***/ ((__unused_webpack_module, exports) => {
12669
12678
 
12670
12679
  "use strict";
@@ -12710,7 +12719,7 @@ exports.groupMM = groupMM;
12710
12719
 
12711
12720
  /***/ }),
12712
12721
 
12713
- /***/ "./node_modules/.f/_/@fynpo/base/1.1.9-fynlocal_h/@fynpo/base/dist/util.js":
12722
+ /***/ "./node_modules/.f/_/@fynpo/base/1.1.10-fynlocal_h/@fynpo/base/dist/util.js":
12714
12723
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
12715
12724
 
12716
12725
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fyn",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "The package manager for fynpo, a zero setup monorepo manager",
5
5
  "main": "./bin/fyn.js",
6
6
  "homepage": "https://jchip.github.io/fynpo/",