popcorn-ibge
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -1,3 +0,2 @@ | ||
The MIT License (MIT) | ||
Copyright (c) 2020 - Dênner Rondinely | ||
The MIT License (MIT) Copyright (c) 2020 - Dênner Rondinely | ||
@@ -8,2 +7,2 @@ 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 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. | ||
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. |
{ | ||
"name": "popcorn-ibge", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"main": "build/index.js", | ||
"module": "build/index.es.js", | ||
"jsnext:main": "build/index.es.js", | ||
"scripts": { | ||
"clear": "rimraf lib", | ||
"build": "npm run clear && ./node_modules/.bin/babel --out-dir lib src", | ||
"build:watch": "npm run build -- --watch", | ||
"build:umd": "./node_modules/.bin/webpack --output-filename popcorn-ibge.umd.js", | ||
"build:umd:min": "./node_modules/.bin/webpack --output-filename popcorn-ibge.umd.min.js -p", | ||
"build:all": "npm run build && npm run build:umd && npm run build:umd:min", | ||
"lint": "./node_modules/.bin/eslint src/*.js", | ||
"prepush": "npm run lint", | ||
"test": "./node_modules/.bin/mocha tests/**/*.spec.js --require babel-register", | ||
"test:tdd": "./node_modules/.bin/mocha tests/**/*.spec.js --require babel-register --watch", | ||
"test:coverage": "nyc npm test", | ||
"coveralls": "npm run test:coverage && nyc report --reporter=text-lcov | coveralls", | ||
"prepublish": "npm run build:all" | ||
"build": "rollup -c", | ||
"lint": "standard", | ||
"lint:fix": "lint --fix", | ||
"format": "prettier-standard --format", | ||
"test": "jest --coverage" | ||
}, | ||
"files": [ | ||
"dist", | ||
"lib" | ||
"build" | ||
], | ||
"nyc": { | ||
"reporter": [ | ||
"text", | ||
"html" | ||
], | ||
"exclude": [ | ||
"tests/**" | ||
] | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.3", | ||
"jest": "^26.1.0", | ||
"rollup": "^2.18.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.2", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"standard": "^14.3.4", | ||
"standard-prettier": "^1.0.1", | ||
"ts-jest": "^26.1.1", | ||
"typescript": "^3.9.5" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dennerrondinely/popcorn-ibge.git" | ||
"jest": { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node" | ||
}, | ||
"keywords": [ | ||
"js", | ||
"tdd", | ||
"library" | ||
], | ||
"author": "Willian Justen <denner.rondinely@gmail.com> (https://dennerrondinely.com.br/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dennerrondinely/popcorn-ibge/issues" | ||
}, | ||
"homepage": "https://github.com/dennerrondinely/popcorn-ibge#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.24.1", | ||
"babel-loader": "^7.0.0", | ||
"babel-preset-env": "^1.3.2", | ||
"babel-register": "^6.24.0", | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.13.0", | ||
"eslint": "^4.18.2", | ||
"eslint-config-airbnb": "^12.0.0", | ||
"eslint-plugin-import": "^2.0.1", | ||
"eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.4.1", | ||
"husky": "^0.11.9", | ||
"mocha": "^3.2.0", | ||
"node-fetch": "^1.6.3", | ||
"nyc": "^10.2.0", | ||
"rimraf": "^2.6.1", | ||
"sinon": "^6.1.3", | ||
"sinon-chai": "^3.2.0", | ||
"webpack": "^2.4.1" | ||
}, | ||
"dependencies": { | ||
"babel-polyfill": "^6.26.0" | ||
"standard": { | ||
"ignore": [ | ||
"node_modules/", | ||
"build/" | ||
] | ||
} | ||
} | ||
} |
# Popcorn IBGE | ||
[![Build Status](https://travis-ci.com/dennerrondinely/popcorn-ibge.svg?branch=master)](https://travis-ci.com/dennerrondinely/popcorn-ibge) | ||
[![Coverage Status](https://coveralls.io/repos/github/dennerrondinely/popcorn-ibge/badge.svg?branch=master)](https://coveralls.io/github/dennerrondinely/popcorn-ibge?branch=master) | ||
![npm](https://img.shields.io/npm/dy/popcorn-ibge) | ||
@@ -21,5 +20,5 @@ Popcorn-ibge is a javascript library created to facilitate the use of the IBGE locale api. | ||
// to import a specific method | ||
import PopcornIBGE from 'popcorn-ibge'; | ||
import { ufs } from 'popcorn-ibge'; | ||
const ibge = new PopcornIBGE(); | ||
const ibge = ufs(); | ||
@@ -31,3 +30,3 @@ ``` | ||
### ibge.ufs() | ||
### ufs() | ||
@@ -42,3 +41,3 @@ > Rewind an image by calling this method. | ||
async function getData() { | ||
const ufs = await ibge.ufs(); | ||
const ufs = await ufs(); | ||
console.log(ufs); | ||
@@ -48,3 +47,3 @@ }; | ||
### ibge.municipios() | ||
### municipios() | ||
@@ -59,3 +58,3 @@ > Advance an image by calling this method. | ||
async function getData() { | ||
const municipios = await ibge.municipios('mg'); | ||
const municipios = await municipios('mg'); | ||
console.log(municipios); | ||
@@ -62,0 +61,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
0
11
13
45203
1
197
2
2
75
1
- Removedbabel-polyfill@^6.26.0
- Removedbabel-polyfill@6.26.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.10.50.11.1(transitive)