@bigbinary/neeto-image-uploader-frontend 1.4.0 → 1.4.1

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.js CHANGED
@@ -15430,7 +15430,7 @@ var useFetchUnsplashImages = function useFetchUnsplashImages(_ref2) {
15430
15430
 
15431
15431
  function cov_1hbj0u25oo() {
15432
15432
  var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/utils.js";
15433
- var hash = "870cb6de5c05330de38467ffa73657cf7d079c56";
15433
+ var hash = "fcaa7907ec1589175eea68f7f52ab72a6c89d23c";
15434
15434
  var global = new Function("return this")();
15435
15435
  var gcv = "__coverage__";
15436
15436
  var coverageData = {
@@ -15542,27 +15542,37 @@ function cov_1hbj0u25oo() {
15542
15542
  column: 34
15543
15543
  },
15544
15544
  end: {
15545
- line: 52,
15545
+ line: 57,
15546
15546
  column: 1
15547
15547
  }
15548
15548
  },
15549
15549
  "11": {
15550
15550
  start: {
15551
15551
  line: 41,
15552
- column: 19
15552
+ column: 33
15553
15553
  },
15554
15554
  end: {
15555
15555
  line: 41,
15556
- column: 53
15556
+ column: 102
15557
15557
  }
15558
15558
  },
15559
15559
  "12": {
15560
15560
  start: {
15561
- line: 43,
15561
+ line: 42,
15562
+ column: 19
15563
+ },
15564
+ end: {
15565
+ line: 46,
15566
+ column: 3
15567
+ }
15568
+ },
15569
+ "13": {
15570
+ start: {
15571
+ line: 48,
15562
15572
  column: 2
15563
15573
  },
15564
15574
  end: {
15565
- line: 51,
15575
+ line: 56,
15566
15576
  column: 5
15567
15577
  }
15568
15578
  }
@@ -15658,7 +15668,7 @@ function cov_1hbj0u25oo() {
15658
15668
  column: 48
15659
15669
  },
15660
15670
  end: {
15661
- line: 52,
15671
+ line: 57,
15662
15672
  column: 1
15663
15673
  }
15664
15674
  },
@@ -15702,35 +15712,35 @@ function cov_1hbj0u25oo() {
15702
15712
  "1": {
15703
15713
  loc: {
15704
15714
  start: {
15705
- line: 46,
15715
+ line: 51,
15706
15716
  column: 12
15707
15717
  },
15708
15718
  end: {
15709
- line: 46,
15719
+ line: 51,
15710
15720
  column: 67
15711
15721
  }
15712
15722
  },
15713
15723
  type: "binary-expr",
15714
15724
  locations: [{
15715
15725
  start: {
15716
- line: 46,
15726
+ line: 51,
15717
15727
  column: 12
15718
15728
  },
15719
15729
  end: {
15720
- line: 46,
15730
+ line: 51,
15721
15731
  column: 39
15722
15732
  }
15723
15733
  }, {
15724
15734
  start: {
15725
- line: 46,
15735
+ line: 51,
15726
15736
  column: 43
15727
15737
  },
15728
15738
  end: {
15729
- line: 46,
15739
+ line: 51,
15730
15740
  column: 67
15731
15741
  }
15732
15742
  }],
15733
- line: 46
15743
+ line: 51
15734
15744
  }
15735
15745
  },
15736
15746
  s: {
@@ -15746,7 +15756,8 @@ function cov_1hbj0u25oo() {
15746
15756
  "9": 0,
15747
15757
  "10": 0,
15748
15758
  "11": 0,
15749
- "12": 0
15759
+ "12": 0,
15760
+ "13": 0
15750
15761
  },
15751
15762
  f: {
15752
15763
  "0": 0,
@@ -15759,7 +15770,7 @@ function cov_1hbj0u25oo() {
15759
15770
  "1": [0, 0]
15760
15771
  },
15761
15772
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
15762
- hash: "870cb6de5c05330de38467ffa73657cf7d079c56"
15773
+ hash: "fcaa7907ec1589175eea68f7f52ab72a6c89d23c"
15763
15774
  };
15764
15775
  var coverage = global[gcv] || (global[gcv] = {});
15765
15776
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -15818,13 +15829,16 @@ var uploadWithDirectUpload = function uploadWithDirectUpload(file) {
15818
15829
  cov_1hbj0u25oo().s[10]++;
15819
15830
  var uploadWithImageKit = /*#__PURE__*/function () {
15820
15831
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
15821
- var imagekit;
15832
+ var authenticationEndpoint, imagekit;
15822
15833
  return _regeneratorRuntime.wrap(function _callee$(_context) {
15823
15834
  while (1) switch (_context.prev = _context.next) {
15824
15835
  case 0:
15825
15836
  cov_1hbj0u25oo().f[3]++;
15826
- imagekit = (cov_1hbj0u25oo().s[11]++, new ImageKit(initializers.globalProps.imageKit));
15827
- cov_1hbj0u25oo().s[12]++;
15837
+ authenticationEndpoint = (cov_1hbj0u25oo().s[11]++, "".concat(window.location.origin, "/neeto_image_uploader_engine/imagekit/auth"));
15838
+ imagekit = (cov_1hbj0u25oo().s[12]++, new ImageKit(ramda.mergeRight(initializers.globalProps.imageKit, {
15839
+ authenticationEndpoint: authenticationEndpoint
15840
+ })));
15841
+ cov_1hbj0u25oo().s[13]++;
15828
15842
  return _context.abrupt("return", imagekit.upload({
15829
15843
  file: file,
15830
15844
  fileName: UNSPLASH_DEFAULT_NAME,
@@ -15834,7 +15848,7 @@ var uploadWithImageKit = /*#__PURE__*/function () {
15834
15848
  appName: initializers.globalProps.appName
15835
15849
  }
15836
15850
  }));
15837
- case 4:
15851
+ case 5:
15838
15852
  case "end":
15839
15853
  return _context.stop();
15840
15854
  }