@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 +34 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +34 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15420,7 +15420,7 @@ var useFetchUnsplashImages = function useFetchUnsplashImages(_ref2) {
|
|
|
15420
15420
|
|
|
15421
15421
|
function cov_1hbj0u25oo() {
|
|
15422
15422
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/utils.js";
|
|
15423
|
-
var hash = "
|
|
15423
|
+
var hash = "fcaa7907ec1589175eea68f7f52ab72a6c89d23c";
|
|
15424
15424
|
var global = new Function("return this")();
|
|
15425
15425
|
var gcv = "__coverage__";
|
|
15426
15426
|
var coverageData = {
|
|
@@ -15532,27 +15532,37 @@ function cov_1hbj0u25oo() {
|
|
|
15532
15532
|
column: 34
|
|
15533
15533
|
},
|
|
15534
15534
|
end: {
|
|
15535
|
-
line:
|
|
15535
|
+
line: 57,
|
|
15536
15536
|
column: 1
|
|
15537
15537
|
}
|
|
15538
15538
|
},
|
|
15539
15539
|
"11": {
|
|
15540
15540
|
start: {
|
|
15541
15541
|
line: 41,
|
|
15542
|
-
column:
|
|
15542
|
+
column: 33
|
|
15543
15543
|
},
|
|
15544
15544
|
end: {
|
|
15545
15545
|
line: 41,
|
|
15546
|
-
column:
|
|
15546
|
+
column: 102
|
|
15547
15547
|
}
|
|
15548
15548
|
},
|
|
15549
15549
|
"12": {
|
|
15550
15550
|
start: {
|
|
15551
|
-
line:
|
|
15551
|
+
line: 42,
|
|
15552
|
+
column: 19
|
|
15553
|
+
},
|
|
15554
|
+
end: {
|
|
15555
|
+
line: 46,
|
|
15556
|
+
column: 3
|
|
15557
|
+
}
|
|
15558
|
+
},
|
|
15559
|
+
"13": {
|
|
15560
|
+
start: {
|
|
15561
|
+
line: 48,
|
|
15552
15562
|
column: 2
|
|
15553
15563
|
},
|
|
15554
15564
|
end: {
|
|
15555
|
-
line:
|
|
15565
|
+
line: 56,
|
|
15556
15566
|
column: 5
|
|
15557
15567
|
}
|
|
15558
15568
|
}
|
|
@@ -15648,7 +15658,7 @@ function cov_1hbj0u25oo() {
|
|
|
15648
15658
|
column: 48
|
|
15649
15659
|
},
|
|
15650
15660
|
end: {
|
|
15651
|
-
line:
|
|
15661
|
+
line: 57,
|
|
15652
15662
|
column: 1
|
|
15653
15663
|
}
|
|
15654
15664
|
},
|
|
@@ -15692,35 +15702,35 @@ function cov_1hbj0u25oo() {
|
|
|
15692
15702
|
"1": {
|
|
15693
15703
|
loc: {
|
|
15694
15704
|
start: {
|
|
15695
|
-
line:
|
|
15705
|
+
line: 51,
|
|
15696
15706
|
column: 12
|
|
15697
15707
|
},
|
|
15698
15708
|
end: {
|
|
15699
|
-
line:
|
|
15709
|
+
line: 51,
|
|
15700
15710
|
column: 67
|
|
15701
15711
|
}
|
|
15702
15712
|
},
|
|
15703
15713
|
type: "binary-expr",
|
|
15704
15714
|
locations: [{
|
|
15705
15715
|
start: {
|
|
15706
|
-
line:
|
|
15716
|
+
line: 51,
|
|
15707
15717
|
column: 12
|
|
15708
15718
|
},
|
|
15709
15719
|
end: {
|
|
15710
|
-
line:
|
|
15720
|
+
line: 51,
|
|
15711
15721
|
column: 39
|
|
15712
15722
|
}
|
|
15713
15723
|
}, {
|
|
15714
15724
|
start: {
|
|
15715
|
-
line:
|
|
15725
|
+
line: 51,
|
|
15716
15726
|
column: 43
|
|
15717
15727
|
},
|
|
15718
15728
|
end: {
|
|
15719
|
-
line:
|
|
15729
|
+
line: 51,
|
|
15720
15730
|
column: 67
|
|
15721
15731
|
}
|
|
15722
15732
|
}],
|
|
15723
|
-
line:
|
|
15733
|
+
line: 51
|
|
15724
15734
|
}
|
|
15725
15735
|
},
|
|
15726
15736
|
s: {
|
|
@@ -15736,7 +15746,8 @@ function cov_1hbj0u25oo() {
|
|
|
15736
15746
|
"9": 0,
|
|
15737
15747
|
"10": 0,
|
|
15738
15748
|
"11": 0,
|
|
15739
|
-
"12": 0
|
|
15749
|
+
"12": 0,
|
|
15750
|
+
"13": 0
|
|
15740
15751
|
},
|
|
15741
15752
|
f: {
|
|
15742
15753
|
"0": 0,
|
|
@@ -15749,7 +15760,7 @@ function cov_1hbj0u25oo() {
|
|
|
15749
15760
|
"1": [0, 0]
|
|
15750
15761
|
},
|
|
15751
15762
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
15752
|
-
hash: "
|
|
15763
|
+
hash: "fcaa7907ec1589175eea68f7f52ab72a6c89d23c"
|
|
15753
15764
|
};
|
|
15754
15765
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
15755
15766
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -15808,13 +15819,16 @@ var uploadWithDirectUpload = function uploadWithDirectUpload(file) {
|
|
|
15808
15819
|
cov_1hbj0u25oo().s[10]++;
|
|
15809
15820
|
var uploadWithImageKit = /*#__PURE__*/function () {
|
|
15810
15821
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
|
|
15811
|
-
var imagekit;
|
|
15822
|
+
var authenticationEndpoint, imagekit;
|
|
15812
15823
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
15813
15824
|
while (1) switch (_context.prev = _context.next) {
|
|
15814
15825
|
case 0:
|
|
15815
15826
|
cov_1hbj0u25oo().f[3]++;
|
|
15816
|
-
|
|
15817
|
-
cov_1hbj0u25oo().s[12]
|
|
15827
|
+
authenticationEndpoint = (cov_1hbj0u25oo().s[11]++, "".concat(window.location.origin, "/neeto_image_uploader_engine/imagekit/auth"));
|
|
15828
|
+
imagekit = (cov_1hbj0u25oo().s[12]++, new ImageKit(mergeRight(globalProps.imageKit, {
|
|
15829
|
+
authenticationEndpoint: authenticationEndpoint
|
|
15830
|
+
})));
|
|
15831
|
+
cov_1hbj0u25oo().s[13]++;
|
|
15818
15832
|
return _context.abrupt("return", imagekit.upload({
|
|
15819
15833
|
file: file,
|
|
15820
15834
|
fileName: UNSPLASH_DEFAULT_NAME,
|
|
@@ -15824,7 +15838,7 @@ var uploadWithImageKit = /*#__PURE__*/function () {
|
|
|
15824
15838
|
appName: globalProps.appName
|
|
15825
15839
|
}
|
|
15826
15840
|
}));
|
|
15827
|
-
case
|
|
15841
|
+
case 5:
|
|
15828
15842
|
case "end":
|
|
15829
15843
|
return _context.stop();
|
|
15830
15844
|
}
|