{"versions":{"1.0.0":{"name":"@webext-core/match-patterns","version":"1.0.0","description":"Utilities for working with match patterns.","license":"MIT","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","repository":{"type":"git","url":"git+https://github.com/aklinker1/webext-core.git","directory":"packages/match-patterns"},"type":"module","publishConfig":{"access":"public"},"main":"lib/index.cjs","module":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"dependencies":{"@webcomponents/webcomponentsjs":"^2.7.0"},"devDependencies":{"@vitest/coverage-c8":"^0.24.5","jsdom":"^20.0.3","tsconfig":"0.0.0","tsup":"^6.4.0","typescript":"^4.8.4","vitest":"^0.24.5"},"scripts":{"build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^...","test":"vitest","test:coverage":"vitest run --coverage","compile":"tsc --noEmit"},"bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"_id":"@webext-core/match-patterns@1.0.0","_integrity":"sha512-WiFqWsJY/6jedH0kVgH18gBVNTy5xWbp0dEwQXVzADIymhC48aw9pCEHVPnTmHqppvK6EXIRW34hVKgJ1croeA==","_resolved":"/private/var/folders/g2/ztr_kd996gv4vv11lxwggz8c0000gn/T/3a562c8f165b4ebadd8f81c85b170a9e/webext-core-match-patterns-1.0.0.tgz","_from":"file:webext-core-match-patterns-1.0.0.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-WiFqWsJY/6jedH0kVgH18gBVNTy5xWbp0dEwQXVzADIymhC48aw9pCEHVPnTmHqppvK6EXIRW34hVKgJ1croeA==","shasum":"c49ab22d5cd846c20d19dac69d4f1b799f068c41","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@webext-core/match-patterns/-/match-patterns-1.0.0.tgz","fileCount":7,"unpackedSize":17573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDeVrTTkCrwN65fWutrjWRJ03sr1cxP1FJVftq1CvOIHAiARGZGKX+gPRUqsv2plhuGW14cRhOdrX/7iK1byONWTmQ=="}],"size":4056},"_npmUser":{"name":"anonymous","email":"aaronklinker1@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"aaronklinker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/match-patterns_1.0.0_1684597752352_0.3053639061316009"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-20T15:49:12.527Z","publish_time":1684597752527,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"@webext-core/match-patterns","version":"1.0.1","description":"Utilities for working with match patterns.","license":"MIT","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","repository":{"type":"git","url":"git+https://github.com/aklinker1/webext-core.git","directory":"packages/match-patterns"},"type":"module","publishConfig":{"access":"public"},"main":"lib/index.cjs","module":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"dependencies":{"@webcomponents/webcomponentsjs":"^2.7.0"},"devDependencies":{"@vitest/coverage-c8":"^0.24.5","jsdom":"^20.0.3","tsup":"^6.4.0","typescript":"^4.8.4","vitest":"^0.24.5","tsconfig":"0.0.0"},"scripts":{"build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^...","test":"vitest","test:coverage":"vitest run --coverage","compile":"tsc --noEmit"},"bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"_id":"@webext-core/match-patterns@1.0.1","_integrity":"sha512-huti7vdxWQ10XlkmEO/nC7gVmzAcxNRj+Kdp+HrnRzh2PY9pv5BLrjL8QXzN5EdJjxP154yr7/Q7+Z6xe0TZDA==","_resolved":"/tmp/d949cd12977131a923485cba9e922874/webext-core-match-patterns-1.0.1.tgz","_from":"file:webext-core-match-patterns-1.0.1.tgz","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-huti7vdxWQ10XlkmEO/nC7gVmzAcxNRj+Kdp+HrnRzh2PY9pv5BLrjL8QXzN5EdJjxP154yr7/Q7+Z6xe0TZDA==","shasum":"d6e9db1827e534f61c4fe2fb90a8a51944de9658","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@webext-core/match-patterns/-/match-patterns-1.0.1.tgz","fileCount":7,"unpackedSize":17566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWQJ4HYFav/yHvLpXtshH8788cU6jQY9w68ETWSb7IGgIhANoctoQW8XnajB9BOmTAIVdhPzjTAllwlfdX5GkYKQHX"}],"size":4043},"_npmUser":{"name":"anonymous","email":"aaronklinker1@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"aaronklinker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/match-patterns_1.0.1_1685214079202_0.26205910964353407"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-27T19:01:19.384Z","publish_time":1685214079384,"_source_registry_name":"default","contributors":[]},"1.0.2":{"name":"@webext-core/match-patterns","version":"1.0.2","description":"Utilities for working with match patterns.","license":"MIT","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","repository":{"type":"git","url":"git+https://github.com/aklinker1/webext-core.git","directory":"packages/match-patterns"},"type":"module","publishConfig":{"access":"public"},"main":"lib/index.cjs","module":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"dependencies":{"@webcomponents/webcomponentsjs":"^2.7.0"},"devDependencies":{"@vitest/coverage-c8":"^0.24.5","jsdom":"^20.0.3","tsup":"^6.4.0","typescript":"^4.8.4","vitest":"^0.24.5","tsconfig":"0.0.0"},"scripts":{"build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^...","test":"vitest","test:coverage":"vitest run --coverage","compile":"tsc --noEmit"},"bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"_id":"@webext-core/match-patterns@1.0.2","_integrity":"sha512-ApmXwA2HRCgt/vXaZw8NfyV3hBqsyO7wAork4qgH+AtCJW4uRxHbMruSKJ0Flh/yOGMbrbLixd3E9Yw5dmGygw==","_resolved":"/tmp/93be3fe74d394b9c16f1b0eeb2dbf111/webext-core-match-patterns-1.0.2.tgz","_from":"file:webext-core-match-patterns-1.0.2.tgz","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ApmXwA2HRCgt/vXaZw8NfyV3hBqsyO7wAork4qgH+AtCJW4uRxHbMruSKJ0Flh/yOGMbrbLixd3E9Yw5dmGygw==","shasum":"5a1b681924931207b1fb19605a613cda7ce38af2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@webext-core/match-patterns/-/match-patterns-1.0.2.tgz","fileCount":7,"unpackedSize":17812,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDguuL7Te5sFTFe9p880YTDeLe5F4CY7IgDiAwxV8dJ+AIhALv5Q4rgSeooypX3Azhq9K/VtkKgwrfhS7g4JT+stPdA"}],"size":4075},"_npmUser":{"name":"anonymous","email":"aaronklinker1@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"aaronklinker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/match-patterns_1.0.2_1695993321908_0.10786828852088126"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-29T13:15:22.145Z","publish_time":1695993322145,"_source_registry_name":"default","contributors":[]},"1.0.3":{"name":"@webext-core/match-patterns","version":"1.0.3","description":"Utilities for working with match patterns.","license":"MIT","keywords":["web-extension","browser-extension","chrome-extension","webext","web-ext","chrome","firefox","safari","browser","extension","match","pattern","content","script"],"homepage":"https://github.com/aklinker1/webext-core/tree/main/packages/match-patterns","repository":{"type":"git","url":"git+https://github.com/aklinker1/webext-core.git","directory":"packages/match-patterns"},"type":"module","publishConfig":{"access":"public"},"main":"lib/index.cjs","module":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/index.js","require":"./lib/index.cjs"}},"devDependencies":{"@vitest/coverage-c8":"^0.24.5","tsup":"^6.4.0","typescript":"^4.8.4","vitest":"^0.24.5","tsconfig":"0.0.0"},"scripts":{"build":"tsup src/index.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMatchPatterns","build:dependencies":"cd ../.. && turbo run build --filter=@webext-core/match-patterns^...","test":"vitest","test:coverage":"vitest run --coverage","compile":"tsc --noEmit"},"bugs":{"url":"https://github.com/aklinker1/webext-core/issues"},"_id":"@webext-core/match-patterns@1.0.3","_integrity":"sha512-NY39ACqCxdKBmHgw361M9pfJma8e4AZo20w9AY+5ZjIj1W2dvXC8J31G5fjfOGbulW9w4WKpT8fPooi0mLkn9A==","_resolved":"/tmp/526c9f23283d079899689de762ad6026/webext-core-match-patterns-1.0.3.tgz","_from":"file:webext-core-match-patterns-1.0.3.tgz","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NY39ACqCxdKBmHgw361M9pfJma8e4AZo20w9AY+5ZjIj1W2dvXC8J31G5fjfOGbulW9w4WKpT8fPooi0mLkn9A==","shasum":"d590e5063e21a6a83d245700dfeb5489fbd99a77","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@webext-core/match-patterns/-/match-patterns-1.0.3.tgz","fileCount":7,"unpackedSize":17716,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx32nScICJUooOZgwvlZ2ExwV+CCNrAHit0yNtLp9eAQIhALydtaL0TLvL+8CThfAotimzh8TuIEOaazEQbC/qKWEF"}],"size":4044},"_npmUser":{"name":"anonymous","email":"aaronklinker1@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"aaronklinker1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/match-patterns_1.0.3_1702743988438_0.026075857149933546"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-16T16:26:28.711Z","publish_time":1702743988711,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.3"},"name":"@webext-core/match-patterns","time":{"created":"2023-05-20T15:49:23.360Z","modified":"2023-12-16T16:26:39.685Z","1.0.0":"2023-05-20T15:49:12.527Z","1.0.1":"2023-05-27T19:01:19.384Z","1.0.2":"2023-09-29T13:15:22.145Z","1.0.3":"2023-12-16T16:26:28.711Z"},"readme":"# `@webext-core/match-patterns`\n\nUtilities for working with [match patterns](https://developer.chrome.com/docs/extensions/mv3/match_patterns/).\n\n```bash\npnpm i @webext-core/match-patterns\n```\n\n```ts\nimport { MatchPattern } from '@webext-core/match-patterns';\n\nconst pattern = MatchPattern('*://*.google.com/*');\n\npattern.includes('http://google.com/search?q=test'); // true\npattern.includes('https://accounts.google.com'); // true\npattern.includes('https://youtube.com/watch'); // false\n```\n\n## Get Started\n\nSee [documentation](https://webext-core.aklinker1.io/guide/match-patterns/) to get started!\n\n### Supported Protocols\n\nNot all protocols are supported. Open a PR to add support.\n\n- [x] `<all_urls>`\n- [x] `https` protocol\n- [x] `http` protocol\n- [ ] `file` protocol\n- [ ] `ftp` protocol\n- [ ] `urn` protocol","users":{}}