From f5e46c9bf2f50d66a953fa133161fc829cecff06 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 10 Feb 2024 13:22:13 -0700 Subject: chore: move cli/tests/ -> tests/ (#22369) This looks like a massive PR, but it's only a move from cli/tests -> tests, and updates of relative paths for files. This is the first step towards aggregate all of the integration test files under tests/, which will lead to a set of integration tests that can run without the CLI binary being built. While we could leave these tests under `cli`, it would require us to keep a more complex directory structure for the various test runners. In addition, we have a lot of complexity to ignore various test files in the `cli` project itself (cargo publish exclusion rules, autotests = false, etc). And finally, the `tests/` folder will eventually house the `test_ffi`, `test_napi` and other testing code, reducing the size of the root repo directory. For easier review, the extremely large and noisy "move" is in the first commit (with no changes -- just a move), while the remainder of the changes to actual files is in the second commit. --- tests/testdata/npm/registry/pathval/pathval-1.1.1.tgz | Bin 0 -> 5554 bytes tests/testdata/npm/registry/pathval/registry.json | 1 + 2 files changed, 1 insertion(+) create mode 100644 tests/testdata/npm/registry/pathval/pathval-1.1.1.tgz create mode 100644 tests/testdata/npm/registry/pathval/registry.json (limited to 'tests/testdata/npm/registry/pathval') diff --git a/tests/testdata/npm/registry/pathval/pathval-1.1.1.tgz b/tests/testdata/npm/registry/pathval/pathval-1.1.1.tgz new file mode 100644 index 000000000..270690cb3 Binary files /dev/null and b/tests/testdata/npm/registry/pathval/pathval-1.1.1.tgz differ diff --git a/tests/testdata/npm/registry/pathval/registry.json b/tests/testdata/npm/registry/pathval/registry.json new file mode 100644 index 000000000..9ea21129c --- /dev/null +++ b/tests/testdata/npm/registry/pathval/registry.json @@ -0,0 +1 @@ +{"_id":"pathval","_rev":"21-2c490ca7f605dac95e8fee78fa5c545e","name":"pathval","description":"Object value retrieval given a string path","dist-tags":{"latest":"1.1.1"},"versions":{"0.0.1":{"name":"pathval","version":"0.0.1","description":"Object value retrieval given a string path","main":"./lib/pathval.js","homepage":"https://github.com/chaijs/pathval","scripts":{"test":"mocha test/*.test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha test/*.test.js","coveralls":"istanbul cover ./node_modules/.bin/_mocha test/*.test.js --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","test-readme":"jsmd README.md"},"repository":{"type":"git","url":"https://github.com/chaijs/pathval"},"devDependencies":{"mocha":"~1.13.0","chai":"~1.8.1","coveralls":"~2.3.0","istanbul":"~0.1.44","jsmd":"~0.2.0"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.0.1","dist":{"shasum":"130054c3874153be50fc3fdb4c5b9a1c68036d08","tarball":"http://localhost:4545/npm/registry/pathval/pathval-0.0.1.tgz","integrity":"sha512-yXID7tg2VqiMHVsJF7aXo5KUE6A4bmGYsWulnMGNyM6pfQujjOBXmCPZHQ3Mndx5amQ0nOWnwaG/RLaOGMib4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmrl3XuKZF435pd685aQA4Sc4MDb3plPnNezwqGjJldAIgCmu43u+TCsEQ3cx18kHQ9tUGVi2+bYyUGLyqzOnIsQQ="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"vesln","email":"hi@vesln.com"},"maintainers":[{"name":"vesln","email":"hi@vesln.com"}],"directories":{}},"0.1.0":{"name":"pathval","version":"0.1.0","description":"Object value retrieval given a string path","main":"./lib/pathval.js","homepage":"https://github.com/chaijs/pathval","scripts":{"test":"hydro","coverage":"istanbul cover _hydro","coveralls":"istanbul cover _hydro --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","test-readme":"jsmd README.md"},"repository":{"type":"git","url":"https://github.com/chaijs/pathval"},"devDependencies":{"coveralls":"~2.3.0","istanbul":"~0.1.44","jsmd":"~0.2.0","simple-assert":"~1.0.0","hydro":"~0.8.7","hydro-file-suite":"0.0.1","hydro-doc":"0.0.2","hydro-bdd":"0.0.3"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.1.0","dist":{"shasum":"a4b33d8c231784bb3c88bbf1802f8b59b883d5cd","tarball":"http://localhost:4545/npm/registry/pathval/pathval-0.1.0.tgz","integrity":"sha512-IsbM3R/xiW40mcyFHb5wAqjCiT8vUMSsAWgXS3ysYVLHXS91x2XT9IGmVKhMJeyU5ORjc/b7JvemcEkjA1nEGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMQ8F/vfTCVo0JrJwekG+mUi2ZWlrf4D+Fx8f4o9TXJwIhANhebK8YzkkiyAgBvJvnnpmlnSoVd+g3HwxbgBHjHlln"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"vesln","email":"hi@vesln.com"},"maintainers":[{"name":"vesln","email":"hi@vesln.com"},{"name":"jakeluer","email":"jake@alogicalparadox.com"}],"directories":{}},"0.1.1":{"name":"pathval","version":"0.1.1","description":"Object value retrieval given a string path","main":"./index.js","homepage":"https://github.com/chaijs/pathval","scripts":{"test":"hydro","coverage":"istanbul cover _hydro","coveralls":"istanbul cover _hydro --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","test-readme":"jsmd README.md"},"repository":{"type":"git","url":"https://github.com/chaijs/pathval"},"devDependencies":{"coveralls":"~2.3.0","istanbul":"~0.1.44","jsmd":"~0.2.0","simple-assert":"~1.0.0","hydro":"~0.8.7","hydro-file-suite":"0.0.1","hydro-doc":"0.0.2","hydro-bdd":"0.0.3"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"license":"MIT","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.1.1","dist":{"shasum":"08f911cdca9cce5942880da7817bc0b723b66d82","tarball":"http://localhost:4545/npm/registry/pathval/pathval-0.1.1.tgz","integrity":"sha512-2AJyCGXy4VsZ2wa0TmMoL93KtWshxWQAMuuAG+7/Q3kth9uRDV38cMZTaSCsrTDJEwV8QbIHad+3E673s1ZY0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnANtUzPBfWCQOD8WwOCSVbloYchYo1DDoO6Vat7Z8YAiACo1AkJzXU1BQfpX6aLuo+VXB0u3elqUi8FSAXMVfgFQ=="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jakeluer","email":"jake@alogicalparadox.com"},"maintainers":[{"name":"vesln","email":"hi@vesln.com"},{"name":"jakeluer","email":"jake@alogicalparadox.com"}],"directories":{}},"0.2.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"dependencies":{"type-detect":"^2.0.1"},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"0.2.0","gitHead":"979fa9d501484be5a48f9bcaaf00d726b8190a6a","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.2.0","_shasum":"cf87ac1ced492cadcbcbb482d2e72012a5237ade","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"cf87ac1ced492cadcbcbb482d2e72012a5237ade","tarball":"http://localhost:4545/npm/registry/pathval/pathval-0.2.0.tgz","integrity":"sha512-RqQUI9eBpASf+T/+CvwwO/BBtw7tXWTHAdIac+RdksgHqnsbNcDePIIhuVThvHX6MaTqC4/8B7k1eyU4/4AoDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCppMVkec5tFAbFh1JQmM5/KBBe4yAHRdhaTHQUZCvJzQIhAKwpnP4EW1ZzgNUBDjr4Zk8HJoH/nWaF5C2zmiy2V2t8"}]},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pathval-0.2.0.tgz_1475626779711_0.6217861396726221"},"directories":{}},"0.2.1":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"0.2.1","gitHead":"6d2f6d4db2fc62f0c74d89d0575cfd433afdd2a7","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@0.2.1","_shasum":"47ead80a77bbe6192b59326e1b71635e6962563c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"47ead80a77bbe6192b59326e1b71635e6962563c","tarball":"http://localhost:4545/npm/registry/pathval/pathval-0.2.1.tgz","integrity":"sha512-yjoZNnKIKwdEwYqCWqgbplqEyh19S2SZwnKgdJtcuQ7HLgXoSVmszN1mArYouhwpLp6etkCX70NpmLknXyJ4VQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0LF0Ud2NgSQ53eztERakKGlSwuXgyA2izKVDSkbG3SgIgDLq5JAqQHAXARcrqVswnVkJfg++ZpG/0mlbWfmWsm6E="}]},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pathval-0.2.1.tgz_1475703461600_0.5263914761599153"},"directories":{}},"1.0.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^2.4.5","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"1.0.0","gitHead":"37f1dc9f0c41b815598e62c92bbe89b83fca1089","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@1.0.0","_shasum":"dd843dd66e7666d3193376f4479e6ee6e1d29d28","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"dd843dd66e7666d3193376f4479e6ee6e1d29d28","tarball":"http://localhost:4545/npm/registry/pathval/pathval-1.0.0.tgz","integrity":"sha512-VIsZrz7ZymQhnimx/iNm0rp+tK2SO60k4PQ2gKvtldy40/3MT8gbaKOrjV4xDQ3wF54QjU/Ucu0o2HJe61oxjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEIu8dTztXUUCEmWzABtCXZDBt1vqx5BDA+68nPr+UFgIhAMcZUqZb+LDLV1JN5s008torQ4rWhTJ/+eFsu7wQP3VU"}]},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pathval-1.0.0.tgz_1475963991947_0.6970440507866442"},"directories":{}},"1.1.0":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"files":["index.js","pathval.js"],"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --bare $npm_package_main --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"istanbul cover _mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^13.0.0","browserify-istanbul":"^1.0.0","coveralls":"2.11.9","eslint":"^2.4.0","eslint-config-strict":"^8.5.0","eslint-plugin-filenames":"^0.2.0","ghooks":"^1.0.1","istanbul":"^0.4.2","karma":"^0.13.22","karma-browserify":"^5.0.2","karma-coverage":"^0.5.5","karma-mocha":"^0.2.2","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^0.3.1","lcov-result-merger":"^1.0.2","mocha":"^3.1.2","phantomjs-prebuilt":"^2.1.5","semantic-release":"^4.3.5","simple-assert":"^1.0.0","travis-after-all":"^1.4.4","validate-commit-msg":"^2.3.1"},"engines":{"node":"*"},"version":"1.1.0","gitHead":"fd11b26a39c2d948ef6785feac1edf8c01e4a055","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@1.1.0","_shasum":"b942e6d4bde653005ef6b71361def8727d0645e0","_from":".","_npmVersion":"3.10.8","_nodeVersion":"0.10.47","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"shasum":"b942e6d4bde653005ef6b71361def8727d0645e0","tarball":"http://localhost:4545/npm/registry/pathval/pathval-1.1.0.tgz","integrity":"sha512-qZ181q3ICkag/+lv1X6frDUF84pqCm30qild3LGbD84n0AC75CYwnWsQRDlpz7zDkU5NVcmhHh4LjXK0goLYZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQe9Hc6MGAGtARY10udH/aL5O/58z3hsoL7B1mGShwdAiASBywB9qBLzuwiTJUuGLg3QUtLWHCfqlz0pyOb1s+UUg=="}]},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pathval-1.1.0.tgz_1476222299732_0.22869419353082776"},"directories":{}},"1.1.1":{"name":"pathval","description":"Object value retrieval given a string path","homepage":"https://github.com/chaijs/pathval","version":"1.1.1","keywords":["pathval","value retrieval","chai util"],"license":"MIT","author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"main":"./index.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"scripts":{"build":"browserify --standalone pathval -o pathval.js","lint":"eslint --ignore-path .gitignore .","lint:fix":"npm run lint -- --fix","prepublish":"npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest":"npm run lint","test":"npm run test:node && npm run test:browser && npm run upload-coverage","test:browser":"karma start --singleRun=true","test:node":"nyc mocha","upload-coverage":"lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"},"config":{"ghooks":{"commit-msg":"validate-commit-msg"}},"eslintConfig":{"extends":["strict/es5"],"env":{"es6":true},"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0}},"devDependencies":{"browserify":"^17.0.0","browserify-istanbul":"^3.0.1","coveralls":"^3.1.0","eslint":"^7.13.0","eslint-config-strict":"^14.0.1","eslint-plugin-filenames":"^1.3.2","ghooks":"^2.0.4","karma":"^5.2.3","karma-browserify":"^7.0.0","karma-coverage":"^2.0.3","karma-mocha":"^2.0.1","karma-phantomjs-launcher":"^1.0.4","karma-sauce-launcher":"^4.3.3","lcov-result-merger":"^3.1.0","mocha":"^8.2.1","nyc":"^15.1.0","phantomjs-prebuilt":"^2.1.16","semantic-release":"^17.2.2","simple-assert":"^1.0.0","travis-after-all":"^1.4.5","validate-commit-msg":"^2.14.0"},"engines":{"node":"*"},"gitHead":"db6c3e39c39859564704b7f37149082689f1b172","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"_id":"pathval@1.1.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==","shasum":"8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d","tarball":"http://localhost:4545/npm/registry/pathval/pathval-1.1.1.tgz","fileCount":6,"unpackedSize":15830,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD+x9CRA9TVsSAnZWagAARd4P+wdHojovTrxc91hH6k/c\n3Godh5zA1jYAwNlwjcHWxS88ahx4eOff0OiBeNx+nVhILsAKxrXyCySC0yFc\nf16UdXO6u3IX4O8dzlVFwKYdT7icgioUDzrxsNXioE/sdZMXlEyNFxm6QHN8\nBUz0fI+h5FyTUuHIjt6vd5ZbDL5nsL58+S3JiqWl76KBxNyzUh53j+2AVLW4\n+bTUyNQMkgFUXwY0O3IxNQqBLuDUOrAoiCowF/WsgzESdkvwFbVTu6JY4Hnb\niMw4RSIbV78iEVESSli1Tug3bBFLshjzIzZUNqzdu9En1iy12sPvmqctXDZy\ntimD/2vV7ei5zievT/FjwcXj/V5k2if7mNxwbdBPPEb36UeXnCYzYOyUAmY8\noSZbAav6rVTVJkkBYl+2XXz4eypZ6CNBc07y8M/1y8tQ0vgQYTd43fHvrZ1K\nglH/YtSLj+abkPtW65wCZS1Ahx8Okvg4bsogwkovPL0SUiNbQzBvoUeJz3bz\nPIE2t7H7ZIniuTYEF/l6y+MKWOdVBt1ucq8rsBRiGMov5PQK08/8OzrBOl/K\n3dZY61MkvmcTeBMlw7Ti2pZ8A0+W6Tw4naO31KfmuVh4404Fqp79G3TEu0Xl\ngjoSFM/TdS/3QeuCMCl9v4ol8Cs1aMybSsAjdGe1UOWTetLX5cNd239CXy9o\n1gti\r\n=fphS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCq1EFJ5gpdj/gAtuMvlWrx/gGxxt2sXf3r02rgfLyuQIgN3fLLXsIoODW1d6v4ajwQ6/MikOWcxFFSj9cBcVQTdY="}]},"_npmUser":{"name":"chai","email":"chaijs@keithcirkel.co.uk"},"directories":{},"maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},{"name":"chai","email":"chaijs@keithcirkel.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pathval_1.1.1_1611656316931_0.13667452195133456"},"_hasShrinkwrap":false}},"readme":"

\n \n \"ChaiJS\"\n \n
\n pathval\n

\n\n

\n Tool for Object value retrieval given a string path for node and the browser.\n

\n\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n \n
\n \n \n \n \n \n \n

\n\n## What is pathval?\n\nPathval is a module which you can use to retrieve or set an Object's property for a given `String` path.\n\n## Installation\n\n### Node.js\n\n`pathval` is available on [npm](http://npmjs.org). To install it, type:\n\n $ npm install pathval\n\n### Browsers\n\nYou can also use it within the browser; install via npm and use the `pathval.js` file found within the download. For example:\n\n```html\n\n```\n\n## Usage\n\nThe primary export of `pathval` is an object which has the following methods:\n\n* `hasProperty(object, name)` - Checks whether an `object` has `name`d property or numeric array index.\n* `getPathInfo(object, path)` - Returns an object with info indicating the value of the `parent` of that path, the `name ` of the property we're retrieving and its `value`.\n* `getPathValue(object, path)` - Retrieves the value of a property at a given `path` inside an `object`'.\n* `setPathValue(object, path, value)` - Sets the `value` of a property at a given `path` inside an `object` and returns the object in which the property has been set.\n\n```js\nvar pathval = require('pathval');\n```\n\n#### .hasProperty(object, name)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { prop: 'a value' };\npathval.hasProperty(obj, 'prop'); // true\n```\n\n#### .getPathInfo(object, path)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { earth: { country: 'Brazil' } };\npathval.getPathInfo(obj, 'earth.country'); // { parent: { country: 'Brazil' }, name: 'country', value: 'Brazil', exists: true }\n```\n\n#### .getPathValue(object, path)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { earth: { country: 'Brazil' } };\npathval.getPathValue(obj, 'earth.country'); // 'Brazil'\n```\n\n#### .setPathValue(object, path, value)\n\n```js\nvar pathval = require('pathval');\n\nvar obj = { earth: { country: 'Brazil' } };\npathval.setPathValue(obj, 'earth.country', 'USA');\n\nobj.earth.country; // 'USA'\n```\n","maintainers":[{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},{"name":"chai","email":"chaijs@keithcirkel.co.uk"}],"time":{"modified":"2022-06-23T14:56:08.461Z","created":"2013-11-24T18:10:05.614Z","0.0.1":"2013-11-24T18:10:08.847Z","0.1.0":"2013-12-28T10:40:59.775Z","0.1.1":"2013-12-30T23:14:27.044Z","0.2.0":"2016-10-05T00:19:41.579Z","0.2.1":"2016-10-05T21:37:43.749Z","1.0.0":"2016-10-08T21:59:52.585Z","1.1.0":"2016-10-11T21:45:01.397Z","1.1.1":"2021-01-26T10:18:37.054Z"},"author":{"name":"Veselin Todorov","email":"hi@vesln.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/pathval.git"},"users":{"focusaurus":true,"justjavac":true},"homepage":"https://github.com/chaijs/pathval","bugs":{"url":"https://github.com/chaijs/pathval/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["pathval","value retrieval","chai util"]} -- cgit v1.2.3