Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "get-loc", | ||
"description": "Gets the current location for an html document with polyfill and webworker support.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"author": "Dylan Piercey <pierceydylan@gmail.com>", | ||
"bugs": "https://github.com/DylanPiercey/get-loc/issues", | ||
"dependencies": { | ||
"window-var": "^1.0.11" | ||
}, | ||
"devDependencies": { | ||
"snazzy": "^3.0.0", | ||
"standard": "^6.0.8" | ||
"tslint": "^5.7.0", | ||
"typescript": "^2.5.3" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"homepage": "https://github.com/DylanPiercey/get-loc", | ||
"keywords": [ | ||
"isomorphic", | ||
"location", | ||
"isomorphic", | ||
"universal" | ||
], | ||
"license": "MIT", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"repository": { | ||
@@ -24,8 +30,6 @@ "type": "git", | ||
"scripts": { | ||
"lint": "standard --verbose | snazzy", | ||
"test": "npm run lint" | ||
}, | ||
"dependencies": { | ||
"global": "^4.3.1" | ||
"build": "npm run lint && tsc", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"prepublish": "npm run build" | ||
} | ||
} |
@@ -9,15 +9,15 @@ <h1 align="center"> | ||
<a href="https://nodejs.org/api/documentation.html#documentation_stability_index"> | ||
<img src="https://img.shields.io/badge/stability-stable-brightgreen.svg?style=flat-square" alt="API stability"/> | ||
<img src="https://img.shields.io/badge/stability-stable-brightgreen.svg" alt="API stability"/> | ||
</a> | ||
<!-- Standard --> | ||
<a href="https://github.com/feross/standard"> | ||
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square" alt="Standard"/> | ||
<!-- TypeScript --> | ||
<a href="http://typescriptlang.org"> | ||
<img src="https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg" alt="TypeScript"/> | ||
</a> | ||
<!-- NPM version --> | ||
<a href="https://npmjs.org/package/get-loc"> | ||
<img src="https://img.shields.io/npm/v/get-loc.svg?style=flat-square" alt="NPM version"/> | ||
<img src="https://img.shields.io/npm/v/get-loc.svg" alt="NPM version"/> | ||
</a> | ||
<!-- Downloads --> | ||
<a href="https://npmjs.org/package/get-loc"> | ||
<img src="https://img.shields.io/npm/dm/get-loc.svg?style=flat-square" alt="Downloads"/> | ||
<img src="https://img.shields.io/npm/dm/get-loc.svg" alt="Downloads"/> | ||
</a> | ||
@@ -37,5 +37,5 @@ </h1> | ||
```javascript | ||
import getLocation from 'get-loc' | ||
const location = getLocation() | ||
import { get } from 'get-loc' | ||
const location = get() | ||
location.href === 'http://github.com/DylanPiercey/get-location' | ||
@@ -46,4 +46,4 @@ ``` | ||
* Use `npm test` to run tests. | ||
* Use `npm test` to build and run tests. | ||
Please feel free to create a PR! |
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
3031
5
21
0
+ Addedwindow-var@^1.0.11
+ Addedwindow-var@1.0.11(transitive)
- Removedglobal@^4.3.1
- Removeddom-walk@0.1.2(transitive)
- Removedglobal@4.4.0(transitive)
- Removedmin-document@2.19.0(transitive)
- Removedprocess@0.11.10(transitive)