nuxt-ignis 0.5.0-rc.2 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.nuxt/components.d.ts +402 -208
  3. package/.nuxt/content/components.ts +201 -104
  4. package/.nuxt/dev/index.mjs +1041 -712
  5. package/.nuxt/dev/index.mjs.map +1 -1
  6. package/.nuxt/dist/server/client.manifest.mjs +1 -18
  7. package/.nuxt/dist/server/client.precomputed.mjs +1 -0
  8. package/.nuxt/eslint-typegen.d.ts +56 -2
  9. package/.nuxt/eslint.config.d.mts +2 -2
  10. package/.nuxt/eslint.config.mjs +10 -10
  11. package/.nuxt/imports.d.ts +63 -59
  12. package/.nuxt/manifest/latest.json +1 -1
  13. package/.nuxt/manifest/meta/dev.json +1 -1
  14. package/.nuxt/mdc-highlighter.mjs +4 -0
  15. package/.nuxt/mdc-image-component.mjs +1 -1
  16. package/.nuxt/module/nuxt-robots.d.ts +12 -12
  17. package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
  18. package/.nuxt/module/nuxt-site-config.d.ts +8 -8
  19. package/.nuxt/module/nuxt-sitemap.d.ts +17 -17
  20. package/.nuxt/nitro.json +4 -4
  21. package/.nuxt/nuxt.d.ts +12 -11
  22. package/.nuxt/nuxt.json +2 -2
  23. package/.nuxt/nuxt.node.d.ts +13 -10
  24. package/.nuxt/tsconfig.app.json +191 -191
  25. package/.nuxt/tsconfig.json +194 -194
  26. package/.nuxt/tsconfig.node.json +105 -105
  27. package/.nuxt/tsconfig.server.json +128 -128
  28. package/.nuxt/tsconfig.shared.json +55 -55
  29. package/.nuxt/types/build.d.ts +2 -1
  30. package/.nuxt/types/components.d.ts +402 -208
  31. package/.nuxt/types/i18n-plugin.d.ts +2 -2
  32. package/.nuxt/types/imports.d.ts +348 -342
  33. package/.nuxt/types/modules.d.ts +16 -16
  34. package/.nuxt/types/nitro-imports.d.ts +68 -68
  35. package/.nuxt/types/nitro-nuxt.d.ts +1 -0
  36. package/.nuxt/types/nitro-routes.d.ts +20 -20
  37. package/.nuxt/types/plugins.d.ts +37 -37
  38. package/.nuxt/types/ui.d.ts +3 -3
  39. package/.nuxt/ui/drawer.ts +23 -0
  40. package/.nuxt/ui/progress.ts +3 -3
  41. package/.nuxt/ui-image-component.ts +1 -1
  42. package/.output/nitro.json +3 -3
  43. package/.output/public/_nuxt/1vOq3xiE.js +1 -0
  44. package/.output/public/_nuxt/22rhGZdI.js +1 -0
  45. package/.output/public/_nuxt/9eIdSibD.js +1 -0
  46. package/.output/public/_nuxt/BBmTy930.js +35 -0
  47. package/.output/public/_nuxt/BKe83Cjx.js +1 -0
  48. package/.output/public/_nuxt/Bc5GLloR.js +1 -0
  49. package/.output/public/_nuxt/BdG3SY-u.js +1 -0
  50. package/.output/public/_nuxt/BeyOQpYA.js +1 -0
  51. package/.output/public/_nuxt/BqcXd3MY.js +94 -0
  52. package/.output/public/_nuxt/Bz55A4y1.js +1 -0
  53. package/.output/public/_nuxt/C2ybsIQ4.js +1 -0
  54. package/.output/public/_nuxt/C4U5VOMJ.js +1 -0
  55. package/.output/public/_nuxt/CAJsyjAK.js +1 -0
  56. package/.output/public/_nuxt/CD9aBAuy.js +1 -0
  57. package/.output/public/_nuxt/CHOS7x_d.js +1 -0
  58. package/.output/public/_nuxt/CXhUbdF6.js +1 -0
  59. package/.output/public/_nuxt/CZWScI5k.js +1 -0
  60. package/.output/public/_nuxt/DHd34syF.js +1 -0
  61. package/.output/public/_nuxt/DMbgtwAJ.js +1 -0
  62. package/.output/public/_nuxt/DR8jhnFO.js +1 -0
  63. package/.output/public/_nuxt/DTT0LBLY.js +1 -0
  64. package/.output/public/_nuxt/{aetvq4w9.js → DWV_uL6G.js} +9 -12
  65. package/.output/public/_nuxt/DdpTKqR-.js +1 -0
  66. package/.output/public/_nuxt/Df_NcBcC.js +1 -0
  67. package/.output/public/_nuxt/DhqOMFXQ.js +1 -0
  68. package/.output/public/_nuxt/Dnp9eFDR.js +1 -0
  69. package/.output/public/_nuxt/DnqMs_6O.js +1 -0
  70. package/.output/public/_nuxt/Dq7g_IfY.js +1 -0
  71. package/.output/public/_nuxt/DsAJWnuW.js +1 -0
  72. package/.output/public/_nuxt/DvVg7vM_.js +1 -0
  73. package/.output/public/_nuxt/DwKqLVGx.js +1 -0
  74. package/.output/public/_nuxt/DxzqnQKF.js +1 -0
  75. package/.output/public/_nuxt/Y0f1tU-r.js +1 -0
  76. package/.output/public/_nuxt/atySmcu6.js +1 -0
  77. package/.output/public/_nuxt/builds/latest.json +1 -1
  78. package/.output/public/_nuxt/builds/meta/7bab2b8f-93ee-4f44-a604-8cd2b41eac60.json +1 -0
  79. package/.output/public/_nuxt/entry.CtpkPzPO.css +1 -0
  80. package/.output/public/_nuxt/error-404.DzDu4Ean.css +1 -0
  81. package/.output/public/_nuxt/error-500.BdNqqJx7.css +1 -0
  82. package/.output/public/_nuxt/q3i45eMH.js +1 -0
  83. package/.output/public/_nuxt/vueform.CkWb7x1C.css +1 -0
  84. package/.output/server/chunks/_/error-500.mjs +1 -1
  85. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  86. package/.output/server/chunks/_/nitro.mjs +468 -543
  87. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  88. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  89. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  90. package/.output/server/chunks/routes/renderer.mjs +10 -33
  91. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  92. package/.output/server/index.mjs.map +1 -1
  93. package/.output/server/node_modules/@babel/parser/lib/index.js +212 -145
  94. package/.output/server/node_modules/@babel/parser/package.json +3 -3
  95. package/.output/server/node_modules/@poppinss/utils/package.json +1 -1
  96. package/.output/server/node_modules/@shikijs/core/package.json +2 -2
  97. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
  98. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
  99. package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +1 -1
  100. package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +1 -1
  101. package/.output/server/node_modules/@shikijs/langs/package.json +11 -3
  102. package/.output/server/node_modules/@shikijs/themes/package.json +3 -3
  103. package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
  104. package/.output/server/node_modules/@shikijs/types/package.json +1 -1
  105. package/.output/server/node_modules/detect-libc/lib/detect-libc.js +59 -13
  106. package/.output/server/node_modules/detect-libc/lib/elf.js +39 -0
  107. package/.output/server/node_modules/detect-libc/lib/filesystem.js +18 -8
  108. package/.output/server/node_modules/detect-libc/package.json +5 -2
  109. package/.output/server/node_modules/devalue/package.json +1 -1
  110. package/.output/server/node_modules/devalue/src/parse.js +7 -1
  111. package/.output/server/node_modules/devalue/src/uneval.js +9 -8
  112. package/.output/server/node_modules/fast-xml-parser/package.json +1 -1
  113. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +297 -287
  114. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +3 -2
  115. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +4 -4
  116. package/.output/server/node_modules/image-meta/dist/index.mjs +85 -4
  117. package/.output/server/node_modules/image-meta/package.json +12 -12
  118. package/.output/server/node_modules/is-arrayish/package.json +1 -1
  119. package/.output/server/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -2
  120. package/.output/server/node_modules/node-fetch-native/dist/node.mjs +10 -10
  121. package/.output/server/node_modules/node-fetch-native/package.json +13 -13
  122. package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -1
  123. package/.output/server/node_modules/node-mock-http/package.json +6 -6
  124. package/.output/server/node_modules/oauth4webapi/build/index.js +10 -8
  125. package/.output/server/node_modules/oauth4webapi/package.json +12 -12
  126. package/.output/server/node_modules/openid-client/build/index.js +1 -1
  127. package/.output/server/node_modules/openid-client/package.json +7 -7
  128. package/.output/server/node_modules/secure-json-parse/index.js +35 -0
  129. package/.output/server/node_modules/secure-json-parse/package.json +2 -3
  130. package/.output/server/node_modules/semver/classes/semver.js +19 -5
  131. package/.output/server/node_modules/semver/internal/identifiers.js +4 -0
  132. package/.output/server/node_modules/semver/package.json +3 -3
  133. package/.output/server/node_modules/shiki/package.json +9 -9
  134. package/.output/server/node_modules/simple-swizzle/package.json +1 -1
  135. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  136. package/.output/server/node_modules/unhead/dist/server.mjs +6 -513
  137. package/.output/server/node_modules/unhead/package.json +5 -1
  138. package/.output/server/node_modules/unist-util-is/lib/index.js +10 -5
  139. package/.output/server/node_modules/unist-util-is/package.json +12 -9
  140. package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +8 -7
  141. package/.output/server/node_modules/unist-util-visit-parents/package.json +18 -13
  142. package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +1 -1
  143. package/.output/server/node_modules/yaml/package.json +2 -1
  144. package/.output/server/package.json +27 -27
  145. package/bin/cli.js +23 -16
  146. package/bin/set-app-vue.js +3 -1
  147. package/bin/set-css.js +3 -1
  148. package/bin/set-eslint.js +3 -1
  149. package/bin/setup.js +10 -7
  150. package/nuxt.config.ts +13 -1
  151. package/package.json +15 -12
  152. package/test/versions.test.ts +65 -0
  153. package/vitest.config.ts +5 -5
  154. package/.nuxt/dist/server/client.manifest.json +0 -18
  155. package/.output/public/_nuxt/1soVlS0z.js +0 -1
  156. package/.output/public/_nuxt/B7rsWaa2.js +0 -1
  157. package/.output/public/_nuxt/BFreiu22.js +0 -1
  158. package/.output/public/_nuxt/BLcTglbc.js +0 -1
  159. package/.output/public/_nuxt/Bhd4_yFT.js +0 -1
  160. package/.output/public/_nuxt/Bhpb4lc3.js +0 -1
  161. package/.output/public/_nuxt/Bi2eMDmd.js +0 -1
  162. package/.output/public/_nuxt/Bm30MqE0.js +0 -1
  163. package/.output/public/_nuxt/BqsN2CZp.js +0 -1
  164. package/.output/public/_nuxt/Bs3IGOdt.js +0 -1
  165. package/.output/public/_nuxt/ByaiRTkI.js +0 -1
  166. package/.output/public/_nuxt/C9ePPGPX.js +0 -94
  167. package/.output/public/_nuxt/CA578xwz.js +0 -1
  168. package/.output/public/_nuxt/CDttUXKg.js +0 -1
  169. package/.output/public/_nuxt/CQozUI2A.js +0 -1
  170. package/.output/public/_nuxt/CSN71QT8.js +0 -1
  171. package/.output/public/_nuxt/CqCaqSd2.js +0 -1
  172. package/.output/public/_nuxt/D8v-efI7.js +0 -1
  173. package/.output/public/_nuxt/DBJqMhGy.js +0 -35
  174. package/.output/public/_nuxt/DR4hWRk7.js +0 -1
  175. package/.output/public/_nuxt/DRroQ-Xq.js +0 -1
  176. package/.output/public/_nuxt/DStnBfJS.js +0 -1
  177. package/.output/public/_nuxt/DXTYyv-V.js +0 -1
  178. package/.output/public/_nuxt/DeS1g0YT.js +0 -1
  179. package/.output/public/_nuxt/Deb6R53f.js +0 -1
  180. package/.output/public/_nuxt/DiDHllLr.js +0 -1
  181. package/.output/public/_nuxt/DvwlldUy.js +0 -1
  182. package/.output/public/_nuxt/DyCICqRh.js +0 -1
  183. package/.output/public/_nuxt/DzT4wm3Y.js +0 -1
  184. package/.output/public/_nuxt/E8nje24C.js +0 -1
  185. package/.output/public/_nuxt/RbPLLy5S.js +0 -1
  186. package/.output/public/_nuxt/builds/meta/cbc9377a-971e-4db1-b4b1-01807b82ee58.json +0 -1
  187. package/.output/public/_nuxt/entry.whtwWr_z.css +0 -1
  188. package/.output/public/_nuxt/error-404.Cq535Uij.css +0 -1
  189. package/.output/public/_nuxt/error-500.BHm_N15n.css +0 -1
  190. package/.output/public/_nuxt/jpnxxCHq.js +0 -1
  191. package/.output/public/_nuxt/sHsV3x2B.js +0 -1
  192. package/.output/public/_nuxt/sQEqbbg2.js +0 -1
  193. package/.output/public/_nuxt/vueform.ChEauysg.css +0 -1
  194. package/.output/server/chunks/build/client.manifest.mjs +0 -511
  195. package/.output/server/chunks/build/client.manifest.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-fetch-native",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "better fetch for Node.js. Works on any JavaScript runtime!",
