@columnus/api-cli 0.1.51 → 0.1.54
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/cli.js +14 -67
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
12
12
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
13
|
});
|
|
14
14
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
-
|
|
15
|
+
try {
|
|
16
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw mod = 0, e;
|
|
19
|
+
}
|
|
16
20
|
};
|
|
17
21
|
var __export = (target, all) => {
|
|
18
22
|
for (var name in all)
|
|
@@ -88,66 +92,6 @@ var require_papaparse = __commonJS({
|
|
|
88
92
|
if (typeof PAPA_BROWSER_CONTEXT === "undefined") {
|
|
89
93
|
Papa2.DuplexStreamStreamer = DuplexStreamStreamer;
|
|
90
94
|
}
|
|
91
|
-
if (global.jQuery) {
|
|
92
|
-
var $ = global.jQuery;
|
|
93
|
-
$.fn.parse = function(options) {
|
|
94
|
-
var config = options.config || {};
|
|
95
|
-
var queue = [];
|
|
96
|
-
this.each(function(idx) {
|
|
97
|
-
var supported = $(this).prop("tagName").toUpperCase() === "INPUT" && $(this).attr("type").toLowerCase() === "file" && global.FileReader;
|
|
98
|
-
if (!supported || !this.files || this.files.length === 0)
|
|
99
|
-
return true;
|
|
100
|
-
for (var i = 0; i < this.files.length; i++) {
|
|
101
|
-
queue.push({
|
|
102
|
-
file: this.files[i],
|
|
103
|
-
inputElem: this,
|
|
104
|
-
instanceConfig: $.extend({}, config)
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
parseNextFile();
|
|
109
|
-
return this;
|
|
110
|
-
function parseNextFile() {
|
|
111
|
-
if (queue.length === 0) {
|
|
112
|
-
if (isFunction(options.complete))
|
|
113
|
-
options.complete();
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
var f = queue[0];
|
|
117
|
-
if (isFunction(options.before)) {
|
|
118
|
-
var returned = options.before(f.file, f.inputElem);
|
|
119
|
-
if (typeof returned === "object") {
|
|
120
|
-
if (returned.action === "abort") {
|
|
121
|
-
error("AbortError", f.file, f.inputElem, returned.reason);
|
|
122
|
-
return;
|
|
123
|
-
} else if (returned.action === "skip") {
|
|
124
|
-
fileComplete();
|
|
125
|
-
return;
|
|
126
|
-
} else if (typeof returned.config === "object")
|
|
127
|
-
f.instanceConfig = $.extend(f.instanceConfig, returned.config);
|
|
128
|
-
} else if (returned === "skip") {
|
|
129
|
-
fileComplete();
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
var userCompleteFunc = f.instanceConfig.complete;
|
|
134
|
-
f.instanceConfig.complete = function(results) {
|
|
135
|
-
if (isFunction(userCompleteFunc))
|
|
136
|
-
userCompleteFunc(results, f.file, f.inputElem);
|
|
137
|
-
fileComplete();
|
|
138
|
-
};
|
|
139
|
-
Papa2.parse(f.file, f.instanceConfig);
|
|
140
|
-
}
|
|
141
|
-
function error(name, file, elem, reason) {
|
|
142
|
-
if (isFunction(options.error))
|
|
143
|
-
options.error({ name }, file, elem, reason);
|
|
144
|
-
}
|
|
145
|
-
function fileComplete() {
|
|
146
|
-
queue.splice(0, 1);
|
|
147
|
-
parseNextFile();
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
95
|
if (IS_PAPA_WORKER) {
|
|
152
96
|
global.onmessage = workerThreadReceivedMessage;
|
|
153
97
|
}
|
|
@@ -315,8 +259,11 @@ var require_papaparse = __commonJS({
|
|
|
315
259
|
function safe(str, col) {
|
|
316
260
|
if (typeof str === "undefined" || str === null)
|
|
317
261
|
return "";
|
|
318
|
-
if (str.constructor === Date)
|
|
319
|
-
|
|
262
|
+
if (str.constructor === Date) {
|
|
263
|
+
if (isNaN(str.getTime()))
|
|
264
|
+
return "";
|
|
265
|
+
return str.toISOString();
|
|
266
|
+
}
|
|
320
267
|
var needsQuotes = false;
|
|
321
268
|
if (_escapeFormulae && typeof str === "string" && _escapeFormulae.test(str)) {
|
|
322
269
|
str = "'" + str;
|
|
@@ -954,7 +901,7 @@ var require_papaparse = __commonJS({
|
|
|
954
901
|
}
|
|
955
902
|
if (preview.data.length > 0)
|
|
956
903
|
avgFieldCount /= preview.data.length - emptyLinesCount;
|
|
957
|
-
if ((typeof bestDelta === "undefined" || delta
|
|
904
|
+
if (avgFieldCount > 1.99 && (typeof bestDelta === "undefined" || delta < bestDelta || delta === bestDelta && avgFieldCount > maxFieldCount)) {
|
|
958
905
|
bestDelta = delta;
|
|
959
906
|
bestDelim = delim;
|
|
960
907
|
maxFieldCount = avgFieldCount;
|
|
@@ -1784,7 +1731,7 @@ var require_react_production = __commonJS({
|
|
|
1784
1731
|
exports.useTransition = function() {
|
|
1785
1732
|
return ReactSharedInternals.H.useTransition();
|
|
1786
1733
|
};
|
|
1787
|
-
exports.version = "19.2.
|
|
1734
|
+
exports.version = "19.2.8";
|
|
1788
1735
|
}
|
|
1789
1736
|
});
|
|
1790
1737
|
|
|
@@ -2754,7 +2701,7 @@ var require_react_development = __commonJS({
|
|
|
2754
2701
|
exports.useTransition = function() {
|
|
2755
2702
|
return resolveDispatcher().useTransition();
|
|
2756
2703
|
};
|
|
2757
|
-
exports.version = "19.2.
|
|
2704
|
+
exports.version = "19.2.8";
|
|
2758
2705
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2759
2706
|
})();
|
|
2760
2707
|
}
|
|
@@ -8862,7 +8809,7 @@ main().catch((err) => {
|
|
|
8862
8809
|
papaparse/papaparse.js:
|
|
8863
8810
|
(* @license
|
|
8864
8811
|
Papa Parse
|
|
8865
|
-
v5.
|
|
8812
|
+
v5.6.0
|
|
8866
8813
|
https://github.com/mholt/PapaParse
|
|
8867
8814
|
License: MIT
|
|
8868
8815
|
*)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@columnus/api-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "columnus-api pull and dev — live-sync read API codegen for Columnus consumer apps",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ws": "^8.
|
|
24
|
+
"ws": "^8.21.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"convex": "^1.42.1"
|