@smapiot/piral-cloud-node 1.16.4 → 1.16.5-pre.20250718.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/lib/index.cjs.js +13 -18
- package/lib/index.esm.js +11 -17
- package/package.json +4 -4
package/lib/index.cjs.js
CHANGED
|
@@ -4417,8 +4417,7 @@ var init_fetch_blob = __esm({
|
|
|
4417
4417
|
if (typeof options !== "object" && typeof options !== "function") {
|
|
4418
4418
|
throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
4419
4419
|
}
|
|
4420
|
-
if (options === null)
|
|
4421
|
-
options = {};
|
|
4420
|
+
if (options === null) options = {};
|
|
4422
4421
|
const encoder = new TextEncoder();
|
|
4423
4422
|
for (const element of blobParts) {
|
|
4424
4423
|
let part;
|
|
@@ -4577,8 +4576,7 @@ var init_file = __esm({
|
|
|
4577
4576
|
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
|
4578
4577
|
}
|
|
4579
4578
|
super(fileBits, options);
|
|
4580
|
-
if (options === null)
|
|
4581
|
-
options = {};
|
|
4579
|
+
if (options === null) options = {};
|
|
4582
4580
|
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
|
4583
4581
|
if (!Number.isNaN(lastModified)) {
|
|
4584
4582
|
this.#lastModified = lastModified;
|
|
@@ -4635,8 +4633,7 @@ var init_esm_min = __esm({
|
|
|
4635
4633
|
FormData = class FormData2 {
|
|
4636
4634
|
#d = [];
|
|
4637
4635
|
constructor(...a) {
|
|
4638
|
-
if (a.length)
|
|
4639
|
-
throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
4636
|
+
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
4640
4637
|
}
|
|
4641
4638
|
get [t]() {
|
|
4642
4639
|
return "FormData";
|
|
@@ -4659,9 +4656,7 @@ var init_esm_min = __esm({
|
|
|
4659
4656
|
get(a) {
|
|
4660
4657
|
x("get", arguments, 1);
|
|
4661
4658
|
a += "";
|
|
4662
|
-
for (var b = this.#d, l = b.length, c = 0; c < l; c++)
|
|
4663
|
-
if (b[c][0] === a)
|
|
4664
|
-
return b[c][1];
|
|
4659
|
+
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
|
4665
4660
|
return null;
|
|
4666
4661
|
}
|
|
4667
4662
|
getAll(a, b) {
|
|
@@ -4678,8 +4673,7 @@ var init_esm_min = __esm({
|
|
|
4678
4673
|
}
|
|
4679
4674
|
forEach(a, b) {
|
|
4680
4675
|
x("forEach", arguments, 1);
|
|
4681
|
-
for (var [c, d] of this)
|
|
4682
|
-
a.call(b, d, c, this);
|
|
4676
|
+
for (var [c, d] of this) a.call(b, d, c, this);
|
|
4683
4677
|
}
|
|
4684
4678
|
set(...a) {
|
|
4685
4679
|
x("set", arguments, 2);
|
|
@@ -4695,12 +4689,10 @@ var init_esm_min = __esm({
|
|
|
4695
4689
|
yield* this.#d;
|
|
4696
4690
|
}
|
|
4697
4691
|
*keys() {
|
|
4698
|
-
for (var [a] of this)
|
|
4699
|
-
yield a;
|
|
4692
|
+
for (var [a] of this) yield a;
|
|
4700
4693
|
}
|
|
4701
4694
|
*values() {
|
|
4702
|
-
for (var [, a] of this)
|
|
4703
|
-
yield a;
|
|
4695
|
+
for (var [, a] of this) yield a;
|
|
4704
4696
|
}
|
|
4705
4697
|
};
|
|
4706
4698
|
}
|
|
@@ -4956,6 +4948,7 @@ var init_multipart_parser = __esm({
|
|
|
4956
4948
|
state = S.HEADER_FIELD;
|
|
4957
4949
|
mark("onHeaderField");
|
|
4958
4950
|
index = 0;
|
|
4951
|
+
// falls through
|
|
4959
4952
|
case S.HEADER_FIELD:
|
|
4960
4953
|
if (c === CR) {
|
|
4961
4954
|
clear("onHeaderField");
|
|
@@ -4985,6 +4978,7 @@ var init_multipart_parser = __esm({
|
|
|
4985
4978
|
}
|
|
4986
4979
|
mark("onHeaderValue");
|
|
4987
4980
|
state = S.HEADER_VALUE;
|
|
4981
|
+
// falls through
|
|
4988
4982
|
case S.HEADER_VALUE:
|
|
4989
4983
|
if (c === CR) {
|
|
4990
4984
|
dataCallback("onHeaderValue", true);
|
|
@@ -5008,6 +5002,7 @@ var init_multipart_parser = __esm({
|
|
|
5008
5002
|
case S.PART_DATA_START:
|
|
5009
5003
|
state = S.PART_DATA;
|
|
5010
5004
|
mark("onPartData");
|
|
5005
|
+
// falls through
|
|
5011
5006
|
case S.PART_DATA:
|
|
5012
5007
|
previousIndex = index;
|
|
5013
5008
|
if (index === 0) {
|
|
@@ -5093,11 +5088,11 @@ var init_multipart_parser = __esm({
|
|
|
5093
5088
|
});
|
|
5094
5089
|
|
|
5095
5090
|
// src/index.ts
|
|
5096
|
-
var
|
|
5097
|
-
__export(
|
|
5091
|
+
var index_exports = {};
|
|
5092
|
+
__export(index_exports, {
|
|
5098
5093
|
createServiceClient: () => createServiceClient
|
|
5099
5094
|
});
|
|
5100
|
-
module.exports = __toCommonJS(
|
|
5095
|
+
module.exports = __toCommonJS(index_exports);
|
|
5101
5096
|
|
|
5102
5097
|
// ../feed-client/src/fetch.ts
|
|
5103
5098
|
function fetchWithoutToken(client, url, init = {}) {
|
package/lib/index.esm.js
CHANGED
|
@@ -7,8 +7,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
8
8
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
9
|
}) : x2)(function(x2) {
|
|
10
|
-
if (typeof require !== "undefined")
|
|
11
|
-
return require.apply(this, arguments);
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
11
|
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
13
12
|
});
|
|
14
13
|
var __esm = (fn, res) => function __init() {
|
|
@@ -4423,8 +4422,7 @@ var init_fetch_blob = __esm({
|
|
|
4423
4422
|
if (typeof options !== "object" && typeof options !== "function") {
|
|
4424
4423
|
throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
4425
4424
|
}
|
|
4426
|
-
if (options === null)
|
|
4427
|
-
options = {};
|
|
4425
|
+
if (options === null) options = {};
|
|
4428
4426
|
const encoder = new TextEncoder();
|
|
4429
4427
|
for (const element of blobParts) {
|
|
4430
4428
|
let part;
|
|
@@ -4583,8 +4581,7 @@ var init_file = __esm({
|
|
|
4583
4581
|
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
|
4584
4582
|
}
|
|
4585
4583
|
super(fileBits, options);
|
|
4586
|
-
if (options === null)
|
|
4587
|
-
options = {};
|
|
4584
|
+
if (options === null) options = {};
|
|
4588
4585
|
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
|
4589
4586
|
if (!Number.isNaN(lastModified)) {
|
|
4590
4587
|
this.#lastModified = lastModified;
|
|
@@ -4641,8 +4638,7 @@ var init_esm_min = __esm({
|
|
|
4641
4638
|
FormData = class FormData2 {
|
|
4642
4639
|
#d = [];
|
|
4643
4640
|
constructor(...a) {
|
|
4644
|
-
if (a.length)
|
|
4645
|
-
throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
4641
|
+
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
4646
4642
|
}
|
|
4647
4643
|
get [t]() {
|
|
4648
4644
|
return "FormData";
|
|
@@ -4665,9 +4661,7 @@ var init_esm_min = __esm({
|
|
|
4665
4661
|
get(a) {
|
|
4666
4662
|
x("get", arguments, 1);
|
|
4667
4663
|
a += "";
|
|
4668
|
-
for (var b = this.#d, l = b.length, c = 0; c < l; c++)
|
|
4669
|
-
if (b[c][0] === a)
|
|
4670
|
-
return b[c][1];
|
|
4664
|
+
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
|
4671
4665
|
return null;
|
|
4672
4666
|
}
|
|
4673
4667
|
getAll(a, b) {
|
|
@@ -4684,8 +4678,7 @@ var init_esm_min = __esm({
|
|
|
4684
4678
|
}
|
|
4685
4679
|
forEach(a, b) {
|
|
4686
4680
|
x("forEach", arguments, 1);
|
|
4687
|
-
for (var [c, d] of this)
|
|
4688
|
-
a.call(b, d, c, this);
|
|
4681
|
+
for (var [c, d] of this) a.call(b, d, c, this);
|
|
4689
4682
|
}
|
|
4690
4683
|
set(...a) {
|
|
4691
4684
|
x("set", arguments, 2);
|
|
@@ -4701,12 +4694,10 @@ var init_esm_min = __esm({
|
|
|
4701
4694
|
yield* this.#d;
|
|
4702
4695
|
}
|
|
4703
4696
|
*keys() {
|
|
4704
|
-
for (var [a] of this)
|
|
4705
|
-
yield a;
|
|
4697
|
+
for (var [a] of this) yield a;
|
|
4706
4698
|
}
|
|
4707
4699
|
*values() {
|
|
4708
|
-
for (var [, a] of this)
|
|
4709
|
-
yield a;
|
|
4700
|
+
for (var [, a] of this) yield a;
|
|
4710
4701
|
}
|
|
4711
4702
|
};
|
|
4712
4703
|
}
|
|
@@ -4962,6 +4953,7 @@ var init_multipart_parser = __esm({
|
|
|
4962
4953
|
state = S.HEADER_FIELD;
|
|
4963
4954
|
mark("onHeaderField");
|
|
4964
4955
|
index = 0;
|
|
4956
|
+
// falls through
|
|
4965
4957
|
case S.HEADER_FIELD:
|
|
4966
4958
|
if (c === CR) {
|
|
4967
4959
|
clear("onHeaderField");
|
|
@@ -4991,6 +4983,7 @@ var init_multipart_parser = __esm({
|
|
|
4991
4983
|
}
|
|
4992
4984
|
mark("onHeaderValue");
|
|
4993
4985
|
state = S.HEADER_VALUE;
|
|
4986
|
+
// falls through
|
|
4994
4987
|
case S.HEADER_VALUE:
|
|
4995
4988
|
if (c === CR) {
|
|
4996
4989
|
dataCallback("onHeaderValue", true);
|
|
@@ -5014,6 +5007,7 @@ var init_multipart_parser = __esm({
|
|
|
5014
5007
|
case S.PART_DATA_START:
|
|
5015
5008
|
state = S.PART_DATA;
|
|
5016
5009
|
mark("onPartData");
|
|
5010
|
+
// falls through
|
|
5017
5011
|
case S.PART_DATA:
|
|
5018
5012
|
previousIndex = index;
|
|
5019
5013
|
if (index === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smapiot/piral-cloud-node",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.5-pre.20250718.1",
|
|
4
4
|
"description": "Piral Cloud: Node-usable API Client for the Piral Feed Service.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "smapiot",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"node"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@piral/feed-client": "^1.16.
|
|
56
|
-
"dets": "^0.
|
|
57
|
-
"esbuild": "^0.
|
|
55
|
+
"@piral/feed-client": "^1.16.5",
|
|
56
|
+
"dets": "^0.16",
|
|
57
|
+
"esbuild": "^0.25.4",
|
|
58
58
|
"node-fetch": "^3.3.2"
|
|
59
59
|
}
|
|
60
60
|
}
|