5
5
  "repository": "unjs/node-fetch-native",
6
6
  "license": "MIT",
@@ -117,22 +117,22 @@
117
117
  "test": "pnpm lint && pnpm build && vitest run --coverage"
118
118
  },
119
119
  "devDependencies": {
120
- "@types/node": "^22.10.7",
121
- "@vitest/coverage-v8": "^3.0.2",
120
+ "@types/node": "^24.1.0",
121
+ "@vitest/coverage-v8": "^3.2.4",
122
122
  "abort-controller": "^3.0.0",
123
- "agent-base": "^7.1.3",
124
- "changelogen": "^0.5.7",
125
- "eslint": "^9.18.0",
126
- "eslint-config-unjs": "^0.4.2",
123
+ "agent-base": "^7.1.4",
124
+ "changelogen": "^0.6.2",
125
+ "eslint": "^9.32.0",
126
+ "eslint-config-unjs": "^0.5.0",
127
127
  "http-proxy-agent": "^7.0.2",
128
128
  "https-proxy-agent": "^7.0.6",
129
129
  "node-fetch": "^3.3.2",
130
- "prettier": "^3.4.2",
130
+ "prettier": "^3.6.2",
131
131
  "proxy-agent": "^6.5.0",
132
- "typescript": "^5.7.3",
133
- "unbuild": "^3.3.1",
134
- "undici": "^6.21.1",
135
- "vitest": "^3.0.2"
132
+ "typescript": "^5.9.2",
133
+ "unbuild": "^3.6.0",
134
+ "undici": "^6.21.3",
135
+ "vitest": "^3.2.4"
136
136
  },
