Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "mini-owm", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Mini ES wrapper for OpenWeatherMap api", | ||
"main": "dist/MiniOwm.js", | ||
"scripts": { | ||
"clean": "shx rm -rf dist", | ||
"prebuild": "npm run clean", | ||
"build": "cross-env NODE_ENV=production webpack --config ./webpack.config.js", | ||
"build:dev": "webpack --config ./webpack.config.js --progress --colors --watch", | ||
"prepublish": "npm run build", | ||
"serve": "http-server ./dist -o", | ||
"start": "npm run clean && npm-run-all --parallel build:dev serve", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"author": "Dean Verleger", | ||
"license": "ISC", | ||
"homepage": "https://github.com/deanbot/mini-owm#readme", | ||
"bugs": { | ||
"url": "https://github.com/deanbot/mini-owm/issues" | ||
}, | ||
@@ -27,8 +22,19 @@ "repository": { | ||
], | ||
"author": "Dean Verleger", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/deanbot/mini-owm/issues" | ||
"main": "lib/index.js", | ||
"module": "libm/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"clean": "shx rm -rf lib libm", | ||
"prebuild": "npm run clean", | ||
"build": "npm run build:umd && npm run build:esnext && npm run build:ts-defs", | ||
"build:umd": "cross-env NODE_ENV=production webpack --config ./webpack.config.js", | ||
"build:esnext": "tsc -p tsconfig.esnext.json", | ||
"build:ts-defs": "tsc --declaration --emitDeclarationOnly", | ||
"build:dev": "webpack --config ./webpack.config.js", | ||
"build:dev-watch": "webpack --config ./webpack.config.js --progress --colors --watch", | ||
"prepublish": "npm run build", | ||
"serve": "http-server ./lib -o", | ||
"start": "npm run clean && npm run build:dev && npm-run-all --parallel build:dev-watch serve", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"homepage": "https://github.com/deanbot/mini-owm#readme", | ||
"devDependencies": { | ||
@@ -35,0 +41,0 @@ "@babel/core": "^7.9.6", |
# mini-owm | ||
Mini-OpenWeatherMap is a light-weight wrapper around Open Weather Map's [One Call Api](https://openweathermap.org/api/one-call-api). | ||
Mini-OpenWeatherMap is a wrapper around Open Weather Map's [One Call Api](https://openweathermap.org/api/one-call-api). | ||
@@ -10,3 +10,3 @@ MiniOwm is simple but versatile. Use it in any of the following ways or mix and match. | ||
```js | ||
const OwmApi = import('mini-owm'); | ||
import MiniOwm from 'mini-owm'; | ||
@@ -29,3 +29,3 @@ // constructor parameters are all optional | ||
```js | ||
const OwmApi = import('mini-owm'); | ||
import MiniOwm from 'mini-owm'; | ||
const api = new OwmAPi(); | ||
@@ -46,3 +46,3 @@ api | ||
```js | ||
const OwmApi = import('mini-owm'); | ||
import MiniOwm from 'mini-owm'; | ||
new OwmAPi() | ||
@@ -64,3 +64,7 @@ .get({ | ||
- Note: MiniOwm is written in TypeScript | ||
- Notes: and compiled to UMD via and ESNEXT | ||
- MiniOwm is written in TypeScript | ||
- Compiled to UMD via WebPack | ||
- Compiled to ESNext via TSC (will use WebPack when supported) | ||
- Typings generated by TSC | ||
- Setup: `pnpm install` | ||
@@ -67,0 +71,0 @@ - Configure: create `.env` with contents: `API_KEY=<your api key here>` |
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
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
6
20
98
78
18610