Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-loc

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-loc - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

dist/index.d.ts

24

package.json
{
"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!
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc