{"_id":"openapi-path-templating","_rev":"21-1135441e508a70b6123452ea5a6c6b20","name":"openapi-path-templating","dist-tags":{"latest":"2.3.0"},"versions":{"1.0.0":{"name":"openapi-path-templating","version":"1.0.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.0.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"ccdd56569964735320dad4c17d2662f17736ae94","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.0.0.tgz","fileCount":15,"integrity":"sha512-66PdACQg+9LSSgcMoV4+z55cxgCHksYssHaO48lPqBvvNQN2JAAUhTEfEc3HzcklEeWtcFJIEIBSeAXdFXJ8dQ==","signatures":[{"sig":"MEUCIQChXE/nlXGSLKDh4VbKTGR+9V4afUG4dYZgUbPJ87sE8AIgHiKqSiCBPSsm9aBneRU99gI51ZRSTVGVNYy4ZWNTsio=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34212},"type":"module","engines":{"node":">=14.16"},"exports":{".":"./src/index.js","./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"ac0b4c4fb61f149610260fedef7c0e24f397dc29","scripts":{"test":"mocha","grammar:compile":"./node_modules/apg-js/bin/apg.sh --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src && mv path-templating.js path-templating.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-js":"^4.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=4.3.10","husky":"=8.0.3","mocha":"=10.1.0","@commitlint/cli":"=18.4.3","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.0.0_1702304226973_0.426295212161536","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"openapi-path-templating","version":"1.0.1","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.0.1","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"40b5bafc684927038f01c0685c8cc998ef2ba120","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.0.1.tgz","fileCount":15,"integrity":"sha512-xNuoIEB2+X1XFxeVjHOvx4h7JARPji1ZKlFESAFbxoWjXHZAvYeImSWbIObKT5VugHpbFk4WCy8tj/ON/XQkEQ==","signatures":[{"sig":"MEUCIGbDGPx6iOpnanqBEp3oZGqpoDysNm7OyrjpjdqpOjSCAiEAssnobf0mrPiTi1YKV8rHJN4yl7VKCR/Dx7vbnC6XgNc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34221},"type":"module","engines":{"node":">=14.16"},"exports":{".":"./src/index.js","./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"5d8d8c92da1876ac9452e892ead7feeae0147fc9","scripts":{"test":"mocha","grammar:compile":"./node_modules/apg-js/bin/apg.sh --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src && mv path-templating.js path-templating.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-js":"^4.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=4.3.10","husky":"=8.0.3","mocha":"=10.2.0","@commitlint/cli":"=18.4.3","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.0.1_1702370424670_0.7693550466186654","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"openapi-path-templating","version":"1.1.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.1.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"99ac4aaebcb0be98eb3b8538d250a65082ad0ff5","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.1.0.tgz","fileCount":15,"integrity":"sha512-YMIzjxlrj3VgLZILQ04jCalsOTaA8H31ijmSwM49ZHmAF5qJ+v6TVe2t3bhxS9Jqq4kMpb8E9gFQ9yPyNdWtBg==","signatures":[{"sig":"MEYCIQC3ry2Tbj5xEI6BkMKd77ynxbgV/FruspjhCBvoz4XYBAIhAMgFSmPHfgl1HRQhIUgeGyx5GkLF9UEQlJxQfkieftbJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34259},"type":"module","engines":{"node":">=14.16"},"exports":{".":"./src/index.js","./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"ffc8d10920af3af0dcc86bbb571a795d5ada248a","scripts":{"test":"mocha","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=4.3.10","husky":"=8.0.3","mocha":"=10.2.0","apg-js":"^4.3.0","@commitlint/cli":"=18.4.3","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.1.0_1702457698070_0.9349903016815526","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"openapi-path-templating","version":"1.2.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.2.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"4bb06bbd6b451018d927a08cade80717a27ea24f","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.2.0.tgz","fileCount":25,"integrity":"sha512-m1f9ws9Zn/1CjaBPxECzLmtaTyFwO79eL53pgHUmjCBJQShtVo3vhM0yGOyPF3dxsQ0FYrX+zfflkvaw4+PlNg==","signatures":[{"sig":"MEUCIBKAJAG0X271YJMy4kf0l9wMjUR9J5ENEmIYfttvNy5EAiEAyrKkjqdCGLQvdLOxcl0UroHKECtNQQn4dA/wP5d7Q1g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88467},"type":"module","types":"./types/index.d.ts","engines":{"node":">=14.16"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"839c7df4602392c86255e73e3194c177b097dcda","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=4.3.10","husky":"=8.0.3","mocha":"=10.2.0","apg-js":"^4.3.0","cross-env":"^7.0.3","@babel/cli":"=7.23.4","@babel/core":"=7.23.6","@commitlint/cli":"=18.4.3","@babel/preset-env":"=7.23.6","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.2.0_1702464710139_0.6254149181667261","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"openapi-path-templating","version":"1.2.1","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.2.1","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"edbeeb68a2cd28996ff76d0c13f597216887a66f","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.2.1.tgz","fileCount":25,"integrity":"sha512-ZvfVSw8p8kaK1A2lgeC5KcacPkSFUdTJPYWjRtyOTkJf1AQflxAqAqUMNZ0wGLSNfQMxJkdVpFER1pgMyqXckg==","signatures":[{"sig":"MEUCIBGh1cv6BPBlfVFzTRf0qnY7gbiLrvH9fBAqSBG0GcckAiEAuCQPPmo7UCNtQoo2kYB09iNCc7XIddIcQt75VYf88EU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88434},"type":"module","types":"./types/index.d.ts","engines":{"node":">=14.16"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"64d0e0030270aa9ee9ac0f39d6d61dd07e58492c","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=4.3.10","husky":"=8.0.3","mocha":"=10.2.0","apg-js":"^4.3.0","cross-env":"^7.0.3","@babel/cli":"=7.23.4","@babel/core":"=7.23.6","@commitlint/cli":"=18.4.3","@babel/preset-env":"=7.23.6","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.2.1_1702880283850_0.02975533196075486","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"openapi-path-templating","version":"1.3.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.3.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"4e3bbad2a28f27f3be043c1ca5bd9170501fa8b2","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.3.0.tgz","fileCount":35,"integrity":"sha512-nXA8Y5jvZc8mSxDNgy8ov4BQayshc2G6ZDThMOtghbQS5iOUq1lukOTVzvnFMcyl7fithDgvyuA+V8O0W/CASw==","signatures":[{"sig":"MEYCIQCt4/1SK0RjxxkX/fivpnJ7S+ee9vX6atIxTjMcRLm3eAIhAMMvL1i7Zj9xRSkQ77njrIGyAeim1DpVPvnlfNKUbxfu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":104008},"type":"module","types":"./types/index.d.ts","engines":{"node":">=14.16"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"2bc98cef03dc53ed4210b65840a2a71eae3014af","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.2","prettier":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=4.3.10","husky":"=8.0.3","mocha":"=10.2.0","apg-js":"^4.3.0","cross-env":"^7.0.3","@babel/cli":"=7.23.4","@babel/core":"=7.23.6","@commitlint/cli":"=18.4.3","@babel/preset-env":"=7.23.6","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.3.0_1702897281294_0.6849736037872387","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"openapi-path-templating","version":"1.4.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.4.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"c52a9d9bd0c350a16cd6acd7e6b7f5a7b5037c9d","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.4.0.tgz","fileCount":39,"integrity":"sha512-Yves8IYEtqwhvjoMQx3LFjnA69sh/r61r2yJlEUmPlhCemh2EVuTPDdwfNOqbHV8Fl1hg1qaLWQ4xzCMIX7wPw==","signatures":[{"sig":"MEYCIQCqc2jYIJFQzWXEuuqToC4CIxl2OLVUHOF1TPpD7/yBvgIhAPCVmHC1f9/Pib84JjZTsig22aMg72HK8Vijq/xeJxVw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110134},"type":"module","types":"./types/index.d.ts","engines":{"node":">=14.16"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"0af62f62de4fc3016bd107451e38a4b322aff522","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.2","prettier":"^3.1.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.0.0","husky":"=8.0.3","mocha":"=10.2.0","apg-js":"^4.3.0","cross-env":"^7.0.3","@babel/cli":"=7.23.4","@babel/core":"=7.23.7","@commitlint/cli":"=18.4.3","@babel/preset-env":"=7.23.7","@commitlint/config-conventional":"=18.4.3"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.4.0_1704196774992_0.23005103842365182","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"openapi-path-templating","version":"1.5.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.5.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"0b8d6f8a4672b6818e27a08bbd44f30e0c2ccc8f","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.5.0.tgz","fileCount":37,"integrity":"sha512-CETC/tMiElOfZSj9jcViJALE2Bbio5fKlepFzhddQvJrGcpadgqw3tAeaM2SpPqVfyLOGUwesoYlfUOFLhjAHQ==","signatures":[{"sig":"MEYCIQD7eW5G9izTRB0AGPvqxkzWQRGwG57p3JApqRQPkfRKOQIhAJj7ehlsYdI7r2RqkqXNwE4nOjIDT6KwL1zqoIZPPKYl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111213},"type":"module","types":"./types/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"c128ea0a82c1fe05a8515cb88958cc9802f4213d","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.0","husky":"=9.0.11","mocha":"=10.4.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","@babel/cli":"=7.24.5","@babel/core":"=7.24.5","@commitlint/cli":"=19.3.0","@babel/preset-env":"=7.24.5","@commitlint/config-conventional":"=19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.5.0_1715170391104_0.33068864540589615","host":"s3://npm-registry-packages"}},"1.5.1":{"name":"openapi-path-templating","version":"1.5.1","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.5.1","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"b7c637b0b5945110628e0082d2dd372d40cacc1d","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.5.1.tgz","fileCount":37,"integrity":"sha512-kgRHToVP571U1YzUnaZnWaUIygon2itg5g96kwaFIi8bnpsw4oXYOk7k59Ivn+ley1iQnMENe/1HSovpPVZuXA==","signatures":[{"sig":"MEYCIQDQpCObKNOL0xb2fGkS1CisbBHyotZUZ0JB1/kIy8WSGAIhAIczoF9r8PCdvC6LndEBXgEd2OMGlRIq7YB2pNsZtYgj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111405},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"aca762c6f9e6b18905426a20891d8d3f85bb1ce7","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"9.8.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.5.0","dependencies":{"apg-lite":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.0","husky":"=9.0.11","mocha":"=10.4.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","@babel/cli":"=7.24.5","@babel/core":"=7.24.5","@commitlint/cli":"=19.3.0","@babel/preset-env":"=7.24.5","@commitlint/config-conventional":"=19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.5.1_1715174362602_0.5728525924100052","host":"s3://npm-registry-packages"}},"1.5.2":{"name":"openapi-path-templating","version":"1.5.2","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.5.2","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"f71524168c32f3e472cd5a881b38719fd0f4921d","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.5.2.tgz","fileCount":37,"integrity":"sha512-1dIgHUJjgxgl9JigUp6pilr53cRTVutbyPVIU45OokeCKRUNLt4mXV1l919wECYy9tr4yP7dDcQlfvzuwdWiyQ==","signatures":[{"sig":"MEUCIEA0pBTx9bTImEK+TeTu+9028wWUgaWBQedPaPfVGYJIAiEA7ne/4+nKMoVyH5g4KdL3eCDMKb3Xxp5GC1o43oXoVrA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110450},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"9aa442cabef7845e4edec2bc89dc82491bc75009","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"10.1.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.8.1","dependencies":{"apg-lite":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.1","husky":"=9.0.11","mocha":"=10.4.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","@babel/cli":"=7.24.6","@babel/core":"=7.24.6","@commitlint/cli":"=19.3.0","@babel/preset-env":"=7.24.6","@commitlint/config-conventional":"=19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.5.2_1717570983579_0.6620848850838499","host":"s3://npm-registry-packages"}},"1.5.3":{"name":"openapi-path-templating","version":"1.5.3","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.5.3","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/char0n/openapi-path-templating#readme","bugs":{"url":"https://github.com/char0n/openapi-path-templating/issues"},"dist":{"shasum":"dff908673561ce0ccdca0dc6e36504f8098364b8","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.5.3.tgz","fileCount":37,"integrity":"sha512-NPL+3w4NsBmqTzCQGQbSUHTAUYM/ubm3tH9BWe77uvGyA8L32L73w+w7zhBCsql0zp+gqGvglaHdQTpWx/tzmA==","signatures":[{"sig":"MEUCIQCKU5/y3+W//awsHpVeo6Jfwg3gPvQbCmeByj0iyEtuOgIgOzwp4+nil0kjKZGwPd3Iqx+UoDbn1sgN1jhYxg+7BJc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110531},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"13786cbee9e809d2d20c991109147807aeccb6da","imports":{"#apg-lite":{"import":"apg-lite","default":"apg-lite","require":"./cjs/apg-lite.cjs"}},"scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/char0n/openapi-path-templating.git","type":"git"},"_npmVersion":"10.1.0","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.8.1","dependencies":{"apg-lite":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.1","husky":"=9.0.11","mocha":"=10.4.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","@babel/cli":"=7.24.7","@babel/core":"=7.24.7","@commitlint/cli":"=19.3.0","@babel/preset-env":"=7.24.7","@commitlint/config-conventional":"=19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.5.3_1717660284887_0.8138609248644093","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"openapi-path-templating","version":"1.6.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.6.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"c81f182db71de88890cb497faa367c9b900dd6c5","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.6.0.tgz","fileCount":37,"integrity":"sha512-1atBNwOUrZXthTvlvvX8k8ovFEF3iA8mDidYMkdOtvVdndBhTrspbwGXNOzEUaJhm9iUl4Tf5uQaeTLAJvwPig==","signatures":[{"sig":"MEQCIEKSUQkkxxQP6IGAEx0JWDmjDDvyu9hb4FhaorzNiaFkAiB3xCQFeYoCvqBF+Ba37A6XH+jpvYgHObXt7/6Mkyol5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110571},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"f7cbd3047941210567d1e495888487da00f789a9","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","prepublishOnly":"npm run build","grammar:compile":"./node_modules/apg-js/bin/apg.sh --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.5.2","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"apg-lite":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.1","husky":"=9.0.11","mocha":"=10.4.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","@babel/cli":"=7.24.7","@babel/core":"=7.24.7","@commitlint/cli":"=19.3.0","@babel/preset-env":"=7.24.7","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.6.0_1718394062161_0.9858793969754953","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"openapi-path-templating","version":"1.7.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@1.7.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"3dd83895c94720a1ce311f9eaff87f5c714887ce","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-1.7.0.tgz","fileCount":37,"integrity":"sha512-PYYQdf4VRpzpXKMkV6qJK9eI6BO/dsE3i+8dYaaM7MFaL8jxK8xTXm+FS0M3GYobaFPYsMlPhZ0vTUJaKvXx/Q==","signatures":[{"sig":"MEQCIBrisZ7F/ICB7czChn/5qGd8Z2KrZxqHs5sIa4lFBPBoAiA/GI1g39+IDllxYr45VX71PTdQOFT7gY49MR/EOIbZ5Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":112087},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"28683379a8dfc32cabc8e7fd1163619695e1e4e7","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.2","husky":"=9.1.7","mocha":"=11.0.1","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.0","@commitlint/cli":"=19.6.0","@babel/preset-env":"=7.26.0","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.6.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_1.7.0_1734207058144_0.21121272051486462","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"openapi-path-templating","version":"2.0.0","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.0.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"dc88203bd7bdf672bca1a8a2c0b45a5440803c40","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.0.0.tgz","fileCount":27,"integrity":"sha512-OfsbUZsemxdQNh82JfEaG22Vx+5trFooke7ja/9KY7FesBvfe051Shsxo1ZZwl95g22K+bBhNKOE9lU2dUoF9Q==","signatures":[{"sig":"MEYCIQDK3Ew5eN+ioyJEzTXLw3+Q14rOKZPk3vFZ7gNScCLyLAIhALwqvAWOlccfpzrKBB7KfUYXOC43xeKXn2ENl0PTQUPb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":97427},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"15fa4c9e24305b5b8ce98971c9603fdb3f261f16","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.2","husky":"=9.1.7","mocha":"=11.0.1","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.0","@commitlint/cli":"=19.6.1","@babel/preset-env":"=7.26.0","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.6.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.0.0_1735023934888_0.6921768791309018","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"openapi-path-templating","version":"2.0.1","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.0.1","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"4ef4a11447cdfc12dced0a1ed0672bed22ba2df1","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.0.1.tgz","fileCount":27,"integrity":"sha512-65TeAgRU9nl7ZZHJRKmfNLfPSXSG+BFc514rMTLotfkVBTUsmuCOo6XhgLUrDoPEuCIl0LJ38IKgvZK4mYGJeQ==","signatures":[{"sig":"MEUCIQDwaYsMHqefJVzN2SFGVyyku7Wv/UtavV0EB5Rs27Ov8gIgcSbkaqv6D9d+RjcID2vFQk8RxCzXMxl+ONMvUEcuXR4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":97427},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"36306dc0bfe54c86f0706b92982a6589c002a604","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.2","husky":"=9.1.7","mocha":"=11.0.1","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.0","@commitlint/cli":"=19.6.1","@babel/preset-env":"=7.26.0","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.6.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.0.1_1735126170200_0.29738193289702397","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"openapi-path-templating","version":"2.0.2","keywords":["openapi","path","templating","parser","validator","resolver"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.0.2","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"f0ca54b6f03d802109f4fa09c7621a71a701a89e","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.0.2.tgz","fileCount":27,"integrity":"sha512-IzwJMikSotOU5XJjPqgyvlYAa9INWf3wf0PpKGe+Vg7kdAnVIrlZ95ddQry8vwkKRQ36XBLmNaMGGdvsvRzZcA==","signatures":[{"sig":"MEUCIQD2HTnrgOoiB3wgoSP/7ICjSrVaCkbRBBEcj6p8wA3HGQIgdF/iAua1dhOFgw3+hx4iwN1iOc5cPsvXr/PZZsWqgKg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98300},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"8f3dfbb8ed4cac2561f72369a06ddc438dddb4a6","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator and resolver.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.2","husky":"=9.1.7","mocha":"=11.0.1","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.0","@commitlint/cli":"=19.6.1","@babel/preset-env":"=7.26.0","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.6.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.0.2_1735479040889_0.28984256414288123","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"openapi-path-templating","version":"2.1.0","keywords":["openapi","path","templating","parser","validator","resolver","matcher","matching"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.1.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"cffdbca552d8ba41321667868ec6ddf5ff68db0e","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.1.0.tgz","fileCount":29,"integrity":"sha512-fLs5eJmLyU8wPRz+JSH5uLE7TE4Ohg6VHOtj0C0AlD3GTCCcw2LgKW6MSN1A8ZBKHEg2O4/d02knmVU1nvGAKQ==","signatures":[{"sig":"MEUCIQCRTIzUadLpTeAlYJubHcdpFOe1JfjF5aIt4bg2kvxt5QIgVnXn0XrD1S5F1wHp9Xif1vvUqHs67DJ5RzOjAlsZ6lA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101468},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"817de63ac7f1c0db7f7fba45733a2013a8112136","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator, resolver and matcher.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.1.2","husky":"=9.1.7","mocha":"=11.0.1","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.0","@commitlint/cli":"=19.6.1","@babel/preset-env":"=7.26.0","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.6.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.1.0_1735656823766_0.08415447498399109","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"openapi-path-templating","version":"2.1.1","keywords":["openapi","path","templating","parser","validator","resolver","matcher","matching"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.1.1","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"e39377a2362a07f8b47c9b5452a8641f6f01076e","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.1.1.tgz","fileCount":29,"integrity":"sha512-nv9S9865cmJWY1E+MkUUSdxscVrsqqehYh7tRpkfj+0+HUI+w390c+DUBK1cS9n2d9TypzWPmhsBHFcqc1lp9w==","signatures":[{"sig":"MEUCIQDSUN8oLOuBEyFezq77ZjAWU1OLUYaGWwo4dAOMKnjoygIgPSfAJXFxQ5w2TB2R1vIIbAx4QHP4QmoqGfwJVxWw+ZU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101514},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"5e380072c57cd6297c78ff72506140d348bea22d","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator, resolver and matcher.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.2.0","husky":"=9.1.7","mocha":"=11.1.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.9","@commitlint/cli":"=19.8.0","@babel/preset-env":"=7.26.9","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.8.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.1.1_1741527016464_0.4819731525645681","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"openapi-path-templating","version":"2.2.0","keywords":["openapi","path","templating","parser","validator","resolver","matcher","matching"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.2.0","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"9e6393a57ec39054e54c325347ffd016b3c0d6e9","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.2.0.tgz","fileCount":39,"integrity":"sha512-XXH/68nO3Y4Kq2eKCy1/706QnpAnDaE3O/VK30V/QtJyK1cyMCJ4xKEeJx+ZtvNTh/rxUNbloHCBw+nIpR8RlA==","signatures":[{"sig":"MEUCIDNTaO9DAaCxS908u82QhoNvGGdHgGOMlN/o9E8lTf/nAiEA43UFfF3djXu2MZEs776tOcm/zT/F/qX6f+s3kEdr0fc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118422},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json","./path-templating.bnf":"./src/path-templating.bnf"},"gitHead":"ad21b00a791884865059fe8e9389f0be64098106","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator, resolver and matcher.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.2.0","husky":"=9.1.7","mocha":"=11.1.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.9","@commitlint/cli":"=19.8.0","@babel/preset-env":"=7.26.9","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.8.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.2.0_1741555403480_0.2766351916620642","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"openapi-path-templating","version":"2.2.1","keywords":["openapi","path","templating","parser","validator","resolver","matcher","matching"],"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","_id":"openapi-path-templating@2.2.1","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"57026767530667096d33d7362382a93d75d497f6","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.2.1.tgz","fileCount":39,"integrity":"sha512-eN14VrDvl/YyGxxrkGOHkVkWEoPyhyeydOUrbvjoz8K5eIGgELASwN1eqFOJ2CTQMGCy2EntOK1KdtJ8ZMekcg==","signatures":[{"sig":"MEUCIDXpTj8umQzu545/HEJhP1s+COJxAbpHGOUiKZvKkU/+AiEA/jBV3UuroRHTZcORXitLfos/WfR2jtQy5pGQfASh1Ts=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118364},"main":"./cjs/index.cjs","type":"module","types":"./types/index.d.ts","watch":{"test":"{src,test}/*.js"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"gitHead":"f313031c0d7add850b4053f858515a7195832823","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/path-templating.bnf --out=./src/path-templating.js && cd ./src","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"_npmUser":{"name":"char0n","email":"vladimir.gorej@gmail.com"},"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"10.8.2","description":"OpenAPI Path Templating parser, validator, resolver and matcher.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"apg-lite":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"=5.2.0","husky":"=9.1.7","mocha":"=11.1.0","apg-js":"^4.4.0","prettier":"^3.1.1","cross-env":"^7.0.3","npm-watch":"^0.13.0","@babel/cli":"=7.26.4","@babel/core":"=7.26.9","@commitlint/cli":"=19.8.0","@babel/preset-env":"=7.26.9","babel-plugin-module-resolver":"^5.0.2","@commitlint/config-conventional":"=19.8.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-path-templating_2.2.1_1741555651486_0.6882859080876931","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"_id":"openapi-path-templating@2.3.0","bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"dist":{"shasum":"a4f47db15c128ebb7f230aee6c8827f56fd3b969","tarball":"https://registry.npmjs.org/openapi-path-templating/-/openapi-path-templating-2.3.0.tgz","fileCount":75,"integrity":"sha512-rjqLJDhInqH2ZqD76oTfc2Ufc3BoKY7+E0AB3POH39E6ltsaWS5zLSiwflQi9NtFQqEUYzwWrzUjX1BIYpNpBQ==","signatures":[{"sig":"MEUCIQCHU8Knm4fMwJneJpi1oV/CxMDqLYxvJLu/AYOHE0Iw5wIgVKQec7IJckGLMkCt8Gc75CyWpaLRUJNF2BPh5z3w7aM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGdYD1ogRPVAmqlepIufGtTndkNVMV6mqYCb0KmEUphpAiEAh/bCqRFFpH8979qbBOqBcPYFghJwZYuhsFjF+cPSWF0="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/openapi-path-templating@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":435132},"main":"./cjs/index.cjs","name":"openapi-path-templating","type":"module","_from":"file:dist/openapi-path-templating-2.3.0.tgz","types":"./types/index.d.ts","unpkg":"./dist/openapi-path-templating.browser.min.js","watch":{"test":"{src,test}/*.js"},"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"engines":{"node":">=12.20.0"},"exports":{".":{"types":"./types/index.d.ts","import":"./es/index.mjs","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"license":"Apache-2.0","scripts":{"test":"mocha","build":"npm run grammar:compile && npm run build:es && npm run build:cjs && npm run build:cjs:apg-lite && npm run build:umd:browser","watch":"npm-watch","build:es":"cross-env BABEL_ENV=es babel src --out-dir es --extensions '.js' --out-file-extension '.mjs'","build:cjs":"cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.js' --out-file-extension '.cjs'","test:watch":"npm-watch test","prepublishOnly":"npm run build","grammar:compile":"node ./scripts/apg-js.js --lite --in=./src/grammar.bnf --out=./src/grammar.js && node ./scripts/apg-js.js --lite --in=./src/uri-template/grammar.bnf --out=./src/uri-template/grammar.js","build:umd:browser":"cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress","build:cjs:apg-lite":"cross-env BABEL_ENV=cjs babel node_modules/apg-lite/lib/parser.js --out-file ./cjs/apg-lite.cjs"},"version":"2.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"5fd21017-9ea1-4be1-bdf1-2fa4fe43241f"}},"homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","jsdelivr":"./dist/openapi-path-templating.browser.min.js","keywords":["openapi","path","templating","parser","validator","resolver","matcher","matching"],"_resolved":"/home/runner/work/openapi-path-templating/openapi-path-templating/dist/openapi-path-templating-2.3.0.tgz","_integrity":"sha512-rjqLJDhInqH2ZqD76oTfc2Ufc3BoKY7+E0AB3POH39E6ltsaWS5zLSiwflQi9NtFQqEUYzwWrzUjX1BIYpNpBQ==","repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"_npmVersion":"11.20.0","description":"OpenAPI Path Templating parser, validator, resolver and matcher.","directories":{},"maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"_nodeVersion":"26.12.1","dependencies":{"apg-lite":"^1.0.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"chai":"=6.2.2","husky":"=9.1.7","mocha":"=12.0.3","apg-js":"^4.4.0","webpack":"^5.112.0","prettier":"^3.1.1","cross-env":"^10.0.0","npm-watch":"^0.13.0","@babel/cli":"=7.28.6","@babel/core":"=7.29.0","webpack-cli":"^7.2.3","babel-loader":"^10.1.1","@commitlint/cli":"=20.5.0","semantic-release":"^25.0.9","@babel/preset-env":"=7.29.0","@semantic-release/git":"^11.0.1","@semantic-release/npm":"^13.2.0","terser-webpack-plugin":"^5.6.1","@semantic-release/github":"^12.0.10","babel-plugin-module-resolver":"^5.0.3","@commitlint/config-conventional":"=20.5.0","@semantic-release/commit-analyzer":"^13.0.1","@semantic-release/release-notes-generator":"^14.1.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openapi-path-templating_2.3.0_1792705886221_0.01422607900227213"}}},"time":{"created":"2023-12-11T14:17:06.972Z","modified":"2026-10-22T21:51:26.772Z","1.0.0":"2023-12-11T14:17:07.288Z","1.0.1":"2023-12-12T08:40:24.866Z","1.1.0":"2023-12-13T08:54:58.219Z","1.2.0":"2023-12-13T10:51:50.335Z","1.2.1":"2023-12-18T06:18:04.108Z","1.3.0":"2023-12-18T11:01:21.500Z","1.4.0":"2024-01-02T11:59:35.159Z","1.5.0":"2024-05-08T12:13:11.267Z","1.5.1":"2024-05-08T13:19:22.747Z","1.5.2":"2024-06-05T07:03:03.756Z","1.5.3":"2024-06-06T07:51:25.078Z","1.6.0":"2024-06-14T19:41:02.342Z","1.7.0":"2024-12-14T20:10:58.342Z","2.0.0":"2024-12-24T07:05:35.083Z","2.0.1":"2024-12-25T11:29:30.358Z","2.0.2":"2024-12-29T13:30:41.069Z","2.1.0":"2024-12-31T14:53:43.970Z","2.1.1":"2025-03-09T13:30:16.642Z","2.2.0":"2025-03-09T21:23:23.666Z","2.2.1":"2025-03-09T21:27:31.678Z","2.3.0":"2026-10-22T21:51:26.350Z"},"bugs":{"url":"https://github.com/swaggerexpert/openapi-path-templating/issues"},"author":{"name":"Vladimír Gorej","email":"vladimir.gorej@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/swaggerexpert/openapi-path-templating#readme","keywords":["openapi","path","templating","parser","validator","resolver","matcher","matching"],"repository":{"url":"git+https://github.com/swaggerexpert/openapi-path-templating.git","type":"git"},"description":"OpenAPI Path Templating parser, validator, resolver and matcher.","maintainers":[{"name":"char0n","email":"vladimir.gorej@gmail.com"}],"readme":"# openapi-path-templating\n\n[![npmversion](https://badge.fury.io/js/openapi-path-templating.svg)](https://www.npmjs.com/package/openapi-path-templating)\n[![npm](https://img.shields.io/npm/dm/openapi-path-templating.svg)](https://www.npmjs.com/package/openapi-path-templating)\n[![Test workflow](https://github.com/swaggerexpert/openapi-path-templating/actions/workflows/test.yml/badge.svg)](https://github.com/swaggerexpert/openapi-path-templating/actions)\n[![Dependabot enabled](https://img.shields.io/badge/Dependabot-enabled-blue.svg)](https://dependabot.com/)\n[![try on RunKit](https://img.shields.io/badge/try%20on-RunKit-brightgreen.svg?style=flat)](https://npm.runkit.com/openapi-path-templating)\n[![](https://data.jsdelivr.com/v1/package/npm/openapi-path-templating/badge)](https://www.jsdelivr.com/package/npm/openapi-path-templating)\n[![Tidelift](https://tidelift.com/badges/package/npm/openapi-path-templating)](https://tidelift.com/subscription/pkg/npm-openapi-path-templating?utm_source=npm-openapi-path-templating&utm_medium=referral&utm_campaign=readme)\n\n[OpenAPI Path Templating](https://spec.openapis.org/oas/v3.2.0.html#path-templating) refers to the usage of template expressions, delimited by curly braces (`{}`), to mark a section of a URL path as replaceable using path parameters.\nEach template expression in the path MUST correspond to a path parameter that is included in the [Path Item](https://spec.openapis.org/oas/v3.2.0.html#path-item-object) itself and/or in each of the Path Item's [Operations](https://spec.openapis.org/oas/v3.2.0.html#operation-object).\nAn exception is if the path item is empty, for example due to ACL constraints, matching path parameters are not required.\n\n`openapi-path-templating` is a **parser**, **validator**, **resolver** and **matcher** for OpenAPI Path Templating,\nwhich played a [foundational role](https://github.com/OAI/OpenAPI-Specification/pull/4244) in defining the official ABNF grammar for OpenAPI Path Templating.\n\nIt supports Path Templating defined in following OpenAPI specification versions:\n\n- [OpenAPI 2.0](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#pathTemplating)\n- [OpenAPI 3.0.0](https://spec.openapis.org/oas/v3.0.0.html#path-templating)\n- [OpenAPI 3.0.1](https://spec.openapis.org/oas/v3.0.1.html#path-templating)\n- [OpenAPI 3.0.2](https://spec.openapis.org/oas/v3.0.2.html#path-templating)\n- [OpenAPI 3.0.3](https://spec.openapis.org/oas/v3.0.3.html#path-templating)\n- [OpenAPI 3.0.4](https://spec.openapis.org/oas/v3.0.4.html#path-templating)\n- [OpenAPI 3.1.0](https://spec.openapis.org/oas/v3.1.0.html#path-templating)\n- [OpenAPI 3.1.1](https://spec.openapis.org/oas/v3.1.1.html#path-templating)\n- [OpenAPI 3.2.0](https://spec.openapis.org/oas/v3.2.0.html#path-templating)\n\n\n<table>\n  <tr>\n    <td align=\"right\" valign=\"middle\">\n        <img src=\"https://raw.githubusercontent.com/swaggerexpert/openapi-path-templating/main/assets/tidelift.webp\" alt=\"Tidelift\" width=\"60\" />\n      </td>\n      <td valign=\"middle\">\n        <a href=\"https://tidelift.com/subscription/pkg/npm-openapi-path-templating?utm_source=npm-openapi-path-templating&utm_medium=referral&utm_campaign=readme\">\n            Get professionally supported openapi-path-templating with Tidelift Subscription.\n        </a>\n      </td>\n  </tr>\n</table>\n\n## Table of Contents\n\n- [Getting started](#getting-started)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [Parsing](#parsing)\n      - [Translators](#translators)\n      - [Statistics](#statistics)\n      - [Tracing](#tracing)\n    - [Validation](#validation)\n    - [Resolution](#resolution)\n      - [Parameter serialization](#parameter-serialization)\n    - [URI Template](#uri-template)\n    - [Regular expression](#regular-expression)\n    - [Normalization](#normalization)\n    - [Matching](#matching)\n    - [Errors](#errors)\n    - [Grammar](#grammar)\n- [More about OpenAPI Path Templating](#more-about-openapi-path-templating)\n- [Setting up for development](#setting-up-for-development)\n- [License](#license)\n\n\n## Getting started\n\n### Installation\n\nYou can install `openapi-path-templating` using `npm`:\n\n```sh\n $ npm install openapi-path-templating\n```\n\n---\n\n**[unpkg.com](https://unpkg.com/)**\n\nInclude following script tag into your HTML file:\n\n```html\n<script src=\"https://unpkg.com/openapi-path-templating@latest/dist/openapi-path-templating.browser.min.js\"></script>\n```\n\nGlobal variable `OpenAPIPathTemplating` will be available in the browser matching interface of `openapi-path-templating` npm package.\n`openapi-path-templating.browser.min.js` is [UMD](https://github.com/umdjs/umd?tab=readme-ov-file#umd-universal-module-definition) minified build artifact.\nThere is also unminified `openapi-path-templating.browser.js` artifact, suitable for debugging.\n\n---\n\n**[jsDelivr](https://www.jsdelivr.com/)**\n\nInclude following script tag into your HTML file (ESM mode):\n\n```html\n<script type=\"module\">\n  import * as OpenAPIPathTemplating from 'https://cdn.jsdelivr.net/npm/openapi-path-templating@latest/+esm'\n</script>\n```\nLocal variable `OpenAPIPathTemplating` will be available in scope of the `<script>` tag matching interface of `openapi-path-templating` package.\n\nOr include following script tag into your HTML file (UMD mode):\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/openapi-path-templating@latest/dist/openapi-path-templating.browser.min.js\"></script>\n```\n\nGlobal variable `OpenAPIPathTemplating` will be available in the browser matching interface of `openapi-path-templating` npm package.\n`openapi-path-templating.browser.min.js` is [UMD](https://github.com/umdjs/umd?tab=readme-ov-file#umd-universal-module-definition) minified build artifact.\nThere is also unminified `openapi-path-templating.browser.js` artifact, suitable for debugging.\n\n### Usage\n\n`openapi-path-templating` currently supports **parsing**, **validation**, **resolution** and **matching**.\nBoth parser and validator are based on a superset of [ABNF](https://www.rfc-editor.org/rfc/rfc5234) ([SABNF](https://github.com/ldthomas/apg-js2/blob/master/SABNF.md))\nand use [apg-lite](https://github.com/ldthomas/apg-lite) parser generator.\n\n#### Parsing\n\nParsing a Path Templating is as simple as importing the **parse** function and calling it.\n\n```js\nimport { parse } from 'openapi-path-templating';\n\nconst parseResult = parse('/pets/{petId}');\n```\n\n**parseResult** variable has the following shape:\n\n```\n{\n  result: <ParseResult['result']>,\n  tree: <ParseResult['tree']>,\n  stats: <ParseResult['stats']>,\n  trace: <ParseResult['trace']>,\n}\n```\n\n[TypeScript typings](https://github.com/swaggerexpert/openapi-path-templating/blob/main/types/index.d.ts) are available for all fields attached to parse result object returned by the `parse` function.\n\n##### Translators\n\n`openapi-path-templating` provides several translators to convert the parse result into different tree representations.\n\n###### CST translator\n\n[Concrete Syntax Tree](https://en.wikipedia.org/wiki/Parse_tree) (Parse tree) representation is available on parse result\nwhen instance of `CSTTranslator` is provided via a `translator` option to the `parse` function.\nCST is suitable to be consumed by other tools like IDEs, editors, etc...\n\n```js\nimport { parse, CSTTranslator } from 'openapi-path-templating';\n\nconst { tree: cst } = parse('/pets/{petId}', { translator: new CSTTranslator() });\n```\n\nCST tree has a shape documented by [TypeScript typings (CSTNode)](https://github.com/swaggerexpert/openapi-path-templating/blob/main/types/index.d.ts).\n\n###### AST translator\n\n**Default translator**. [Abstract Syntax Tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree) representation is available on parse result\nby default or when instance of `ASTTranslator` is provided via a `translator` option to the `parse` function.\nAST is suitable to be consumed by implementations that need to analyze the structure of the path template.\n\n```js\nimport { parse } from 'openapi-path-templating';\n\nconst { tree: ast } = parse('/pets/a{petId}/');\n```\n\nor\n\n```js\nimport { parse, ASTTranslator } from 'openapi-path-templating';\n\nconst { tree: ast } = parse('/pets/a{petId}/', { translator: new ASTTranslator() });\n```\n\nAfter running the above code, **ast** variable has the following shape:\n\n```js\n{\n  type: 'PathTemplate',\n  segments: [\n    {\n      type: 'PathSegment',\n      parts: [{ type: 'PathLiteral', value: 'pets' }],\n    },\n    {\n      type: 'PathSegment',\n      parts: [\n        { type: 'PathLiteral', value: 'a' },\n        { type: 'TemplateExpression', name: 'petId' },\n      ],\n    },\n  ],\n  trailingSlash: true,\n}\n```\n\nAST tree has a shape documented by [TypeScript typings (ASTNode)](https://github.com/swaggerexpert/openapi-path-templating/blob/main/types/index.d.ts).\n\n###### List translator\n\nList of entries representation is available on parse result\nwhen instance of `ListTranslator` is provided via a `translator` option to the `parse` function.\nEvery entry is a `[type, text]` tuple, ordered as matched by the parser.\n\n```js\nimport { parse, ListTranslator } from 'openapi-path-templating';\n\nconst { tree: list } = parse('/pets/{petId}', { translator: new ListTranslator() });\n```\n\nAfter running the above code, **list** variable has the following shape:\n\n```js\n[\n  [ 'path-template', '/pets/{petId}' ],\n  [ 'slash', '/' ],\n  [ 'path-literal', 'pets' ],\n  [ 'slash', '/' ],\n  [ 'template-expression', '{petId}' ],\n  [ 'template-expression-param-name', 'petId' ]\n]\n```\n\n> NOTE: for backward compatibility, parse result also exposes the deprecated `ast` field,\n> regardless of the translator used. `parseResult.ast.translate(parts)` populates `parts` with the same list of entries\n> as `ListTranslator` produces. Prefer `ListTranslator` in new code.\n\n###### XML translator\n\n```js\nimport { parse, XMLTranslator } from 'openapi-path-templating';\n\nconst { tree: xml } = parse('/pets/{petId}', { translator: new XMLTranslator() });\n```\n\n##### Statistics\n\n`parse` function returns additional statistical information about the parsing process.\nCollection of the statistics can be enabled by setting `stats` option to `true`.\n\n```js\nimport { parse } from 'openapi-path-templating';\n\nconst { stats } = parse('/pets/{petId}', { stats: true });\n\nstats.displayStats(); // returns operator statistics as string\nstats.displayHits(); // returns rules grouped by hit count as string\n```\n\n##### Tracing\n\n`parse` function returns additional tracing information about the parsing process.\nTracing can be enabled by setting `trace` option to `true`. Tracing is essential\nfor debugging failed parses or analyzing rule execution flow.\n\n```js\nimport { parse } from 'openapi-path-templating';\n\nconst { result, trace } = parse('pets', { trace: true });\n\nresult.success; // false\ntrace.displayTrace(); // returns trace information as string\n```\n\nTracing also allows you to infer expected tokens at a failure point. This is useful for generating meaningful syntax error messages.\n\n```js\nimport { parse } from 'openapi-path-templating';\n\nconst { trace } = parse('pets', { trace: true });\n\nconst expectations = trace.inferExpectations();\nexpectations.toString(); // => '\"/\"'\n```\n\n#### Validation\n\nValidating a Path Templating is as simple as importing the **test** function and calling it.\n\n\n```js\nimport { test } from 'openapi-path-templating';\n\ntest('/pets/{petId}'); // => true\ntest('/a{petId}'); // => true\ntest('/pets'); // => true\ntest('/pets', { strict: true }); // => false (doesn't contain any template-expression)\ntest('/pets/{id}/owners/{id}'); // => false (repeated template expression name)\n```\n\nEach template expression must not appear more than once in a single path template.\n\n#### Resolution\n\nResolving a Path Templating is as simple as importing the **resolve** function and calling it.\n\n```js\nimport { resolve } from 'openapi-path-templating';\n\nresolve('/pets/{petId}', { petId: 3 }); // => \"/pets/3\"\n```\n\nResolved Path Templating is automatically encoded using [encodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) function.\nIt is possible to provide a custom encoder.\n\n```js\nimport { resolve } from 'openapi-path-templating';\n\nresolve('/pets/{petId}', { petId: '/?#' }, {\n  encoder: (pathSegment) => pathSegment, // no encoding\n}); // => \"/pets//?#\"\n```\n\n##### Parameter serialization\n\nPath parameters are serialized according to `style`, `explode` and `allowReserved` fields of their\n[Parameter Objects](https://spec.openapis.org/oas/v3.2.0.html#parameter-object), which are defined in terms of\n[RFC 6570 URI Templates](https://www.rfc-editor.org/rfc/rfc6570) (see [Appendix C](https://spec.openapis.org/oas/v3.2.0.html#appendix-c-using-rfc6570-based-serialization)\nof the OpenAPI Specification). Providing Parameter Objects via `parameterObjects` option serializes the values this way.\n\n```js\nimport { resolve } from 'openapi-path-templating';\n\nconst parameterObjects = [{ name: 'petId', in: 'path', style: 'matrix', explode: true }];\n\nresolve('/pets/{petId}', { petId: [3, 4] }, { parameterObjects }); // => '/pets/;petId=3;petId=4'\nresolve('/pets/{petId}', { petId: { R: 100, G: 200 } }, { parameterObjects }); // => '/pets/;R=100;G=200'\n```\n\nParameter Objects are path parameters by default, so their `in` field can be omitted. Parameter Objects with `in` other than `path`\n(query, header or cookie parameters) are ignored, so `parameters` of an Operation Object can be provided as they are.\nTemplate expressions without a Parameter Object use default serialization (`style: 'simple'`, `explode: false`),\nand template expressions without a value, or with a value undefined by RFC 6570 (`undefined`, `null`, empty array or object), are kept unresolved.\nPlain objects are serialized as name/value pairs, and other values as strings using `String(value)`.\nNote that `String(date)` depends on the time zone, so pass `date.toISOString()` to serialize dates in ISO 8601 format.\n\nWhen `parameterObjects` option is provided, even an empty array, all values are encoded according to RFC 6570 rules,\nwhich differ from the default encoding: percent-encoded values are encoded again, and `[` and `]` are percent-encoded.\n`parameterObjects` and `encoder` options cannot be used together.\n\n```js\nimport { resolve } from 'openapi-path-templating';\n\nresolve('/pets/{petId}', { petId: '[a%20b]' }); // => '/pets/[a%20b]'\nresolve('/pets/{petId}', { petId: '[a%20b]' }, { parameterObjects: [] }); // => '/pets/%5Ba%2520b%5D'\n```\n\n#### URI Template\n\nParameter serialization is built on two functions, which can be used separately.\n\n**toURITemplate** converts Path Templating into a URI Template using Parameter Objects of path parameters.\n\n```js\nimport { toURITemplate } from 'openapi-path-templating';\n\ntoURITemplate('/pets/{petId}', [{ name: 'petId', style: 'matrix', explode: true }]); // => '/pets/{;petId*}'\n```\n\n| Parameter Object field | URI Template |\n|---|---|\n| `style: 'simple'` (default) | `{petId}` |\n| `style: 'label'` | `{.petId}` |\n| `style: 'matrix'` | `{;petId}` |\n| `explode: true` | `{petId*}` |\n| `allowReserved: true` | `{+petId}` (only for `style: 'simple'`, as RFC 6570 allows a single operator) |\n\nTemplate expression names that are not valid URI Template variable names (e.g. containing `-`) are percent-encoded,\nas described in [Appendix C.4.4](https://spec.openapis.org/oas/v3.2.0.html#illegal-variable-names-as-parameter-names).\nValues for such variables must be provided under the percent-encoded names, which [parameter serialization](#parameter-serialization) does automatically.\n\n```js\nimport { toURITemplate } from 'openapi-path-templating';\n\ntoURITemplate('/pets/{pet-id}'); // => '/pets/{pet%2Did}'\n```\n\n**expandURITemplate** expands any URI Template, encoding the values according to RFC 6570 rules.\n`expandURITemplate`, **parseURITemplate** and **testURITemplate** are **100% compliant**\nwith the [URI Template test suite](https://github.com/uri-templates/uritemplate-test).\nSingle quote `'` is allowed in literals, as per [verified erratum 6937](https://www.rfc-editor.org/errata/eid6937).\n\n```js\nimport { expandURITemplate, parseURITemplate, testURITemplate } from 'openapi-path-templating';\n\nexpandURITemplate('/pets/{;petId*}', { petId: [3, 4] }); // => '/pets/;petId=3;petId=4'\nexpandURITemplate('/search{?q,lang}', { q: 'cat dog', lang: 'en' }); // => '/search?q=cat%20dog&lang=en'\nexpandURITemplate('{+path}', { path: '/foo/bar' }); // => '/foo/bar'\n\ntestURITemplate('/search{?q,lang}'); // => true\ntestURITemplate('{/id*'); // => false\ntestURITemplate('{!id}'); // => false (operator reserved for future extensions)\n\nparseURITemplate('{?q:3}').tree;\n// => { type: 'URITemplate', parts: [{ type: 'Expression', operator: '?', variables: [{ name: 'q', prefix: 3, explode: false }] }] }\n```\n\nInvalid URI Template causes `OpenAPIPathTemplatingParseError` to be thrown by `expandURITemplate`.\n\n#### Regular expression\n\nPath Templating can be converted into a regular expression by importing the **toRegExp** function and calling it.\nRegular expression has a capturing group for every template expression, in the same order as template expressions\nappear in the path template.\n\n```js\nimport { toRegExp } from 'openapi-path-templating';\n\nconst regExp = toRegExp('/pets/{petId}/owners/{ownerId}');\n\nregExp.test('/pets/1/owners/2'); // => true\nregExp.exec('/pets/1/owners/2'); // => ['/pets/1/owners/2', '1', '2']\nregExp.test('/pets/1/owners/2/toys'); // => false\n```\n\nTemplate expression matches one or more characters except `/`, `?` and `#`, and percent-encoded octet is matched as a whole.\nCaptured values are not decoded. Path literals are matched case-sensitively, except hexadecimal digits of percent-encoded octets.\nTrailing slash is significant, `/pets` and `/pets/` are different paths.\n\n```js\nimport { toRegExp } from 'openapi-path-templating';\n\nconst regExp = toRegExp('/pets/{petId}');\n\nregExp.exec('/pets/a%2Fb'); // => ['/pets/a%2Fb', 'a%2Fb']\nregExp.test('/pets/a/b'); // => false\nregExp.test('/pets/1/'); // => false\n```\n\nWhen path segment contains multiple template expressions, the value is split at the first occurrence of the path literal\nbetween them, and template expression followed directly by another template expression matches a single character.\nRegular expression never backtracks catastrophically, so matching takes linear time even for untrusted input.\n\n```js\nimport { toRegExp } from 'openapi-path-templating';\n\ntoRegExp('/files/{name}.{ext}').exec('/files/report.tar.gz'); // => ['/files/report.tar.gz', 'report', 'tar.gz']\ntoRegExp('/{a}{b}').exec('/xyz'); // => ['/xyz', 'x', 'yz']\n```\n\nFollowing options are supported:\n\n- `prefix` (default: `false`) - when `true`, the regular expression matches path prefix that ends at segment boundary, query or fragment\n- `optionalTrailingSlash` (default: `false`) - when `true`, the regular expression matches optional trailing slash\n- `caseSensitive` (default: `true`) - when `false`, path literals are matched case-insensitively\n\n```js\nimport { toRegExp } from 'openapi-path-templating';\n\ntoRegExp('/api/{version}', { prefix: true }).exec('/api/v1/pets'); // => ['/api/v1', 'v1']\ntoRegExp('/pets', { optionalTrailingSlash: true }).test('/pets/'); // => true\ntoRegExp('/Pets', { caseSensitive: false }).test('/pets'); // => true\n```\n\nInvalid path template causes `OpenAPIPathTemplatingParseError` to be thrown.\n\n#### Normalization\n\nNormalization of OpenAPI Path Template is a process of transforming the path template into its normalized form.\nNormalization is used to compare two path templates for equivalence and is based on **Syntax-Based Normalization** as defined in [RFC 3986, section 6.2.2](https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2).\n\n##### Syntax-Based normalization\n\nSyntax-Based normalization is a process of transforming the path template into its normalized form using\na fixed set of normalizers in following order:\n\n- [Case normalization](#case-normalization)\n- [Percent-Encoding normalization](#percent-encoding-normalization)\n- [Path segment normalization](#path-segment-normalization)\n\n```js\nimport { normalize } from 'openapi-path-templating';\n\nnormalize('/api/{userId}/profile/../account/%41ccount'); // => '/api/{userId}/account/Account'\n```\n\nSyntax-Based normalization is a default normalization strategy used by this library.\n\n\n###### No normalization\n\nNoop normalizer that acts as identity function. Performs no transformations on the path template\nand returns it as is.\n\n```js\nimport { identityNormalizer } from 'openapi-path-templating';\n\nidentityNormalizer('/API/%2faPi/%7bsection%7d/./../profile'); // => '/API/%2faPi/%7bsection%7d/./../profile'\n```\n\n###### Case normalization\n\nFor all path templates, the hexadecimal digits within a percent-encoding\ntriplet (e.g., `\"%3a\"` versus `\"%3A\"`) are case-insensitive and therefore\nshould be normalized to use uppercase letters for the digits A-F.\n\n```js\nimport { caseNormalizer } from 'openapi-path-templating';\n\ncaseNormalizer('/api/{userId}/profile/%7bsection%7d'); // => '/api/{userId}/profile/%7Bsection%7D'\n```\n\n###### Percent-Encoding normalization\n\nThe percent-encoding mechanism is a frequent source of\nvariance among otherwise identical path templates. In addition to the case\nnormalization issue noted above, some path template producers percent-encode\noctets that do not require percent-encoding, resulting in path templates that\nare equivalent to their non-encoded counterparts. These path templates should\nbe normalized by decoding any percent-encoded octet that corresponds\nto an unreserved character.\n\n```js\nimport { percentEncodingNormalizer } from 'openapi-path-templating';\n\npercentEncodingNormalizer('/api/%7BuserId%7D/profile/%41ccount/{account}'); // => '/api/%7BuserId%7D/profile/Account/{account}'\n```\n\n###### Path segment normalization\n\nThe complete path segments `\".\"` and `\"..\"` are intended for use\nwithin path templates and are removed as part of\nthe reference resolution process. Path template segment normalizer removes\ndot-segments by applying the [remove_dot_segments](https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4) algorithm to the path template.\n\n```js\nimport { pathSegmentNormalizer } from 'openapi-path-templating';\n\npathSegmentNormalizer('/api/{userId}/./profile/../account'); // => '/api/{userId}/account'\n```\n\n**NOTE**: note that all normalizers acts as identity functions when invalid path template is provided.\n\n#### Matching\n\nPath templating matching in OpenAPI prioritizes concrete paths over parameterized ones,\ntreats paths with identical structures but different parameter names as invalid,\nand considers paths with overlapping patterns that could match the same request as potentially ambiguous.\n\n##### Equivalence\n\n`isIdentical`\n\nDetermines whether two path templates are structurally identical, meaning they have the same sequence\nof literals and template expressions, regardless of template expression names. In the OpenAPI context,\nsuch identical paths are considered invalid due to potential conflicts in routing.\n\nTesting path templates for equality is normally based on pair comparison of the\ncharacters that make up the strings, starting from the first and\nproceeding until both strings are exhausted and all characters are\nfound to be equal, until a pair of characters compares unequal, or\nuntil one of the strings is exhausted before the other. More in [RFC 3986, section 6.2.1](https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.1).\n\n```js\nimport { isIdentical } from 'openapi-path-templating';\n\nisIdentical('/pets/{petId}', '/pets/{name}'); // => true\nisIdentical('/pets/{petId}', '/animals/{name}'); // => false\n```\n\nBy default, extensive [normalization](#normalization) prior to comparison is applied to produce a normalized form of the path template.\n\n```js\nimport { isIdentical, normalize, identityNormalizer } from 'openapi-path-templating';\n\n// default behavior\nisIdentical('/API/%2faPi/%7bsection%7d/./../profile', '/API/%2FaPi/profile'); // => true\nisIdentical('/api/{userId}/account/Account', '/api/{userId}/profile/../account/%41ccount'); // => true\n// equivalent to above\nisIdentical('/API/%2faPi/%7bsection%7d/./../profile', '/API/%2FaPi/profile', { normalizer: normalize }); // => true\nisIdentical('/api/{userId}/account/Account', '/api/{userId}/profile/../account/%41ccount', { normalizer: normalize }); // => true\n// no normalization\nisIdentical('/API/%2faPi/%7bsection%7d/./../profile', '/API/%2FaPi/profile', { normalizer: identityNormalizer }); // => false\nisIdentical('/api/{userId}/account/Account', '/api/{userId}/profile/../account/%41ccount', { normalizer: identityNormalizer }); // => false\n```\n\n##### Ambiguity\n\n`isAmbiguous`\n\nDetermines whether two path templates may lead to ambiguous resolution. Two path templates are ambiguous when\nthere is a concrete path matched by both of them and neither of them is more concrete than the other,\nso the concrete path cannot be unambiguously matched to one of them.\n\nTemplate expression matches one or more characters except `/`, and percent-encoded octet is matched as a single character.\nOne path template is more concrete than the other when every path matched by it is also matched by the other one.\nIdentical path templates are not considered ambiguous, use [isIdentical](#equivalence) to detect them.\n\n> NOTE: OpenAPI specification only states that concrete (non-templated) paths are matched before their templated counterparts.\n> It doesn't define which of two templated path templates is more concrete (see [OAI/OpenAPI-Specification#2564](https://github.com/OAI/OpenAPI-Specification/issues/2564)).\n> This library extends the rule: when one path template is more concrete than the other, it is assumed to be matched first,\n> and the path templates are not considered ambiguous (e.g. `/shops/{shopId}/pets/_search` and `/shops/{shopId}/pets/{petId}`).\n\n```js\nimport { isAmbiguous } from 'openapi-path-templating';\n\nisAmbiguous('/{entity}/me', '/books/{id}'); // => true (/books/me is matched by both)\nisAmbiguous('/files/{name}.json', '/files/report.{ext}'); // => true (/files/report.json is matched by both)\nisAmbiguous('/pets/{petId}', '/pets/mine'); // => false (/pets/mine is more concrete)\nisAmbiguous('/shops/{shopId}/pets/{petId}', '/shops/{shopId}/pets/_search'); // => false (/shops/{shopId}/pets/_search is more concrete)\nisAmbiguous('/pets/{petId}', '/pets/{name}'); // => false (identical)\nisAmbiguous('/pets/{petId}', '/animals/{name}'); // => false (no common path)\n```\n\nBy default, [normalization](#normalization) is applied to path templates prior to establishing ambiguity.\nCustom normalizer can be provided via `normalizer` option.\n\n```js\nimport { isAmbiguous, identityNormalizer } from 'openapi-path-templating';\n\nisAmbiguous('/{entity}/me', '/books/./{id}'); // => true\nisAmbiguous('/{entity}/me', '/books/./{id}', { normalizer: identityNormalizer }); // => false\n```\n\n##### Path matching\n\n`match`\n\nMatches concrete path against path templates. `match` compiles path templates once and returns a function,\nwhich matches a concrete path and returns the matching path template together with decoded values\nof its template expressions, or `null` when no path template matches.\n\n```js\nimport { match } from 'openapi-path-templating';\n\nconst matchPath = match(['/pets/{petId}', '/pets/mine']);\n\nmatchPath('/pets/mine'); // => { pathTemplate: '/pets/mine', parameters: {} }\nmatchPath('/pets/7'); // => { pathTemplate: '/pets/{petId}', parameters: { petId: '7' } }\nmatchPath('/owners/1'); // => null\n```\n\nConcrete path templates are matched before templated ones, and more concrete path templates are matched\nbefore less concrete ones (see [Ambiguity](#ambiguity)). [Ambiguous](#ambiguity) path templates are matched in list order.\nRouter-like matching, where the first path template in the list that matches wins, is available via `precedence` option.\n\n```js\nimport { match } from 'openapi-path-templating';\n\nmatch(['/pets/{petId}', '/pets/mine'], { precedence: 'order' })('/pets/mine');\n// => { pathTemplate: '/pets/{petId}', parameters: { petId: 'mine' } }\n```\n\nValues of template expressions are decoded using [decodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent),\nmaking `match` the inverse of [resolve](#resolution). Because template expression values never contain unescaped `/`,\nthe encoded `/` is matched as part of the value.\n\n```js\nimport { match } from 'openapi-path-templating';\n\nconst matchPath = match(['/repos/{owner}/{repo}', '/repos/{owner}/{repo}/contents/{path}']);\n\nmatchPath('/repos/acme/site/contents/docs%2Findex.md');\n// => { pathTemplate: '/repos/{owner}/{repo}/contents/{path}', parameters: { owner: 'acme', repo: 'site', path: 'docs/index.md' } }\nmatchPath('/repos/acme/site/contents/docs/index.md'); // => null\n```\n\nQuery and fragment are ignored. Path that doesn't start with `/` or contains malformed percent-encoding never matches.\nTo match a full URL, pass its path: `matchPath(new URL(url).pathname)`.\n\nFollowing options are supported:\n\n- `precedence` (default: `'concrete'`) - `'concrete'` matches more concrete path templates first, `'order'` matches path templates in list order\n- `decode` (default: `decodeURIComponent`) - function decoding template expression values, or `false` to keep them encoded\n- `normalizer` (default: `identityNormalizer`) - [normalizer](#normalization) applied to path templates and the path before matching\n- `prefix`, `optionalTrailingSlash` and `caseSensitive` - see [Regular expression](#regular-expression)\n\n```js\nimport { match, normalize } from 'openapi-path-templating';\n\nmatch('/files/{path}', { decode: false })('/files/docs%2Findex.md'); // => { pathTemplate: '/files/{path}', parameters: { path: 'docs%2Findex.md' } }\nmatch('/pets/mine', { normalizer: normalize })('/pets/%6Dine'); // => { pathTemplate: '/pets/mine', parameters: {} }\nmatch('/api/{version}', { prefix: true })('/api/v1/pets'); // => { pathTemplate: '/api/{version}', parameters: { version: 'v1' } }\n```\n\nInvalid path template causes `OpenAPIPathTemplatingParseError` to be thrown when compiling.\n\n#### Errors\n\n`openapi-path-templating` provides a structured error class hierarchy,\nenabling precise error handling across path templating operations.\n\n```js\nimport { OpenAPIPathTemplatingError, OpenAPIPathTemplatingParseError } from 'openapi-path-templating';\n```\n\n**OpenAPIPathTemplatingError** is the base class for all errors. **OpenAPIPathTemplatingParseError** is thrown when parsing fails unexpectedly\nand includes additional context about the path template that failed to parse.\nPassing a non-string value to the `parse` function throws a `TypeError`.\n\n```js\nimport { parse, OpenAPIPathTemplatingParseError } from 'openapi-path-templating';\n\ntry {\n  parse('/pets/{petId}');\n} catch (error) {\n  if (error instanceof OpenAPIPathTemplatingParseError) {\n    console.log(error.pathTemplate); // the path template that failed to parse\n  }\n}\n```\n\n#### Grammar\n\nNew grammar instance can be created in following way:\n\n```js\nimport { Grammar } from 'openapi-path-templating';\n\nconst grammar = new Grammar();\n```\n\nTo obtain original ABNF (SABNF) grammar as a string:\n\n```js\nimport { Grammar } from 'openapi-path-templating';\n\nconst grammar = new Grammar();\n\ngrammar.toString();\n// or\nString(grammar);\n```\n\n## More about OpenAPI Path Templating\n\nThe Path Templating is defined by the following [ABNF](https://tools.ietf.org/html/rfc5234) syntax\n\n```abnf\n; OpenAPI Path Templating ABNF syntax\n; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npath-template                  = slash *( path-segment slash ) [ path-segment ]\npath-segment                   = 1*( path-literal / template-expression )\nslash                          = \"/\"\npath-literal                   = 1*pchar\ntemplate-expression            = \"{\" template-expression-param-name \"}\"\ntemplate-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npchar               = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\nunreserved          = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n                    ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\npct-encoded         = \"%\" HEXDIG HEXDIG\n                    ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\nsub-delims          = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n                    / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n                    ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA               = %x41-5A / %x61-7A   ; A-Z / a-z\nDIGIT               = %x30-39            ; 0-9\nHEXDIG              = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n```\n\n## Setting up for development\n\n```sh\n # Clone with submodules (recommended)\n $ git clone --recurse-submodules https://github.com/swaggerexpert/openapi-path-templating.git\n\n # Or initialize submodules after cloning\n $ git submodule update --init\n\n # Install dependencies\n $ npm install\n```\n\nThe project uses the [URI Template test suite](https://github.com/uri-templates/uritemplate-test) as a git submodule for testing.\n\n## License\n\n`openapi-path-templating` is licensed under [Apache 2.0 license](https://github.com/swaggerexpert/openapi-path-templating/blob/main/LICENSE).\n`openapi-path-templating` comes with an explicit [NOTICE](https://github.com/swaggerexpert/openapi-path-templating/blob/main/NOTICE) file\ncontaining additional legal notices and information.\n","readmeFilename":"README.md"}