@datasketch/taco
Advanced tools
+21
| MIT License | ||
| Copyright (c) 2023 Datasketch | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
+1
-1
@@ -1,1 +0,1 @@ | ||
| function e(e){return e.map((e=>({title:e.label,field:e.id})))}export{e as getColumnDefinitions}; | ||
| function r(r){if(!Array.isArray(r))throw new Error("Dictionary must be an array");return r.map((r=>({title:r.label,field:r.id})))}export{r as getColumnDefinitions}; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| var taco=function(t){"use strict";return t.getColumnDefinitions=function(t){return t.map((t=>({title:t.label,field:t.id})))},t}({}); | ||
| var taco=function(r){"use strict";return r.getColumnDefinitions=function(r){if(!Array.isArray(r))throw new Error("Dictionary must be an array");return r.map((r=>({title:r.label,field:r.id})))},r}({}); |
+4
-1
| { | ||
| "name": "@datasketch/taco", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "", | ||
| "main": "dist/taco.esm.js", | ||
| "type": "module", | ||
| "files": [ | ||
| "dist/taco.js" | ||
| ], | ||
| "scripts": { | ||
@@ -8,0 +11,0 @@ "build": "del-cli dist && rollup -c" |
+7
-1
| ## taco | ||
| Tabulator (auto) configuration | ||
| Tabulator (auto) configuration | ||
| ### Usage | ||
| ```html | ||
| <script src="https://unpkg.com/@datasketch/taco@0.1.0/dist/taco.js"></script> | ||
| ``` |
| { | ||
| "env": { | ||
| "browser": true, | ||
| "es2021": true | ||
| }, | ||
| "extends": [ | ||
| "standard" | ||
| ], | ||
| "parserOptions": { | ||
| "ecmaVersion": "latest", | ||
| "sourceType": "module" | ||
| }, | ||
| "rules": { | ||
| } | ||
| } |
| import { defineConfig } from 'rollup' | ||
| import terser from '@rollup/plugin-terser' | ||
| export default defineConfig({ | ||
| input: 'src/index.js', | ||
| output: [ | ||
| { | ||
| file: 'dist/taco.esm.js', | ||
| format: 'es' | ||
| }, | ||
| { | ||
| file: 'dist/taco.js', | ||
| format: 'iife', | ||
| name: 'taco' | ||
| } | ||
| ], | ||
| plugins: [terser()] | ||
| }) |
| function getColumnDefinitions (dictionary) { | ||
| return dictionary.map(field => ({ | ||
| title: field.label, | ||
| field: field.id | ||
| })) | ||
| } | ||
| export { getColumnDefinitions } |
| export * from './columns.js' |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Mixed license
LicensePackage contains multiple licenses.
Found 1 instance in 1 package
2183
37.3%9
200%5
-37.5%1
Infinity%2
-95.24%1
Infinity%