137
- "packageManager": "pnpm@9.15.4"
137
+ "packageManager": "pnpm@10.14.0"
138
138
  }
@@ -1 +1 @@
1
- import{EventEmitter as f}from"node-mock-http/_polyfill/events";import{Buffer as h}from"node-mock-http/_polyfill/buffer";function o(n){throw new Error(`${n} is not implemented yet!`)}class i extends f{__unenv__={};readableEncoding=null;readableEnded=!0;readableFlowing=!1;readableHighWaterMark=0;readableLength=0;readableObjectMode=!1;readableAborted=!1;readableDidRead=!1;closed=!1;errored=null;readable=!1;destroyed=!1;static from(e,t){return new i(t)}constructor(e){super()}_read(e){}read(e){}setEncoding(e){return this}pause(){return this}resume(){return this}isPaused(){return!0}unpipe(e){return this}unshift(e,t){}wrap(e){return this}push(e,t){return!1}_destroy(e,t){this.removeAllListeners()}destroy(e){return this.destroyed=!0,this._destroy(e),this}pipe(e,t){return{}}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return this.destroy(),Promise.resolve()}async*[Symbol.asyncIterator](){throw o("Readable.asyncIterator")}iterator(e){throw o("Readable.iterator")}map(e,t){throw o("Readable.map")}filter(e,t){throw o("Readable.filter")}forEach(e,t){throw o("Readable.forEach")}reduce(e,t,r){throw o("Readable.reduce")}find(e,t){throw o("Readable.find")}findIndex(e,t){throw o("Readable.findIndex")}some(e,t){throw o("Readable.some")}toArray(e){throw o("Readable.toArray")}every(e,t){throw o("Readable.every")}flatMap(e,t){throw o("Readable.flatMap")}drop(e,t){throw o("Readable.drop")}take(e,t){throw o("Readable.take")}asIndexedPairs(e){throw o("Readable.asIndexedPairs")}}class l extends f{__unenv__={};writable=!0;writableEnded=!1;writableFinished=!1;writableHighWaterMark=0;writableLength=0;writableObjectMode=!1;writableCorked=0;closed=!1;errored=null;writableNeedDrain=!1;writableAborted=!1;destroyed=!1;_data;_encoding="utf8";constructor(e){super()}pipe(e,t){return{}}_write(e,t,r){if(this.writableEnded){r&&r();return}if(this._data===void 0)this._data=e;else{const s=typeof this._data=="string"?h.from(this._data,this._encoding||t||"utf8"):this._data,a=typeof e=="string"?h.from(e,t||this._encoding||"utf8"):e;this._data=h.concat([s,a])}this._encoding=t,r&&r()}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){const s=typeof t=="string"?this._encoding:"utf8",a=typeof t=="function"?t:typeof r=="function"?r:void 0;return this._write(e,s,a),!0}setDefaultEncoding(e){return this}end(e,t,r){const s=typeof e=="function"?e:typeof t=="function"?t:typeof r=="function"?r:void 0;if(this.writableEnded)return s&&s(),this;const a=e===s?void 0:e;if(a){const u=t===s?void 0:t;this.write(a,u,s)}return this.writableEnded=!0,this.writableFinished=!0,this.emit("close"),this.emit("finish"),this}cork(){}uncork(){}destroy(e){return this.destroyed=!0,delete this._data,this.removeAllListeners(),this}compose(e,t){throw new Error("Method not implemented.")}}const c=class{allowHalfOpen=!0;_destroy;constructor(e=new i,t=new l){Object.assign(this,e),Object.assign(this,t),this._destroy=g(e._destroy,t._destroy)}};function _(){return Object.assign(c.prototype,i.prototype),Object.assign(c.prototype,l.prototype),c}function g(...n){return function(...e){for(const t of n)t(...e)}}const m=_();class A extends m{__unenv__={};bufferSize=0;bytesRead=0;bytesWritten=0;connecting=!1;destroyed=!1;pending=!1;localAddress="";localPort=0;remoteAddress="";remoteFamily="";remotePort=0;autoSelectFamilyAttemptedAddresses=[];readyState="readOnly";constructor(e){super()}write(e,t,r){return!1}connect(e,t,r){return this}end(e,t,r){return this}setEncoding(e){return this}pause(){return this}resume(){return this}setTimeout(e,t){return this}setNoDelay(e){return this}setKeepAlive(e,t){return this}address(){return{}}unref(){return this}ref(){return this}destroySoon(){this.destroy()}resetAndDestroy(){const e=new Error("ERR_SOCKET_CLOSED");return e.code="ERR_SOCKET_CLOSED",this.destroy(e),this}}class y extends i{aborted=!1;httpVersion="1.1";httpVersionMajor=1;httpVersionMinor=1;complete=!0;connection;socket;headers={};trailers={};method="GET";url="/";statusCode=200;statusMessage="";closed=!1;errored=null;readable=!1;constructor(e){super(),this.socket=this.connection=e||new A}get rawHeaders(){const e=this.headers,t=[];for(const r in e)if(Array.isArray(e[r]))for(const s of e[r])t.push(r,s);else t.push(r,e[r]);return t}get rawTrailers(){return[]}setTimeout(e,t){return this}get headersDistinct(){return p(this.headers)}get trailersDistinct(){return p(this.trailers)}}function p(n){const e={};for(const[t,r]of Object.entries(n))t&&(e[t]=(Array.isArray(r)?r:[r]).filter(Boolean));return e}class w extends l{statusCode=200;statusMessage="";upgrading=!1;chunkedEncoding=!1;shouldKeepAlive=!1;useChunkedEncodingByDefault=!1;sendDate=!1;finished=!1;headersSent=!1;strictContentLength=!1;connection=null;socket=null;req;_headers={};constructor(e){super(),this.req=e}assignSocket(e){e._httpMessage=this,this.socket=e,this.connection=e,this.emit("socket",e),this._flush()}_flush(){this.flushHeaders()}detachSocket(e){}writeContinue(e){}writeHead(e,t,r){e&&(this.statusCode=e),typeof t=="string"&&(this.statusMessage=t,t=void 0);const s=r||t;if(s&&!Array.isArray(s))for(const a in s)this.setHeader(a,s[a]);return this.headersSent=!0,this}writeProcessing(){}setTimeout(e,t){return this}appendHeader(e,t){e=e.toLowerCase();const r=this._headers[e],s=[...Array.isArray(r)?r:[r],...Array.isArray(t)?t:[t]].filter(Boolean);return this._headers[e]=s.length>1?s:s[0],this}setHeader(e,t){return this._headers[e.toLowerCase()]=t,this}setHeaders(e){for(const[t,r]of Object.entries(e))this.setHeader(t,r);return this}getHeader(e){return this._headers[e.toLowerCase()]}getHeaders(){return this._headers}getHeaderNames(){return Object.keys(this._headers)}hasHeader(e){return e.toLowerCase()in this._headers}removeHeader(e){delete this._headers[e.toLowerCase()]}addTrailers(e){}flushHeaders(){}writeEarlyHints(e,t){typeof t=="function"&&t()}}const E=(()=>{const n=function(){};return n.prototype=Object.create(null),n})();function R(n={}){const e=new E,t=Array.isArray(n)||H(n)?n:Object.entries(n);for(const[r,s]of t)if(s){if(e[r]===void 0){e[r]=s;continue}e[r]=[...Array.isArray(e[r])?e[r]:[e[r]],...Array.isArray(s)?s:[s]]}return e}function H(n){return typeof n?.entries=="function"}function v(n={}){if(n instanceof Headers)return n;const e=new Headers;for(const[t,r]of Object.entries(n))if(r!==void 0){if(Array.isArray(r)){for(const s of r)e.append(t,String(s));continue}e.set(t,String(r))}return e}const S=new Set([101,204,205,304]);async function b(n,e){const t=new y,r=new w(t);t.url=e.url?.toString()||"/";let s;if(!t.url.startsWith("/")){const d=new URL(t.url);s=d.host,t.url=d.pathname+d.search+d.hash}t.method=e.method||"GET",t.headers=R(e.headers||{}),t.headers.host||(t.headers.host=e.host||s||"localhost"),t.connection.encrypted=t.connection.encrypted||e.protocol==="https",t.body=e.body||null,t.__unenv__=e.context,await n(t,r);let a=r._data;(S.has(r.statusCode)||t.method.toUpperCase()==="HEAD")&&(a=null,delete r._headers["content-length"]);const u={status:r.statusCode,statusText:r.statusMessage,headers:r._headers,body:a};return t.destroy(),r.destroy(),u}async function C(n,e,t={}){try{const r=await b(n,{url:e,...t});return new Response(r.body,{status:r.status,statusText:r.statusText,headers:v(r.headers)})}catch(r){return new Response(r.toString(),{status:Number.parseInt(r.statusCode||r.code)||500,statusText:r.statusText})}}export{y as IncomingMessage,w as ServerResponse,b as callNodeRequestHandler,C as fetchNodeRequestHandler};
1
+ import{EventEmitter as f}from"node-mock-http/_polyfill/events";import{Buffer as h}from"node-mock-http/_polyfill/buffer";function o(n){throw new Error(`${n} is not implemented yet!`)}class i extends f{__unenv__={};readableEncoding=null;readableEnded=!0;readableFlowing=!1;readableHighWaterMark=0;readableLength=0;readableObjectMode=!1;readableAborted=!1;readableDidRead=!1;closed=!1;errored=null;readable=!1;destroyed=!1;static from(e,t){return new i(t)}constructor(e){super()}_read(e){}read(e){}setEncoding(e){return this}pause(){return this}resume(){return this}isPaused(){return!0}unpipe(e){return this}unshift(e,t){}wrap(e){return this}push(e,t){return!1}_destroy(e,t){this.removeAllListeners()}destroy(e){return this.destroyed=!0,this._destroy(e),this}pipe(e,t){return{}}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return this.destroy(),Promise.resolve()}async*[Symbol.asyncIterator](){throw o("Readable.asyncIterator")}iterator(e){throw o("Readable.iterator")}map(e,t){throw o("Readable.map")}filter(e,t){throw o("Readable.filter")}forEach(e,t){throw o("Readable.forEach")}reduce(e,t,r){throw o("Readable.reduce")}find(e,t){throw o("Readable.find")}findIndex(e,t){throw o("Readable.findIndex")}some(e,t){throw o("Readable.some")}toArray(e){throw o("Readable.toArray")}every(e,t){throw o("Readable.every")}flatMap(e,t){throw o("Readable.flatMap")}drop(e,t){throw o("Readable.drop")}take(e,t){throw o("Readable.take")}asIndexedPairs(e){throw o("Readable.asIndexedPairs")}}class l extends f{__unenv__={};writable=!0;writableEnded=!1;writableFinished=!1;writableHighWaterMark=0;writableLength=0;writableObjectMode=!1;writableCorked=0;closed=!1;errored=null;writableNeedDrain=!1;writableAborted=!1;destroyed=!1;_data;_encoding="utf8";constructor(e){super()}pipe(e,t){return{}}_write(e,t,r){if(this.writableEnded){r&&r();return}if(this._data===void 0)this._data=e;else{const s=typeof this._data=="string"?h.from(this._data,this._encoding||t||"utf8"):this._data,a=typeof e=="string"?h.from(e,t||this._encoding||"utf8"):e;this._data=h.concat([s,a])}this._encoding=t,r&&r()}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){const s=typeof t=="string"?this._encoding:"utf8",a=typeof t=="function"?t:typeof r=="function"?r:void 0;return this._write(e,s,a),!0}setDefaultEncoding(e){return this}end(e,t,r){const s=typeof e=="function"?e:typeof t=="function"?t:typeof r=="function"?r:void 0;if(this.writableEnded)return s&&s(),this;const a=e===s?void 0:e;if(a){const u=t===s?void 0:t;this.write(a,u,s)}return this.writableEnded=!0,this.writableFinished=!0,this.emit("close"),this.emit("finish"),this}cork(){}uncork(){}destroy(e){return this.destroyed=!0,delete this._data,this.removeAllListeners(),this}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return Promise.resolve()}}const c=class{allowHalfOpen=!0;_destroy;constructor(e=new i,t=new l){Object.assign(this,e),Object.assign(this,t),this._destroy=m(e._destroy,t._destroy)}};function _(){return Object.assign(c.prototype,i.prototype),Object.assign(c.prototype,l.prototype),c}function m(...n){return function(...e){for(const t of n)t(...e)}}const g=_();class A extends g{__unenv__={};bufferSize=0;bytesRead=0;bytesWritten=0;connecting=!1;destroyed=!1;pending=!1;localAddress="";localPort=0;remoteAddress="";remoteFamily="";remotePort=0;autoSelectFamilyAttemptedAddresses=[];readyState="readOnly";constructor(e){super()}write(e,t,r){return!1}connect(e,t,r){return this}end(e,t,r){return this}setEncoding(e){return this}pause(){return this}resume(){return this}setTimeout(e,t){return this}setNoDelay(e){return this}setKeepAlive(e,t){return this}address(){return{}}unref(){return this}ref(){return this}destroySoon(){this.destroy()}resetAndDestroy(){const e=new Error("ERR_SOCKET_CLOSED");return e.code="ERR_SOCKET_CLOSED",this.destroy(e),this}}class y extends i{aborted=!1;httpVersion="1.1";httpVersionMajor=1;httpVersionMinor=1;complete=!0;connection;socket;headers={};trailers={};method="GET";url="/";statusCode=200;statusMessage="";closed=!1;errored=null;readable=!1;constructor(e){super(),this.socket=this.connection=e||new A}get rawHeaders(){const e=this.headers,t=[];for(const r in e)if(Array.isArray(e[r]))for(const s of e[r])t.push(r,s);else t.push(r,e[r]);return t}get rawTrailers(){return[]}setTimeout(e,t){return this}get headersDistinct(){return p(this.headers)}get trailersDistinct(){return p(this.trailers)}}function p(n){const e={};for(const[t,r]of Object.entries(n))t&&(e[t]=(Array.isArray(r)?r:[r]).filter(Boolean));return e}class w extends l{statusCode=200;statusMessage="";upgrading=!1;chunkedEncoding=!1;shouldKeepAlive=!1;useChunkedEncodingByDefault=!1;sendDate=!1;finished=!1;headersSent=!1;strictContentLength=!1;connection=null;socket=null;req;_headers={};constructor(e){super(),this.req=e}assignSocket(e){e._httpMessage=this,this.socket=e,this.connection=e,this.emit("socket",e),this._flush()}_flush(){this.flushHeaders()}detachSocket(e){}writeContinue(e){}writeHead(e,t,r){e&&(this.statusCode=e),typeof t=="string"&&(this.statusMessage=t,t=void 0);const s=r||t;if(s&&!Array.isArray(s))for(const a in s)this.setHeader(a,s[a]);return this.headersSent=!0,this}writeProcessing(){}setTimeout(e,t){return this}appendHeader(e,t){e=e.toLowerCase();const r=this._headers[e],s=[...Array.isArray(r)?r:[r],...Array.isArray(t)?t:[t]].filter(Boolean);return this._headers[e]=s.length>1?s:s[0],this}setHeader(e,t){return this._headers[e.toLowerCase()]=t,this}setHeaders(e){for(const[t,r]of Object.entries(e))this.setHeader(t,r);return this}getHeader(e){return this._headers[e.toLowerCase()]}getHeaders(){return this._headers}getHeaderNames(){return Object.keys(this._headers)}hasHeader(e){return e.toLowerCase()in this._headers}removeHeader(e){delete this._headers[e.toLowerCase()]}addTrailers(e){}flushHeaders(){}writeEarlyHints(e,t){typeof t=="function"&&t()}}const E=(()=>{const n=function(){};return n.prototype=Object.create(null),n})();function R(n={}){const e=new E,t=Array.isArray(n)||H(n)?n:Object.entries(n);for(const[r,s]of t)if(s){if(e[r]===void 0){e[r]=s;continue}e[r]=[...Array.isArray(e[r])?e[r]:[e[r]],...Array.isArray(s)?s:[s]]}return e}function H(n){return typeof n?.entries=="function"}function v(n={}){if(n instanceof Headers)return n;const e=new Headers;for(const[t,r]of Object.entries(n))if(r!==void 0){if(Array.isArray(r)){for(const s of r)e.append(t,String(s));continue}e.set(t,String(r))}return e}const S=new Set([101,204,205,304]);async function b(n,e){const t=new y,r=new w(t);t.url=e.url?.toString()||"/";let s;if(!t.url.startsWith("/")){const d=new URL(t.url);s=d.host,t.url=d.pathname+d.search+d.hash}t.method=e.method||"GET",t.headers=R(e.headers||{}),t.headers.host||(t.headers.host=e.host||s||"localhost"),t.connection.encrypted=t.connection.encrypted||e.protocol==="https",t.body=e.body||null,t.__unenv__=e.context,await n(t,r);let a=r._data;(S.has(r.statusCode)||t.method.toUpperCase()==="HEAD")&&(a=null,delete r._headers["content-length"]);const u={status:r.statusCode,statusText:r.statusMessage,headers:r._headers,body:a};return t.destroy(),r.destroy(),u}async function C(n,e,t={}){try{const r=await b(n,{url:e,...t});return new Response(r.body,{status:r.status,statusText:r.statusText,headers:v(r.headers)})}catch(r){return new Response(r.toString(),{status:Number.parseInt(r.statusCode||r.code)||500,statusText:r.statusText})}}export{y as IncomingMessage,w as ServerResponse,b as callNodeRequestHandler,C as fetchNodeRequestHandler};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mock-http",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "repository": "unjs/node-mock-http",
6
6
  "license": "MIT",
