Comparing version 2.0.3 to 2.0.4
@@ -10,7 +10,6 @@ "use strict"; | ||
var window = window_var_1.get(); | ||
return ((window.history && window.history.location) | ||
|| window.location | ||
|| { href: "" }); | ||
return ((window.history && window.history.location) || | ||
window.location || { href: "" }); | ||
} | ||
exports.get = get; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "get-loc", | ||
"description": "Gets the current location for an html document with polyfill and webworker support.", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Dylan Piercey <pierceydylan@gmail.com>", | ||
@@ -47,10 +47,11 @@ "bugs": "https://github.com/DylanPiercey/get-loc/issues", | ||
"scripts": { | ||
"build": "tsc", | ||
"coveralls": "cat coverage/lcov.info | coveralls", | ||
"format-all": "find ./{src,test}/*.ts | xargs prettier --write", | ||
"format-all": "find ./{src,test}/**/*.ts | xargs prettier --write", | ||
"mocha": "mocha -r ts-node/register ./test/**/*.test.ts", | ||
"precommit": "lint-staged && npm test", | ||
"test": "nyc --extension=.ts --include=src/**/*.ts --reporter=html --reporter=text-summary npm run mocha", | ||
"test-ci": "nyc --extension=.ts --include=src/**/*.ts --reporter=lcovonly --reporter=text-summary npm run mocha" | ||
"precommit": "lint-staged && npm test && npm run build", | ||
"test": "nyc --extension=.ts --include=src/**/*.ts --reporter=lcov --reporter=text-summary npm run mocha", | ||
"test-ci": "nyc --extension=.ts --include=src/**/*.ts --reporter=lcovonly --reporter=text npm run mocha" | ||
}, | ||
"types": "dist/index.d.ts" | ||
} |
Sorry, the diff of this file is not supported yet
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
4548
20