{"_id":"cypress-url-parameters","_rev":"39-f20242bd019548d1022f92407e850c68","name":"cypress-url-parameters","description":"Adds URL parameter support for Cypress","dist-tags":{"latest":"1.0.22"},"versions":{"1.0.18":{"name":"cypress-url-parameters","version":"1.0.18","keywords":["url","cypress","parameters"],"author":{"name":"Jordan Mace","email":"jordz98@gmail.com"},"license":"MIT","_id":"cypress-url-parameters@1.0.18","maintainers":[{"name":"jmace","email":"jordz98@gmail.com"}],"homepage":"https://github.com/jordan-mace/cypress-url-parameters#readme","bugs":{"url":"https://github.com/jordan-mace/cypress-url-parameters/issues"},"dist":{"shasum":"658ca8cbca1db69be38d546b211bebcad08d16ca","tarball":"https://registry.npmjs.org/cypress-url-parameters/-/cypress-url-parameters-1.0.18.tgz","fileCount":14,"integrity":"sha512-eJZPMFufHAdgEgJMzIs2wEnvGCMw8RcgZBInQKX5qOyT3SrcFphrpcebaCtho2BVAqbOQvNdtffar+KUBEQ+YA==","signatures":[{"sig":"MEUCIFIf6v3g+n7R+8vsuf9ZDDpHavsKs1XUyVepErGPb+9UAiEA+aigtDJ+nTrwbkXEGExkOQSf3QVprHGdPvCak4ukbk8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13286},"main":"./lib/index.js","types":"index.d.ts","gitHead":"2928961afe5e190f1f3fd70c19ef09882f7af37d","scripts":{"test":"jest","typescript":"tsc --project ./tsconfig.json","semantic-release":"semantic-release"},"_npmUser":{"name":"jmace","email":"jordz98@gmail.com"},"repository":{"url":"git+https://github.com/jordan-mace/cypress-url-parameters.git","type":"git"},"_npmVersion":"10.8.0","description":"Adds URL parameter support for Cypress","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","cypress":"^13.10.0","ts-jest":"^29.1.4","typescript":"^5.4.5","@types/jest":"^29.5.12","semantic-release":"^23.1.1","@semantic-release/npm":"^12.0.1","jest-environment-jsdom":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-url-parameters_1.0.18_1716981067490_0.9778548884714968","host":"s3://npm-registry-packages"}},"1.0.19":{"name":"cypress-url-parameters","version":"1.0.19","keywords":["url","cypress","parameters"],"author":{"name":"Jordan Mace","email":"jordz98@gmail.com"},"license":"MIT","_id":"cypress-url-parameters@1.0.19","maintainers":[{"name":"jmace","email":"jordz98@gmail.com"}],"homepage":"https://github.com/jordan-mace/cypress-url-parameters#readme","bugs":{"url":"https://github.com/jordan-mace/cypress-url-parameters/issues"},"dist":{"shasum":"652673ab3d6bd6132d8d10d6b88d9a20a7880cb2","tarball":"https://registry.npmjs.org/cypress-url-parameters/-/cypress-url-parameters-1.0.19.tgz","fileCount":20,"integrity":"sha512-K5PgqjHxgKovAcOMUUe6XPFiAIa8hv+oNyJBdMmhp9B2Fbo6MiIrlaoJpCX4+m3ytKqRogunGwtA7j3KsJnXUQ==","signatures":[{"sig":"MEUCICs/eXDxkhHmnOY52/Y4y4PjNs4dwjj6YuI7oL55E9U6AiEA0Wmx3pe/FBITdwMOMOGoq7PngSj53fYRIUClbz6zJjA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15997},"main":"./lib/index.js","types":"index.d.ts","gitHead":"3591cb4069a4d5a6dba55a681929a77196b27135","scripts":{"test":"jest","typescript":"tsc --project ./tsconfig.json","semantic-release":"semantic-release"},"_npmUser":{"name":"jmace","email":"jordz98@gmail.com"},"repository":{"url":"git+https://github.com/jordan-mace/cypress-url-parameters.git","type":"git"},"_npmVersion":"10.5.2","description":"Adds URL parameter support for Cypress","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","cypress":"^13.10.0","ts-jest":"^29.1.4","babel-jest":"^29.7.0","typescript":"^5.4.5","@types/jest":"^29.5.12","semantic-release":"^23.1.1","@babel/preset-env":"^7.24.6","@semantic-release/npm":"^12.0.1","jest-environment-jsdom":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-url-parameters_1.0.19_1716983704612_0.4313850357884723","host":"s3://npm-registry-packages"}},"1.0.20":{"name":"cypress-url-parameters","version":"1.0.20","keywords":["url","cypress","parameters"],"author":{"name":"Jordan Mace","email":"jordz98@gmail.com"},"license":"MIT","_id":"cypress-url-parameters@1.0.20","maintainers":[{"name":"jmace","email":"jordz98@gmail.com"}],"homepage":"https://github.com/jordan-mace/cypress-url-parameters#readme","bugs":{"url":"https://github.com/jordan-mace/cypress-url-parameters/issues"},"dist":{"shasum":"3052ebee4ab37f77b9e8cd43be3e5bf2a7938821","tarball":"https://registry.npmjs.org/cypress-url-parameters/-/cypress-url-parameters-1.0.20.tgz","fileCount":12,"integrity":"sha512-D8opnjPxz/2bBdxtiGnHuzDkZsjhZdEWdL21YgEZ92NomP++8kYZNYi+EDpkyF4WNFBf8d4we0OJStUHO4wzZg==","signatures":[{"sig":"MEUCIQCWDnI0+/CpOjDTULD4lJ+j2JBXU2CU4nRDkSCPh704wQIgCRRrdCtgZuVhGFRsmL05eRAZzACtNZeGHK3jGQYjFXk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6607},"main":"./lib/index.js","types":"index.d.ts","gitHead":"874d8747afaf2a21b5ec6addba889a8fe8dcbf06","scripts":{"test":"jest","cy:run":"cypress run","cy:open":"cypress open","typescript":"tsc --project ./tsconfig.json","semantic-release":"semantic-release"},"_npmUser":{"name":"jmace","email":"jordz98@gmail.com"},"repository":{"url":"git+https://github.com/jordan-mace/cypress-url-parameters.git","type":"git"},"_npmVersion":"10.8.0","description":"Adds URL parameter support for Cypress","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","cypress":"^13.10.0","ts-jest":"^29.1.4","babel-jest":"^29.7.0","typescript":"^5.4.5","@types/jest":"^29.5.12","semantic-release":"^23.1.1","@babel/preset-env":"^7.24.6","@semantic-release/npm":"^12.0.1","jest-environment-jsdom":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-url-parameters_1.0.20_1717029630450_0.25822971874702594","host":"s3://npm-registry-packages"}},"1.0.22":{"name":"cypress-url-parameters","version":"1.0.22","description":"Adds URL parameter support for Cypress","main":"./lib/index.js","scripts":{"test":"jest","cy:open":"cypress open","cy:run":"cypress run","typescript":"tsc --project ./tsconfig.json","semantic-release":"semantic-release"},"types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/jordan-mace/cypress-url-parameters.git"},"keywords":["url","cypress","parameters"],"author":{"name":"Jordan Mace","email":"jordz98@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jordan-mace/cypress-url-parameters/issues"},"homepage":"https://github.com/jordan-mace/cypress-url-parameters#readme","devDependencies":{"@babel/preset-env":"^7.24.6","@semantic-release/npm":"^12.0.1","@types/jest":"^29.5.12","babel-jest":"^29.7.0","cypress":"^13.10.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","semantic-release":"^23.1.1","semantic-release-npm-github-publish":"^1.5.5","ts-jest":"^29.1.4","typescript":"^5.4.5"},"_id":"cypress-url-parameters@1.0.22","gitHead":"9d42d81c77857fa07d9acab75eb4fdbf2672f793","_nodeVersion":"20.13.1","_npmVersion":"10.8.0","dist":{"integrity":"sha512-jINJuFaQKhcPsx3czPX7hCwpt89lZOytoSiNlZErgJQovP54E+cDBnbLqEJA3UgWT8/Y/ApW8dCHcLKL5HTLTA==","shasum":"1d53dd5dbf03036f43bd4e32a6e520978cc9c20f","tarball":"https://registry.npmjs.org/cypress-url-parameters/-/cypress-url-parameters-1.0.22.tgz","fileCount":12,"unpackedSize":6660,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4yGzHGVHjp8Kkl0MYjN6Cmh0nnq6o/4MAoCj9y5yqxwIgTQMJ/yNkuXDqUO9XTRrgoluSK9hk8VImtU4M36HPuNk="}]},"_npmUser":{"name":"jmace","email":"jordz98@gmail.com"},"directories":{},"maintainers":[{"name":"jmace","email":"jordz98@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-url-parameters_1.0.22_1717030710116_0.6318435079155253"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-28T07:23:57.930Z","modified":"2024-05-30T00:58:30.421Z","1.0.0":"2024-05-28T07:23:58.112Z","1.0.1":"2024-05-28T07:41:28.321Z","1.0.2":"2024-05-28T07:44:07.990Z","1.0.3":"2024-05-28T08:04:59.893Z","1.0.4":"2024-05-28T08:16:39.247Z","1.0.5":"2024-05-28T08:19:29.574Z","1.0.6":"2024-05-28T08:35:35.701Z","1.0.7":"2024-05-28T08:39:57.952Z","1.0.8":"2024-05-28T08:46:08.810Z","1.0.9":"2024-05-28T08:53:25.880Z","1.0.10":"2024-05-28T09:20:33.799Z","1.0.11":"2024-05-28T10:13:52.506Z","1.0.12":"2024-05-28T10:18:18.961Z","1.0.13":"2024-05-28T10:21:00.948Z","1.0.14":"2024-05-28T10:22:13.532Z","1.0.15":"2024-05-28T10:24:27.686Z","1.0.16":"2024-05-28T10:28:14.898Z","1.0.17":"2024-05-28T10:31:16.655Z","1.0.18":"2024-05-29T11:11:07.658Z","1.0.19":"2024-05-29T11:55:04.819Z","1.0.20":"2024-05-30T00:40:30.618Z","1.0.22":"2024-05-30T00:58:30.267Z"},"maintainers":[{"name":"jmace","email":"jordz98@gmail.com"}],"author":{"name":"Jordan Mace","email":"jordz98@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/jordan-mace/cypress-url-parameters.git"},"keywords":["url","cypress","parameters"],"license":"MIT","homepage":"https://github.com/jordan-mace/cypress-url-parameters#readme","bugs":{"url":"https://github.com/jordan-mace/cypress-url-parameters/issues"},"readme":"<p align=\"center\">\n  <h1 align=\"center\">cypress-url-parameters</h1>\n<p align=\"center\">\nAdds dynamic URL parameter support to Cypress</a>.\n</p>\n<p align=\"center\">\n   <a href=\"https://github.com/jordan-mace/cypress-url-parameters/tags/\"><img src=\"https://img.shields.io/github/tag/jordan-mace/cypress-url-parameters\" alt=\"cypress-url-parameters versions\" /></a>\n   <a href=\"https://www.npmjs.com/package/cypress-url-parameters\"><img alt=\"cypress-url-parameters available on NPM\" src=\"https://img.shields.io/npm/dy/cypress-url-parameters\"></a>\n   <img src=\"https://github.com/jordan-mace/cypress-url-parameters/workflows/Test/badge.svg\" alt=\"Current test status\" />\n   <a href=\"http://makeapullrequest.com\"><img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"PRs are welcome\" /></a>\n   <a href=\"https://github.com/jordan-mace/cypress-url-parameters/issues/\"><img src=\"https://img.shields.io/github/issues/jordan-mace/cypress-url-parameters\" alt=\"cypress-url-parameters issues\" /></a>\n</p>\n\n## Purpose\nThis project came about as essentially a fix to an issue I've been having on work projects. Cypress tests that are scattered across multiple test files all making calls to `visit` to navigate needed a way to easily add something like `?environment=test`\n\nThis package aims to fix that problem, by overwriting the `visit` command and appending each parameter added to a Cypress env variable onto the end of the url prior to Cypress navigating.\n\n## Usage\nTo add a parameter, use `cy.setParameter`. All subsequent `visit` calls will honor the query parameter.\n```\nimport 'cypress-url-parameters'\n\ncy.setParameter('token', 'XXXXX')\ncy.visit('https://example.cypress.io/');\n```\n\nIf you need to update a parameter, simple use `setParameter` with the same parameter name and your new value.\n\nTo remove a parameter, use `removeParameter`\n```\nimport 'cypress-url-parameters'\n\ncy.setParameter('token', 'XXXXX');\ncy.visit('https://example.cypress.io/');\n\ncy.removeParameter('token');\ncy.visit('https://example.cypress.io/');\n```","readmeFilename":"README.md"}