@@ -47,17 +47,17 @@
47
47
  "test:types": "tsc --noEmit --skipLibCheck"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "^24.1.0",
50
+ "@types/node": "^24.3.1",
51
51
  "@vitest/coverage-v8": "^3.2.4",
52
52
  "automd": "^0.4.0",
53
53
  "changelogen": "^0.6.2",
54
- "eslint": "^9.32.0",
54
+ "eslint": "^9.34.0",
55
55
  "eslint-config-unjs": "^0.5.0",
56
56
  "jiti": "^2.5.1",
57
57
  "prettier": "^3.6.2",
58
- "typescript": "^5.8.3",
59
- "unbuild": "^3.6.0",
58
+ "typescript": "^5.9.2",
59
+ "unbuild": "^3.6.1",
60
60
  "vitest": "^3.2.4"
61
61
  },
62
- "packageManager": "pnpm@10.13.1"
62
+ "packageManager": "pnpm@10.15.1"
63
63
  }
@@ -1,7 +1,7 @@
1
1
  let USER_AGENT;
2
2
  if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
3
3
  const NAME = 'oauth4webapi';
4
- const VERSION = 'v3.8.1';
4
+ const VERSION = 'v3.8.2';
5
5
  USER_AGENT = `${NAME}/${VERSION}`;
6
6
  }
7
7
  function looseInstanceOf(input, expected) {
@@ -670,7 +670,7 @@ export async function pushedAuthorizationRequest(as, client, clientAuthenticatio
670
670
  await options.DPoP.addProof(url, headers, 'POST');
671
671
  }
672
672
  const response = await authenticatedRequest(as, client, clientAuthentication, url, body, headers, options);
673
- options?.DPoP?.cacheNonce(response);
673
+ options?.DPoP?.cacheNonce(response, url);
674
674
  return response;
675
675
  }
676
676
  class DPoPHandler {
@@ -732,16 +732,18 @@ class DPoPHandler {
732
732
  htm,
733
733
  nonce,
734
734
  htu: `${url.origin}${url.pathname}`,
735
- ath: accessToken ? b64u(await crypto.subtle.digest('SHA-256', buf(accessToken))) : undefined,
735
+ ath: accessToken
736
+ ? b64u(await crypto.subtle.digest('SHA-256', buf(accessToken)))
737
+ : undefined,
736
738
  };
737
739
  this.#modifyAssertion?.(this.#header, payload);
738
740
  headers.set('dpop', await signJwt(this.#header, payload, this.#privateKey));
739
741
  }
740
- cacheNonce(response) {
742
+ cacheNonce(response, url) {
741
743
  try {
742
744
  const nonce = response.headers.get('dpop-nonce');
743
745
  if (nonce) {
744
- this.#set(new URL(response.url).origin, nonce);
746
+ this.#set(url.origin, nonce);
745
747
  }
746
748
  }
747
749
  catch { }
@@ -951,7 +953,7 @@ async function resourceRequest(accessToken, method, url, headers, body, options)
951
953
  redirect: 'manual',
952
954
  signal: signal(url, options?.signal),
953
955
  });
954
- options?.DPoP?.cacheNonce(response);
956
+ options?.DPoP?.cacheNonce(response, url);
955
957
  return response;
956
958
  }
957
959
  export async function protectedResourceRequest(accessToken, method, url, headers, body, options) {
@@ -1154,7 +1156,7 @@ async function tokenEndpointRequest(as, client, clientAuthentication, grantType,
1154
1156
  await options.DPoP.addProof(url, headers, 'POST');
1155
1157
  }
1156
1158
  const response = await authenticatedRequest(as, client, clientAuthentication, url, parameters, headers, options);
1157
- options?.DPoP?.cacheNonce(response);
1159
+ options?.DPoP?.cacheNonce(response, url);
1158
1160
  return response;
1159
1161
  }
1160
1162
  export async function refreshTokenGrantRequest(as, client, clientAuthentication, refreshToken, options) {
@@ -2420,7 +2422,7 @@ export async function dynamicClientRegistrationRequest(as, metadata, options) {
2420
2422
  redirect: 'manual',
2421
2423
  signal: signal(url, options?.signal),
2422
2424
  });
2423
- options?.DPoP?.cacheNonce(response);
2425
+ options?.DPoP?.cacheNonce(response, url);
2424
2426
  return response;
2425
2427
  }
