@jedmao/location
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -37,8 +37,2 @@ { | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-object-literal-type-assertion": [ | ||
"error", | ||
{ | ||
"allowAsParameter": true | ||
} | ||
], | ||
"@typescript-eslint/no-this-alias": [ | ||
@@ -45,0 +39,0 @@ "error", |
{ | ||
"recommendations": [ | ||
"davidanson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
@@ -4,0 +5,0 @@ "editorconfig.editorconfig", |
@@ -10,3 +10,4 @@ { | ||
"**/coverge": true | ||
} | ||
}, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
{ | ||
"name": "@jedmao/location", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A Location class that implements the Location interface of the Web API.", | ||
@@ -9,6 +9,5 @@ "main": "dist/Location.js", | ||
"clean": "rimraf coverage dist *.log* location-*", | ||
"codecov": "codecov -f coverage/lcov.info", | ||
"lint": "eslint src/**/*.ts", | ||
"prebuild": "rimraf dist", | ||
"build": "tsc", | ||
"build": "tsc -p tsconfig.build.json", | ||
"precover": "rimraf coverage", | ||
@@ -18,3 +17,3 @@ "cover": "jest --coverage", | ||
"test": "jest --watch", | ||
"prepublishOnly": "npm run lint && npm run cover && npm run build" | ||
"commit": "git-cz" | ||
}, | ||
@@ -40,2 +39,12 @@ "husky": { | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"jest": { | ||
@@ -63,6 +72,3 @@ "preset": "ts-jest", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jedmao/location.git" | ||
}, | ||
"repository": "https://github.com/jedmao/location.git", | ||
"keywords": [ | ||
@@ -81,18 +87,24 @@ "location", | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"@jedmao/semantic-release-npm-github-config": "^1.0.6", | ||
"@jedmao/tsconfig": "^0.3.0", | ||
"@types/jest": "^24.0.6", | ||
"@types/node": "^11.9.5", | ||
"@typescript-eslint/eslint-plugin": "^1.4.0", | ||
"@typescript-eslint/parser": "^1.4.0", | ||
"eslint": "^5.14.1", | ||
"eslint-config-prettier": "^4.0.0", | ||
"husky": "^1.3.1", | ||
"jest": "^24.1.0", | ||
"jest-watch-typeahead": "^0.2.1", | ||
"lint-staged": "^8.1.4", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^2.6.3", | ||
"ts-jest": "^24.0.0", | ||
"typescript": "^3.3.3333" | ||
"@types/jest": "^24.0.18", | ||
"@types/node": "^12.7.7", | ||
"@typescript-eslint/eslint-plugin": "^2.3.1", | ||
"@typescript-eslint/parser": "^2.3.1", | ||
"commitizen": "^4.0.3", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"eslint": "^6.4.0", | ||
"eslint-config-prettier": "^6.3.0", | ||
"husky": "^3.0.5", | ||
"jest": "^24.9.0", | ||
"jest-watch-typeahead": "^0.4.0", | ||
"lint-staged": "^9.3.0", | ||
"prettier": "^1.18.2", | ||
"rimraf": "^3.0.0", | ||
"semantic-release": "^15.13.24", | ||
"ts-jest": "^24.1.0", | ||
"typescript": "^3.6.3" | ||
} | ||
} |
# @jedmao/location | ||
[![NPM version](http://img.shields.io/npm/v/@jedmao/location.svg?style=flat)](https://www.npmjs.org/package/@jedmao/location) | ||
[![npm license](http://img.shields.io/npm/l/@jedmao/location.svg?style=flat-square)](https://www.npmjs.org/package/@jedmao/location) | ||
[![Travis Build Status](https://img.shields.io/travis/jedmao/location.svg)](https://travis-ci.org/jedmao/location) | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
[![GitHub Actions](https://github.com/jedmao/location/workflows/master/badge.svg)](https://github.com/jedmao/location/actions) | ||
[![NPM version](http://img.shields.io/npm/v/@jedmao/location.svg)](https://www.npmjs.org/package/@jedmao/location) | ||
[![npm license](http://img.shields.io/npm/l/@jedmao/location.svg)](https://www.npmjs.org/package/@jedmao/location) | ||
[![codecov](https://codecov.io/gh/jedmao/location/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/location) | ||
[![BundlePhobia Minified](https://badgen.net/bundlephobia/min/@jedmao/location?label=min)](https://bundlephobia.com/result?p=@jedmao/location) | ||
[![BundlePhobia Minified + gzip](https://badgen.net/bundlephobia/minzip/@jedmao/location?label=min%2Bgzip)](https://bundlephobia.com/result?p=@jedmao/location) | ||
[![BundlePhobia Minified + gzip](https://badgen.net/bundlephobia/minzip/@jedmao/location?label=min%2Bgzip&)](https://bundlephobia.com/result?p=@jedmao/location) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
[![Unicorn Approved](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://twitter.com/sindresorhus/status/457989012528316416?ref_src=twsrc%5Etfw&ref_url=https%3A%2F%2Fwww.quora.com%2FWhat-does-the-unicorn-approved-shield-mean-in-GitHub) | ||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
[![npm](https://nodei.co/npm/@jedmao/location.svg?downloads=true)](https://nodei.co/npm/@jedmao/location/) | ||
<!-- markdownlint-disable commands-show-output --> | ||
@@ -25,3 +29,3 @@ A `Location` class that implements the [`Location interface of the Web API`](https://developer.mozilla.org/en-US/docs/Web/API/Location). | ||
```ts | ||
import Location from '@jedmao/location' | ||
import Location = require('@jedmao/location') | ||
@@ -28,0 +32,0 @@ const loc = new Location('http://foo.com/') |
36
9952
21
10
94