{"_id":"@jedmao/location","_rev":"7-9d7c261fceed4c504b8ec7d07b569d15","name":"@jedmao/location","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@jedmao/location","version":"1.0.0","description":"A Location class that implements the Location interface of the Web API.","main":"dist/Location.js","types":"dist/Location.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","codecov":"codecov -f coverage/lcov.info","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"tsc","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","prepublishOnly":"npm run lint && npm run cover && npm run build"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"src/**/*.{ts,tsx,json,md}":["eslint --fix","prettier --write","git add"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","devDependencies":{"@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"},"gitHead":"b60a4d3844aeecbab920d31e11a5d6956cc927ae","_id":"@jedmao/location@1.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-wp++lf7hw7zJ2nM88b0o9KIsbT34kjQFGAcp3wCHNtqFYoqZCbygpFpj/xr0ICPYT/hYSZY5PsWAZcbb20VLjg==","shasum":"8ac8b9f76418a49a1a42dead658089d66587c5d3","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-1.0.0.tgz","fileCount":13,"unpackedSize":10574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccQ79CRA9TVsSAnZWagAAd1oP/A/1BYqcortkAd2PjIkT\nr2UCVUQXP036psQXJwpvf+jBtBnbjvMJcDZvB9MCOs22ndE7Fjp9oRn5G2ie\npVBwIdg+VExEixR0gBk+ayqB1+2GCEuoMVxtWyL64r0x6cupvdB3JQQhP+RQ\nNztyNt3hmjGPKfKYzWeZFgeuQ+V2jFFLiCQ/ughw55Kinoi48GZMmCvcV3l0\nAnIFQQJX+Jv8hx9AovrGAz2Hn1+AgqWXu58911xWrf1ct7s238DXBcpqJDTf\nXNmznnRxgNEoG6DchzZ8ys7dCBpG1u1Jiker7P0qATPRq+2UaHgckyB3RaLY\nI+O1izkO8MF1bF0gBfKJUN4w0Hz+QdTSVCl0RLSyS5HOiMONrkxi8CtOMk5l\nVfK72G0xeORtPYDR1xwxjW/N6yEMSFkGI7lOfOT2wGhGTgFKLa9avRL45r8U\nlAPZt5iLl19gtNIjYzqlX1yIrVXoiwrRi5By3u6JrlTBruPqRoYiYyOUpNLC\nmV6CFhjiOefxKCalGa87flicb2aQtLkuW/DR6+mO/esC1vUdDP+grIF8LVvr\n4ScUxpugkDjz4bTarOLdWrAx2UuIHaQNmZhRT3qeVtxN3T+XvZZPztzIfR3x\nUlluKeAd9PDJeeDfH1ssDZE0fh5iNWKcVieVojr7l1/FK9BtaRCHbwMQq3M0\nZRlA\r\n=VI+9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGs9xGnImN7hDqA/7i13hqOs9ac1gWakiBy54vvvXuUAiA2jCMFZaSQlyvpSw32hgq0yYk+NhukrYtnkg50AedqtA=="}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_1.0.0_1550913276582_0.9151092896352073"},"_hasShrinkwrap":false},"2.0.0":{"name":"@jedmao/location","version":"2.0.0","description":"A Location class that implements the Location interface of the Web API.","main":"dist/Location.js","types":"dist/Location.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","commit":"git-cz"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"src/**/*.{ts,tsx,json,md}":["eslint --fix","prettier --write","git add"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","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.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"},"gitHead":"56bd1693927fb75dcab3c9dcf8899a69218dd562","_id":"@jedmao/location@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-+raY6L/Tji4QkYUeeowuegq7jWFx5ECzqv0Tvj94dWyCk+WtTXjtpE8Z42yN1Xk3N2VqNxe77NvciT8JfUBQ1w==","shasum":"55d0c2bf9aa689d75afa81a67c8640eca8689133","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-2.0.0.tgz","fileCount":10,"unpackedSize":9952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdivXUCRA9TVsSAnZWagAADfwQAII1K1c1gIyXBuRhgm3x\nIgfpPcAXWXefQRD2D/mZcJN1gqeKUsnZLrvBeP9qF/COC0zRmetHMS5clptq\nyZHkFDPu4drVgZAIEVztXDu1SUBbohMNAKzD7Uyj2NbFnPyAnn5faYdyGstM\nwHDYNYBiDk+bMYMQs4QCidF4z1x0KOYDwjf1tUDfhYSb0WBz1qB8gO+25BLZ\ngaj0hOU4boJ2CG8r0jXOWJ5hsfgbmAoy+HzadPe6OahPrl1Ddxb6yxm1cp3E\nH1fqfBYq0S03PuzZBdigvQY2gpQpBZDdsId7G+QABg0CANoRij/UwEtY/0Rh\nzyGc0LLLPH5WgSPj2Pw7cZsEOKXfqlQbBdRdSKfSZeCtRt8VH2RDUpRVHHLo\nHn1SOybCAQN9jMJsRTB2FqhCzu0U6bqotBySYg2sor0GVv0lY/Tz09VbSHsd\niwQwYRBg9UXM1GT3ryQEEDLGmfBVX57iou37JTQOFJ3EOTk/2rMP+ytkWMNK\n4LZo3hTWmdfMAegXsGPTFQ7DldCUH5CAn13xD3c202pwGGfR9PXvlnDME4Ul\n6M9ZUfWQpSuWkfC+Kt/htrXKzT9Icn4vtUGVRfhAa7kQw5fmuqBPEyaCTb8B\ndPiqj2jM9gKgfQYEXj6Iy4bxCF5pP+qR4lILX8je/uiE4lqCqJT9Co0Tir26\nosSY\r\n=T3WW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDam84UQtPeZhpXswfxP5CoMItwbHSquQWeXRK8YXxxAiEAoaq2STIT9K3NUBVzxBsC8rX4oni+Jo/e+m17hKRqjSU="}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_2.0.0_1569387987484_0.5041595648354731"},"_hasShrinkwrap":false},"2.0.1":{"name":"@jedmao/location","version":"2.0.1","description":"A Location class that implements the Location interface of the Web API.","main":"dist/Location.js","types":"dist/Location.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","commit":"git-cz"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"src/**/*.{ts,tsx,json,md}":["eslint --fix","prettier --write","git add"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"release":{"extends":"@jedmao/semantic-release-npm-github-config","branch":"master"},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","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.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"},"gitHead":"0c4e8b11f48bd8d20f6b998d207f141f7d32e8d3","_id":"@jedmao/location@2.0.1","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-t28nxAK1Nm8egTk8aqO4CoaoKJJatojNAWmaT7lj8VwIUeI2873SyNHWRkuRE4IauSGmKLQl0gbMjP0LEKiNbQ==","shasum":"554e2bff3ef2c78c20d850a47d030e602cb5eb7f","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-2.0.1.tgz","fileCount":12,"unpackedSize":14541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdivnICRA9TVsSAnZWagAA9gQQAKUd9zG1OQMNJ8Zuitrs\nXivbjL2nRZpzzY4gbWh/5iHL7IwwXZ+bA1KFQOEe+QGVhCZqsvDgu0sTPQrr\nA/WRTRDDYemJJJvHSDUae6zdJnC6btfBAnp+XbCb676vFwjCXCdmnE8wkWlL\nSTADlsTEMvJpFMdCfTyxSVbz+YonQ008vJfUJicAN7bZxDd2R1wjH13iKg7h\nX8Du6f3uf27SL/Ln3T9KPKXSjhEYJmgSLmD/KtgcPlJk0zIzkjsa9AFRlHHa\nFBM5gLGCiYCTp/y1kINZuLA7nbIsYOddcRu19KLK/GyNhrin1zzL2neEpjTW\nrs+zDO2aE+h/PnQ88x+J/Op9oP0A+/wdAidtQ85vwlcf1g7DzxbCmNxqDHM4\nGlj1t1z5Y7l6qNR37xafwYOhkFukp9YZf+wZHkXUJCc0CYH9DcaJKhuOArPC\n0JpzygVpH/wsfpeE86o40+95BpVHWwcSaU5SQ29d3hFOE6ZmsKYQbrd8g4m1\nQ7WWHre6UZ1OG8wFOOnSecHYQc6rZ2QE/CsnimW8XfNdnvjJEf1GqrST4Su0\nq6gFcC79uXC2ELf1DpYbai5ph1Tla9yz6jVzrFN1uwgSjlBvC4EK/NNHw2OU\nsUgXIF+3IDsCpzc87Us43g0zaeykNfU1lvS9ZsyC6UTh4vfrBB5jr54GkhjR\n8L3r\r\n=UsgV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb5Hm6+dKMnFfo/ZXQF2EY+GsOnSbviQlLGnU3K3WZIwIhAIyIafSU9UCwhoyfo284V92mG/GxdV4L+WGfVRwxknoc"}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_2.0.1_1569389000370_0.8116139193523879"},"_hasShrinkwrap":false},"2.0.2":{"name":"@jedmao/location","version":"2.0.2","description":"A Location class that implements the Location interface of the Web API.","main":"dist/Location.js","types":"dist/Location.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","commit":"git-cz"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"src/**/*.{ts,tsx,json,md}":["eslint --fix","prettier --write","git add"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"release":{"extends":"@jedmao/semantic-release-npm-github-config","branch":"master"},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","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.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"},"gitHead":"84ae0c62eb26f4adf9ee30fc0e9629b2ca65d466","_id":"@jedmao/location@2.0.2","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-9JBcvIXGmuvNNpTfyG5c1wS+/KX2hcCVaMUkc1tGFbhmi6XsjV4OMvfbyi6OIZqhevxC52u97SaXMBfdodZi4Q==","shasum":"e5b8635ea4b04fcc49b169ac589a1ca6c8f0bd7f","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-2.0.2.tgz","fileCount":5,"unpackedSize":8800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi7JwCRA9TVsSAnZWagAAdzUP/Rr0ladf/U8j7xP5Dd+b\nJdISziB/r/D8jA89l9KQbh2bQnd0Ive/NRwEkkzYjz3hT4lNwFcU78uYVAA9\nBLUL/bVor5406fgylVDmkqukskxYGJSC/rPlIt1eDC26xrjee1IAW7WhUNSY\nBK254LDdC0Abb7hrSiRxLWhHf1OPk+BJiPBGHhGHIjhy/Snq2xoU4XNy8Unk\nKaHubpBZvVpOgUPwtLJN92+9riiZNd2e4Yl+t4edIc/GNzBKkWibBZ0qaLnB\nKSozZQz6Eu4hMm51rjPbgyV5csjGuy9zscAV1GsEeGj2RdSuVXlLipo/1zJI\nZu9LmRMr7xwhWhifOcVvp5mkU8w8abnwEBA9WrnvMNlse/zgtiXx+NxXWe34\nPn2v+z7Ha15LYZY2THZywcfTCAuLXluIvda0rEtoA+DGPXMqiMBpck9HN+K7\nYaJXaDxHtsquwIQwlUds8wkdnN5agKTJg5VDO96w7Zjw/FO6UPBG3c3DDebp\nVBGPeFACOQ9OVtWXPNKnISaTfhWXFgbNkpK/RVte2FBLeX3ZzRkN3zwTN31B\n2lXwxe/sd4njfVHHqWcsSdugDXYo5C6kcvkeokie7ITzBRcUWiZU8P/c7jMK\ntGu6lQLBzphobogPR8+mJ4kTvtCWBaLIWcR7MiByiPnAqJhCrcA4BXu0gsKh\nm9Rr\r\n=ZSez\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmjJ3UddrCMeSBwJFBUhya9QOB2AMLoAcRSe04Qc/ikAiEAifduE5YgbNKKvq0AU+41TJ6a+wcL2j15rXgLMXQ43Ao="}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_2.0.2_1569436271567_0.304718194607694"},"_hasShrinkwrap":false},"2.0.3":{"name":"@jedmao/location","version":"2.0.3","description":"A Location class that implements the Location interface of the Web API.","main":"dist/Location.js","types":"dist/Location.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","commit":"git-cz"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"src/**/*.{ts,tsx,json,md}":["eslint --fix","prettier --write","git add"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"release":{"extends":"@jedmao/semantic-release-npm-github-config","branch":"master"},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","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.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"},"gitHead":"8eff2242a15238f438299a12477745b791bbdb54","_id":"@jedmao/location@2.0.3","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-5gL2jobllO/DHgK3I1JEati7iM28UUyrjs/TmbXJOkWLZt3UeFxpoTB8VbvaF63AawxgNHsydmxmcxSgs1fFnQ==","shasum":"111bea19dece0e67698f69d5a9f3192977b560b9","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-2.0.3.tgz","fileCount":9,"unpackedSize":12944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi7TLCRA9TVsSAnZWagAAeesP/3XQz5bxh+uA/siwlqSh\noJh3G5Cgnha5sRRNA3WbJOV1Z+7b2ZAFypWJEBdNenklKXbQYMsK4GKFmXv9\n+ZCpaVTv4ijKGIXc+xF2jibw7fotv8jTML4Xhgw/b0nFD3/1pTjcpQHBihfx\nQURarvhwf7puCmmDIRD6CO9L8hdQyRFCb2BHqoUFdjYiY6FrvoHG3wbXnDvV\nh8dww0PQ7XjARb0oAAsUiTDSgSNfWeM7rvMqVAoP6SUcyw0zqPtrFnn4RX2o\nP5gYjtOhbg1LGwbHz5xyqDbQz2y/7cKe3fHM9MB6AdWg+3xYeT+rQXn7/Sv/\n3k1BjrNhu4aikQ2JrU52HjcbE1ZRHCLP7mBFiLRk3j3sA2G8seOKCOVUMQ1v\n/puyhYlGKYGrQxqBw8dHduBk5rqRe7h92lmSE1uiMGVXDNHLtlminAlvAqe7\nh24+ou/orZH7BaEQxkWKOki7Lg7JzmucFNKN0eqztXhUY4idLBFPeS7qvxoV\nCu0upNuvYrByAJ0x2SXyOoKs5+enU39ACjR20vM6+/JlZmkcVrhnWkKW98Ey\nVibgYWbiWvPxQ82Ic+4XhJrq9jDuJ3TeUV0ewodFIvkUfB2O+gEhfhPxddry\nwXdJ+YpyMjj3HXi4AdcL7RE3PtIhwHRRauxz+f1yZdLCPHDwgzveqxszKwaI\ndYex\r\n=ckt1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv6e0JfLXdpMugBbY2R4Tsg5xF3tMhJxC/ENnHUS06LQIhAKta6IlhO0pSh9kkdioW5sT1g+cHsjg59LoGzxShNHTu"}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_2.0.3_1569436875451_0.7809331695617452"},"_hasShrinkwrap":false},"2.0.4":{"name":"@jedmao/location","version":"2.0.4","description":"A Location class that implements the Location interface of the Web API.","main":"dist/Location.js","types":"dist/Location.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.build.json","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","commit":"git-cz"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"src/**/*.{ts,tsx,json,md}":["eslint --fix","prettier --write","git add"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"release":{"extends":"@jedmao/semantic-release-npm-github-config","branch":"master"},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"globals":{"window":{}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@jedmao/semantic-release-npm-github-config":"^1.0.7","@jedmao/tsconfig":"^0.3.0","@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"},"gitHead":"23e870e928db9d64679b3369cbfe57148c36a81d","_id":"@jedmao/location@2.0.4","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-L4+ECVDoVhbEIcXRfx/8/i8KkJkSG7ti0QpokMZBMdazo73lUXtT/k7PpFh3tuWnJhnHlWp58sWE/WrzE7x7Ww==","shasum":"7e19bcfb892c27ae156bb4d032ce0fa39985cc6b","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-2.0.4.tgz","fileCount":8,"unpackedSize":10735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi9/RCRA9TVsSAnZWagAA4LoP/R+999fDQ2wlKPLmZY7J\n5y14QRM1YBKXu/Ws3VknwxxMEAJeakj/lMG+fQaSvAE/rQQlYiTcmas0niCH\n9OBJdTx6uuQrsVY7NZcG4OWxQlQpMlO+uxdcXIXAk7jl8m02invnVsmlIDxS\nzM9yERjDSQVpfm5SzOCgQpPvrOpBdff4QgEo3V2sz7WJQLYZqkBFM22U+9IM\n9Sbbym6+2XpY6szzVNLjE1VNxlRXcFc7oYss3yq5e740fxRYH/LD0YvGuxm5\nqqEJE1yFHL/5IZt0dzL02asNU0dIzaDPfqoLSbUCTI8KljFtqr9U8U6BbjZG\nd+yOjYYZbvHFgBCTEDAVLMAn3LAYXA7yzfgcZivuJNhjBT656P5gTL5nOa+K\n4zqpDmYjX7NHKq3GPv7z4tv7AX1RmR000F1V0PneEHxOx0zfYR0mbaMSzAeW\n495CW8KrUYuzJk1kGiKZGoqVrpXKun2J9g/KglnnAIEyRSNiLeRw4WQg0IOc\nrVJte+NOJFszGtaDVnabJFnSRxvhjGWUlqexJAawZOGgL6UycnU0Elmwe51s\nY+jqvAYBXC3ZiAjwYHhSz0S6XZbscNbjQq9OkwsJQa6Qu82/ZQu6Bxnyzx3h\n7GreBj09uAFt1E7JqDM+/40CH2WnTJb96q3jH2XPuvxQMKVyxvW3akniZSkO\nRRBz\r\n=s2Vn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKOqSY1PvcXJGKChPEplcW5qcmhVOSgi0d5vobqDKcrgIhAN2N2zRQMszhXpKlUwgvovvpWpSNsa2zjHAVfEZuZYus"}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_2.0.4_1569447888587_0.513246916474112"},"_hasShrinkwrap":false},"3.0.0":{"name":"@jedmao/location","version":"3.0.0","description":"A Location class that implements the Location interface of the Web API.","main":"dist/LocationMock.js","module":"dist/esm/LocationMock.js","types":"dist/LocationMock.d.ts","scripts":{"clean":"rimraf coverage dist *.log* location-*","lint":"eslint src/**/*.ts","prebuild":"rimraf dist","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","precover":"rimraf coverage","cover":"jest --coverage","pretest":"npm run lint","test":"jest --watch","commit":"git-cz"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"tsc --noEmit && npm run cover"}},"lint-staged":{"*.{ts,tsx}":["eslint --fix"],"*.{json,md}":["prettier --write"]},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"trailingComma":"all"},"commitlint":{"extends":["@commitlint/config-conventional"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"release":{"extends":"@jedmao/semantic-release-npm-github-config","branch":"master"},"jest":{"preset":"ts-jest","testEnvironment":"node","verbose":true,"coverageDirectory":"coverage","coverageReporters":["lcov","text"],"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}},"globals":{"window":{}},"watchPlugins":["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"keywords":["location","mock","web","api","typescript"],"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"license":"MIT","bugs":{"url":"https://github.com/jedmao/location/issues"},"homepage":"https://github.com/jedmao/location#readme","devDependencies":{"@commitlint/cli":"^8","@commitlint/config-conventional":"^8","@jedmao/semantic-release-npm-github-config":"^1","@jedmao/tsconfig":"^0.3","@types/jest":"^25","@types/node":"^13","@typescript-eslint/eslint-plugin":"^2","@typescript-eslint/parser":"^2","commitizen":"^4","cz-conventional-changelog":"^3","eslint":"^6","eslint-config-prettier":"^6","husky":"^4","jest":"^25","jest-watch-typeahead":"^0.4","lint-staged":"^10","prettier":"^1","rimraf":"^3","semantic-release":"^17","ts-jest":"^25","typescript":"^3.8"},"gitHead":"d3c5f87d031d9294d3a5a4bd392a5c14fc41e927","_id":"@jedmao/location@3.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.2","dist":{"integrity":"sha512-p7mzNlgJbCioUYLUEKds3cQG4CHONVFJNYqMe6ocEtENCL/jYmMo1Q3ApwsMmU+L0ZkaDJEyv4HokaByLoPwlQ==","shasum":"f2b24e937386f95252f3a1fefbf7ca2e0a4b87e9","tarball":"https://registry.npmjs.org/@jedmao/location/-/location-3.0.0.tgz","fileCount":7,"unpackedSize":12630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZJC1CRA9TVsSAnZWagAAfGYP/RHuZpcK2hujsNYS5H2o\nA+hOkhpTcGAwwape/U8cXQQudwstF2ZGhNEyZmmWZoA9aEftvpI1U37y1PyA\netou9n883OztueLMih4+d+u6tKmIj8COShWwK3/ZQosM9Qht5HibSyGLHE8K\n/f8OwdVM0xglZNxbmo/jezg9WqwpPN6MhVUVXe/xId8TwF2sjViTJixMdkFX\n8UlqSMubiJ2kxdGLXLxrX88Lu5UIkyoBkf8PkfJqMbIZljSHR6LO5+pYSjzi\nJrvAJMtnHxDjHZfXbS/yTz8A2IweRlAIX0h4cunUdXta3Iou+sU1eaoWUSEr\nExHNPk/tdx8rQsGJdUweNWWhZ7bvHKsd4ukwITuQZqC9tbqKk2fl9LNOl8Sj\nqu8xNHvG0dsvamV3b4qaDt9fplMt3TCluX2eCPkdcvhN8km5FbtTSUvnLJoN\nQmXDv3x5UsMOJIYaelBsAOsZHajZa1+bMHSJjhRwQ1N0BIm9hYKFOqpm17sF\nctwgoKAoJbPnZL0GmFlBEnZ+PjOAPjqZckoJ8GbmxcnA6/nS04iuRK5fJitm\n4SuDDOkMedQq0hQ0Ukl5hUZnscdinqaDoZ8OGpOqwHIMljr8r8wfZa+A1J0B\nV+lNSuDe+U+ntkdDZtm0iZSqWwItTlOjXSc34h1H/82t7Jb6QH2crn3L6ILA\neABX\r\n=7WYo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGH6X9znspPExqmkYlfcu3gMev4VQ3dc8cHuLG+P9xWQIgZ/hAg/YETSaW2n0Se91mGVSv61ttzzaOXGfr81ZBwkI="}]},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"_npmUser":{"name":"jedmao","email":"jedmao@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/location_3.0.0_1583648948558_0.7870970155173"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-23T09:14:36.394Z","1.0.0":"2019-02-23T09:14:36.809Z","modified":"2022-04-05T21:46:07.349Z","2.0.0":"2019-09-25T05:06:27.665Z","2.0.1":"2019-09-25T05:23:20.468Z","2.0.2":"2019-09-25T18:31:11.758Z","2.0.3":"2019-09-25T18:41:15.572Z","2.0.4":"2019-09-25T21:44:48.757Z","3.0.0":"2020-03-08T06:29:08.686Z"},"maintainers":[{"name":"jedmao","email":"jedmao@outlook.com"}],"description":"A Location class that implements the Location interface of the Web API.","homepage":"https://github.com/jedmao/location#readme","keywords":["location","mock","web","api","typescript"],"repository":{"type":"git","url":"git+https://github.com/jedmao/location.git"},"author":{"name":"Jed Mao","email":"jedmao@outlook.com"},"bugs":{"url":"https://github.com/jedmao/location/issues"},"license":"MIT","readme":"# @jedmao/location\n\n<!-- markdownlint-disable -->\n[![GitHub Actions](https://github.com/jedmao/location/workflows/Node%20CI/badge.svg?event=push)](https://github.com/jedmao/location/actions)\n[![NPM version](http://img.shields.io/npm/v/@jedmao/location.svg)](https://www.npmjs.org/package/@jedmao/location)\n[![npm license](http://img.shields.io/npm/l/@jedmao/location.svg)](https://www.npmjs.org/package/@jedmao/location)\n[![codecov](https://codecov.io/gh/jedmao/location/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/location)\n[![BundlePhobia Minified](https://badgen.net/bundlephobia/min/@jedmao/location?label=min)](https://bundlephobia.com/result?p=@jedmao/location)\n[![BundlePhobia Minified + gzip](https://badgen.net/bundlephobia/minzip/@jedmao/location?label=min%2Bgzip&)](https://bundlephobia.com/result?p=@jedmao/location)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![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)\n<!-- markdownlint-restore -->\n\n<!-- markdownlint-disable commands-show-output -->\n\nA `LocationMock` class that extends [`URL`][] and implements the [`Location interface of the Web API`](https://developer.mozilla.org/en-US/docs/Web/API/Location). As always, with first-class TypeScript support!\n\n## Installation\n\n```bash\nnpm i --save-dev @jedmao/location\n```\n\n## Usage\n\n```ts\nimport { LocationMock } from '@jedmao/location'\n\nconst loc = new LocationMock('http://foo.com/')\nloc.assign('http://bar.com/')\nloc.replace('http://baz.com/')\nloc.reload()\n```\n\nBecause this package extends [`URL`][], many features are provided for free. This means you can do this:\n\n```ts\nnew LocationMock('http://jed:secret@test:42/foo?bar=baz#qux')\n```\n\nWhich returns the following object:\n\n```ts\nLocationMock {\n  href: 'http://jed:secret@test:42/foo?bar=baz#qux',\n  origin: 'http://test:42',\n  protocol: 'http:',\n  username: 'jed',\n  password: 'secret',\n  host: 'test:42',\n  hostname: 'test',\n  port: '42',\n  pathname: '/foo',\n  search: '?bar=baz',\n  searchParams: URLSearchParams { 'bar' => 'baz' },\n  hash: '#qux' }\n```\n\n### Mocking\n\nA common use for this package is to mock the `window.location`, which you can do in [Jest](https://jestjs.io/) like so:\n\n```ts\nconst { location: savedLocation } = window\n\nbeforeAll(() => {\n  delete window.location\n})\n\nbeforeEach(() => {\n  window.location = new LocationMock('http://test/')\n})\n\nafterAll(() => {\n  window.location = savedLocation\n})\n\nit('assigns /login', () => {\n  const assign = jest\n    .spyOn(window.location, 'assign')\n    .mockImplementationOnce(() => {})\n\n  window.location.assign('/login')\n\n  expect(assign).toHaveBeenCalledWith('/login')\n})\n```\n\n[`url`]: https://developer.mozilla.org/en-US/docs/Web/API/URL\n","readmeFilename":"README.md"}