@lowdefy/plugin-csv 4.0.0-rc.8 → 4.0.0
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/actions/DownloadCsv.js +3 -3
- package/dist/actions.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +12 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ async function DownloadCsv({ params
|
|
16
|
-
const { filename
|
|
15
|
+
*/ async function DownloadCsv({ params }) {
|
|
16
|
+
const { filename, data, fields: flds } = params;
|
|
17
17
|
if (!Array.isArray(data) || typeof data[0] !== 'object') {
|
|
18
18
|
throw new Error('csvMake data takes an array of objects');
|
|
19
19
|
}
|
package/dist/actions.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/plugin-csv",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -35,21 +35,19 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist/*"
|
|
37
37
|
],
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
40
|
-
"clean": "rm -rf dist",
|
|
41
|
-
"prepublishOnly": "pnpm build"
|
|
42
|
-
},
|
|
43
38
|
"devDependencies": {
|
|
44
|
-
"@jest/globals": "28.1.
|
|
45
|
-
"@swc/cli": "0.1.
|
|
46
|
-
"@swc/core": "1.3.
|
|
47
|
-
"@swc/jest": "0.2.
|
|
48
|
-
"jest": "28.1.
|
|
49
|
-
"jest-environment-jsdom": "28.1.
|
|
39
|
+
"@jest/globals": "28.1.3",
|
|
40
|
+
"@swc/cli": "0.1.63",
|
|
41
|
+
"@swc/core": "1.3.99",
|
|
42
|
+
"@swc/jest": "0.2.29",
|
|
43
|
+
"jest": "28.1.3",
|
|
44
|
+
"jest-environment-jsdom": "28.1.3"
|
|
50
45
|
},
|
|
51
46
|
"publishConfig": {
|
|
52
47
|
"access": "public"
|
|
53
48
|
},
|
|
54
|
-
"
|
|
55
|
-
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
51
|
+
"clean": "rm -rf dist"
|
|
52
|
+
}
|
|
53
|
+
}
|