@bothrs/util
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "@bothrs/util", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Common helper functions", | ||
@@ -11,6 +11,7 @@ "license": "MIT", | ||
"clean": "find . -maxdepth 1 -type f \\( -name \\*.mjs -or -name \\*.js -or -name \\*.d.ts -or -name \\*.jsx \\) -delete; date", | ||
"build": "npm run clean && tsc -d && cp src/*.mjs .", | ||
"build": "npm run clean && tsc -d && cp src/mjs/*.mjs .", | ||
"prepare": "npm run fix", | ||
"prepublishOnly": "npm run build", | ||
"preversion": "npm run fix" | ||
"preversion": "npm run fix", | ||
"docs": "documentation build src/** -f md --shallow" | ||
}, | ||
@@ -22,2 +23,3 @@ "dependencies": {}, | ||
"@types/node-fetch": "2", | ||
"documentation": "^13.2.5", | ||
"node-fetch": "^2.6.1", | ||
@@ -24,0 +26,0 @@ "prettier": "2", |
@@ -0,1 +1,7 @@ | ||
## Introduction | ||
Here you can find a list of all the main utils being exported by this package. | ||
More in depth, generated, documentation can be found [here](docs.md) | ||
The following utils can be imported from `@bothrs/util/<utilname>` | ||
## util | ||
@@ -25,2 +31,14 @@ | ||
Note: when using this on a node server, fetch needs to be polyfilled | ||
node-fetch suggests doing this like: | ||
```javascript | ||
import fetch from 'node-fetch' | ||
if (!globalThis.fetch) { | ||
//@ts-ignore | ||
globalThis.fetch = fetch | ||
} | ||
``` | ||
#### fs.mjs + ts | ||
@@ -54,2 +72,5 @@ | ||
The mjs files contain code that could benefit from | ||
some triage;either refactored into `ts` files or removed. | ||
#### airtable-translation.mjs | ||
@@ -203,3 +224,2 @@ | ||
#### voxeet.mjs | ||
@@ -206,0 +226,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65503
229
9