2426
2428
  export async function processDynamicClientRegistrationResponse(response) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth4webapi",
3
- "version": "3.8.1",
3
+ "version": "3.8.2",
4
4
  "description": "Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes",
5
5
  "keywords": [
6
6
  "access token",
@@ -78,28 +78,28 @@
78
78
  "devDependencies": {
79
79
  "@koa/cors": "^5.0.0",
80
80
  "@types/koa__cors": "^5.0.0",
81
- "@types/node": "^22.16.5",
82
- "@types/qunit": "^2.19.12",
81
+ "@types/node": "^22.18.6",
82
+ "@types/qunit": "^2.19.13",
83
83
  "archiver": "^7.0.1",
84
84
  "ava": "^6.4.1",
85
- "esbuild": "^0.25.8",
85
+ "esbuild": "^0.25.10",
86
86
  "happy-dom": "^18.0.1",
87
87
  "http-cookie-agent": "^7.0.2",
88
88
  "jose": "^6.1.0",
89
- "oidc-provider": "^9.4.0",
89
+ "oidc-provider": "^9.5.1",
90
90
  "patch-package": "^8.0.0",
91
91
  "prettier": "^3.6.2",
92
92
  "prettier-plugin-jsdoc": "^1.3.3",
93
93
  "qunit": "^2.24.1",
94
- "raw-body": "^3.0.0",
94
+ "raw-body": "^3.0.1",
95
95
  "selfsigned": "^3.0.1",
96
96
  "timekeeper": "^2.3.1",
97
97
  "tough-cookie": "^5.1.2",
98
- "tsx": "^4.20.3",
99
- "typedoc": "0.27.9",
100
- "typedoc-plugin-markdown": "4.3.1",
101
- "typedoc-plugin-mdn-links": "4.0.3",
102
- "typescript": "^5.8.3",
103
- "undici": "^7.12.0"
98
+ "tsx": "^4.20.5",
99
+ "typedoc": "^0.28.11",
100
+ "typedoc-plugin-markdown": "^4.8.1",
101
+ "typedoc-plugin-mdn-links": "^5.0.9",
102
+ "typescript": "^5.9.2",
103
+ "undici": "^7.16.0"
104
104
  }
105
105
  }
@@ -5,7 +5,7 @@ let headers;
5
5
  let USER_AGENT;
6
6
  if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
7
7
  const NAME = 'openid-client';
8
- const VERSION = 'v6.8.0';
8
+ const VERSION = 'v6.8.1';
9
9
  USER_AGENT = `${NAME}/${VERSION}`;
10
10
  headers = { 'user-agent': USER_AGENT };
11
11
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openid-client",
3
- "version": "6.8.0",
3
+ "version": "6.8.1",
4
4
  "description": "OAuth 2 / OpenID Connect Client API for JavaScript Runtimes",
5
5
  "keywords": [
6
6
  "access token",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "dependencies": {
88
88
  "jose": "^6.1.0",
89
- "oauth4webapi": "^3.8.1"
89
+ "oauth4webapi": "^3.8.2"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@koa/cors": "^5.0.0",
@@ -95,21 +95,21 @@
95
95
  "@types/express": "^5.0.3",
96
96
  "@types/express-session": "^1.18.2",
97
97
  "@types/koa__cors": "^5.0.0",
98
- "@types/node": "^22.18.0",
98
+ "@types/node": "^22.18.6",
99
99
  "@types/passport": "^1.0.17",
100
100
  "@types/qunit": "^2.19.13",
101
101
  "archiver": "^7.0.1",
102
102
  "ava": "^6.4.1",
103
- "esbuild": "^0.25.9",
103
+ "esbuild": "^0.25.10",
104
104
  "happy-dom": "^18.0.1",
105
105
  "http-cookie-agent": "^7.0.2",
106
- "ky": "^1.9.1",
106
+ "ky": "^1.10.0",
107
107
  "oidc-provider": "^9.5.1",
108
108
  "patch-package": "^8.0.0",
109
109
  "prettier": "^3.6.2",
110
110
  "prettier-plugin-jsdoc": "^1.3.3",
111
111
  "qunit": "^2.24.1",
112
- "raw-body": "^3.0.0",
112
+ "raw-body": "^3.0.1",
113
113
  "selfsigned": "^3.0.1",
114
114
  "tough-cookie": "^5.1.2",
115
115
  "tsx": "^4.20.5",
@@ -117,6 +117,6 @@
117
117
  "typedoc-plugin-markdown": "^4.8.1",
118
118
  "typedoc-plugin-mdn-links": "^5.0.9",
119
119
  "typescript": "^5.9.2",
120
- "undici": "^7.15.0"
120
+ "undici": "^7.16.0"
121
121
  }
122
122
  }
@@ -4,6 +4,16 @@ const hasBuffer = typeof Buffer !== 'undefined'
4
4
  const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/
5
5
  const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/
6
6
 
7
+ /**
8
+ * @description Internal parse function that parses JSON text with security checks.
9
+ * @private
10
+ * @param {string|Buffer} text - The JSON text string or Buffer to parse.
11
+ * @param {Function} [reviver] - The JSON.parse() optional reviver argument.
12
+ * @param {import('./types').ParseOptions} [options] - Optional configuration object.
13
+ * @returns {*} The parsed object.
14
+ * @throws {SyntaxError} If a forbidden prototype property is found and `options.protoAction` or
15
+ * `options.constructorAction` is `'error'`.
16
+ */
7
17
  function _parse (text, reviver, options) {
8
18
  // Normalize arguments
9
19
  if (options == null) {
@@ -56,6 +66,14 @@ function _parse (text, reviver, options) {
56
66
  return filter(obj, { protoAction, constructorAction, safe: options && options.safe })
57
67
  }
58
68
 
69
+ /**
70
+ * @description Scans and filters an object for forbidden prototype properties.
71
+ * @param {Object} obj - The object being scanned.
72
+ * @param {import('./types').ParseOptions} [options] - Optional configuration object.
73
+ * @returns {Object|null} The filtered object, or `null` if safe mode is enabled and issues are found.
74
+ * @throws {SyntaxError} If a forbidden prototype property is found and `options.protoAction` or
75
+ * `options.constructorAction` is `'error'`.
76
+ */
59
77
  function filter (obj, { protoAction = 'error', constructorAction = 'error', safe } = {}) {
60
78
  let next = [obj]
61
79
 
@@ -76,6 +94,8 @@ function filter (obj, { protoAction = 'error', constructorAction = 'error', safe
76
94
 
77
95
  if (constructorAction !== 'ignore' &&
78
96
  Object.prototype.hasOwnProperty.call(node, 'constructor') &&
97
+ node.constructor !== null &&
98
+ typeof node.constructor === 'object' &&
79
99
  Object.prototype.hasOwnProperty.call(node.constructor, 'prototype')) { // Avoid calling node.hasOwnProperty directly
80
100
  if (safe === true) {
81
101
  return null
@@ -97,6 +117,15 @@ function filter (obj, { protoAction = 'error', constructorAction = 'error', safe
97
117
  return obj
98
118
  }
99
119
 
120
+ /**
121
+ * @description Parses a given JSON-formatted text into an object.
122
+ * @param {string|Buffer} text - The JSON text string or Buffer to parse.
123
+ * @param {Function} [reviver] - The `JSON.parse()` optional reviver argument, or options object.
124
+ * @param {import('./types').ParseOptions} [options] - Optional configuration object.
125
+ * @returns {*} The parsed object.
126
+ * @throws {SyntaxError} If the JSON text is malformed or contains forbidden prototype properties
127
+ * when `options.protoAction` or `options.constructorAction` is `'error'`.
128
+ */
100
129
  function parse (text, reviver, options) {
101
130
  const { stackTraceLimit } = Error
102
131
  Error.stackTraceLimit = 0
@@ -107,6 +136,12 @@ function parse (text, reviver, options) {
107
136
  }
108
137
  }
109
138
 
139
+ /**
140
+ * @description Safely parses a given JSON-formatted text into an object.
141
+ * @param {string|Buffer} text - The JSON text string or Buffer to parse.
142
+ * @param {Function} [reviver] - The `JSON.parse()` optional reviver argument.
143
+ * @returns {*|null|undefined} The parsed object, `null` if security issues found, or `undefined` on parse error.
144
+ */
110
145
  function safeParse (text, reviver) {
111
146
  const { stackTraceLimit } = Error
112
147
  Error.stackTraceLimit = 0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secure-json-parse",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "JSON parse with prototype poisoning protection",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -62,7 +62,6 @@
62
62
  }
63
63
  ],
64
64
  "devDependencies": {
65
- "@fastify/pre-commit": "^2.1.0",
66
65
  "airtap": "^5.0.0",
67
66
  "airtap-playwright": "^1.0.1",
68
67
  "eslint": "^9.17.0",
@@ -70,6 +69,6 @@
70
69
  "nyc": "^17.0.0",
71
70
  "playwright": "^1.43.1",
72
71
  "tape": "^5.7.5",
73
- "tsd": "^0.31.0"
72
+ "tsd": "^0.33.0"
74
73
  }
75
74
  }
@@ -111,11 +111,25 @@ class SemVer {
111
111
  other = new SemVer(other, this.options)
112
112
  }
113
113
 
114
- return (
115
- compareIdentifiers(this.major, other.major) ||
116
- compareIdentifiers(this.minor, other.minor) ||
117
- compareIdentifiers(this.patch, other.patch)
118
- )
114
+ if (this.major < other.major) {
115
+ return -1
116
+ }
117
+ if (this.major > other.major) {
118
+ return 1
119
+ }
120
+ if (this.minor < other.minor) {
121
+ return -1
122
+ }
123
+ if (this.minor > other.minor) {
124
+ return 1
125
+ }
126
+ if (this.patch < other.patch) {
127
+ return -1
128
+ }
129
+ if (this.patch > other.patch) {
130
+ return 1
131
+ }
132
+ return 0
119
133
  }
120
134
 
121
135
  comparePre (other) {
@@ -2,6 +2,10 @@
2
2
 
3
3
  const numeric = /^[0-9]+$/
4
4
  const compareIdentifiers = (a, b) => {
5
+ if (typeof a === 'number' && typeof b === 'number') {
6
+ return a === b ? 0 : a < b ? -1 : 1
7
+ }
8
+
5
9
  const anum = numeric.test(a)
6
10
  const bnum = numeric.test(b)
7
11
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semver",
3
- "version": "7.7.2",
3
+ "version": "7.7.3",
4
4
  "description": "The semantic version parser used by npm.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@npmcli/eslint-config": "^5.0.0",
18
- "@npmcli/template-oss": "4.24.3",
18
+ "@npmcli/template-oss": "4.25.1",
19
19
  "benchmark": "^2.1.4",
20
20
  "tap": "^16.0.0"
21
21
  },
@@ -52,7 +52,7 @@
52
52
  "author": "GitHub Inc.",
53
53
  "templateOSS": {
54
54
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
55
- "version": "4.24.3",
55
+ "version": "4.25.1",
56
56
  "engines": ">=10",
57
57
  "distPaths": [
58
58
  "classes/",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shiki",
3
3
  "type": "module",
4
- "version": "3.13.0",
4
+ "version": "3.14.0",
5
5
  "description": "A beautiful Syntax Highlighter.",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -48,17 +48,17 @@
48
48
  "dependencies": {
49
49
  "@shikijs/vscode-textmate": "^10.0.2",
50
50
  "@types/hast": "^3.0.4",
51
- "@shikijs/core": "3.13.0",
52
- "@shikijs/engine-oniguruma": "3.13.0",
53
- "@shikijs/engine-javascript": "3.13.0",
54
- "@shikijs/langs": "3.13.0",
55
- "@shikijs/themes": "3.13.0",
56
- "@shikijs/types": "3.13.0"
51
+ "@shikijs/core": "3.14.0",
52
+ "@shikijs/engine-oniguruma": "3.14.0",
53
+ "@shikijs/langs": "3.14.0",
54
+ "@shikijs/themes": "3.14.0",
55
+ "@shikijs/engine-javascript": "3.14.0",
56
+ "@shikijs/types": "3.14.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "rollup-plugin-copy": "^3.5.0",
60
- "tm-grammars": "^1.24.12",
61
- "tm-themes": "^1.10.9",
60
+ "tm-grammars": "^1.25.1",
61
+ "tm-themes": "^1.10.12",
62
62
  "vscode-oniguruma": "1.7.0"
63
63
  },
64
64
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "simple-swizzle",
3
3
  "description": "Simply swizzle your arguments",
4
- "version": "0.2.2",
4
+ "version": "0.2.4",
5
5
  "author": "Qix (http://github.com/qix-)",
6
6
  "keywords": [
7
7
  "argument",