@h3ravel/http 11.3.2 → 11.3.4
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.
- package/dist/find-up-simple-CPevfdC2.cjs +1 -2
- package/dist/find-up-simple-DLa63O5_.js +1 -2
- package/dist/index.cjs +171 -269
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +169 -268
- package/package.json +10 -4
- package/dist/find-up-simple-CPevfdC2.cjs.map +0 -1
- package/dist/find-up-simple-DLa63O5_.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/http",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.4",
|
|
4
4
|
"description": "HTTP kernel, middleware pipeline, request/response classes for H3ravel.",
|
|
5
|
+
"h3ravel": {
|
|
6
|
+
"providers": [
|
|
7
|
+
"HttpServiceProvider"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "./dist/index.js",
|
|
7
12
|
"types": "./dist/index.d.ts",
|
|
@@ -36,13 +41,14 @@
|
|
|
36
41
|
"laravel"
|
|
37
42
|
],
|
|
38
43
|
"dependencies": {
|
|
44
|
+
"@h3ravel/musket": "^0.1.8",
|
|
39
45
|
"h3": "^2.0.0-beta.4",
|
|
40
46
|
"srvx": "^0.8.2",
|
|
41
|
-
"@h3ravel/support": "^0.
|
|
42
|
-
"@h3ravel/shared": "^0.
|
|
47
|
+
"@h3ravel/support": "^0.14.2",
|
|
48
|
+
"@h3ravel/shared": "^0.22.3"
|
|
43
49
|
},
|
|
44
50
|
"peerDependencies": {
|
|
45
|
-
"@h3ravel/core": "^1.
|
|
51
|
+
"@h3ravel/core": "^1.17.0"
|
|
46
52
|
},
|
|
47
53
|
"devDependencies": {
|
|
48
54
|
"typescript": "^5.4.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-up-simple-CPevfdC2.cjs","names":["process","path","fsPromises"],"sources":["../../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js"],"sourcesContent":["import process from 'node:process';\nimport fsPromises from 'node:fs/promises';\nimport {fileURLToPath} from 'node:url';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function findUp(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt ?? root));\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\t\ttry {\n\t\t\tconst stats = await fsPromises.stat(filePath); // eslint-disable-line no-await-in-loop\n\t\t\tif ((type === 'file' && stats.isFile()) || (type === 'directory' && stats.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n\nexport function findUpSync(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt) ?? root);\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\n\t\ttry {\n\t\t\tconst stats = fs.statSync(filePath, {throwIfNoEntry: false});\n\t\t\tif ((type === 'file' && stats?.isFile()) || (type === 'directory' && stats?.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAQA,eAAsB,OAAO,MAAM,EAClC,MAAMA,qBAAQ,KAAK,EACnB,OAAO,QACP,WACG,EAAE,EAAE;CACP,IAAI,YAAYC,kBAAK,QAAQ,OAAO,IAAI,IAAI,GAAG;CAC/C,MAAM,EAAC,SAAQA,kBAAK,MAAM,UAAU;AACpC,UAASA,kBAAK,QAAQ,WAAW,OAAO,UAAU,KAAK,CAAC;CACxD,MAAM,iBAAiBA,kBAAK,WAAW,KAAK;AAE5C,QAAO,WAAW;EACjB,MAAM,WAAW,iBAAiB,OAAOA,kBAAK,KAAK,WAAW,KAAK;AACnE,MAAI;GACH,MAAM,QAAQ,MAAMC,yBAAW,KAAK,SAAS;AAC7C,OAAK,SAAS,UAAU,MAAM,QAAQ,IAAM,SAAS,eAAe,MAAM,aAAa,CACtF,QAAO;UAED;AAER,MAAI,cAAc,UAAU,cAAc,KACzC;AAGD,cAAYD,kBAAK,QAAQ,UAAU;;;;;CAzB/B,UAAS,cAAa,qBAAqB,kCAAoB,UAAU,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-up-simple-DLa63O5_.js","names":[],"sources":["../../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js"],"sourcesContent":["import process from 'node:process';\nimport fsPromises from 'node:fs/promises';\nimport {fileURLToPath} from 'node:url';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function findUp(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt ?? root));\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\t\ttry {\n\t\t\tconst stats = await fsPromises.stat(filePath); // eslint-disable-line no-await-in-loop\n\t\t\tif ((type === 'file' && stats.isFile()) || (type === 'directory' && stats.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n\nexport function findUpSync(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt) ?? root);\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\n\t\ttry {\n\t\t\tconst stats = fs.statSync(filePath, {throwIfNoEntry: false});\n\t\t\tif ((type === 'file' && stats?.isFile()) || (type === 'directory' && stats?.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAQA,eAAsB,OAAO,MAAM,EAClC,MAAM,QAAQ,KAAK,EACnB,OAAO,QACP,WACG,EAAE,EAAE;CACP,IAAI,YAAY,KAAK,QAAQ,OAAO,IAAI,IAAI,GAAG;CAC/C,MAAM,EAAC,SAAQ,KAAK,MAAM,UAAU;AACpC,UAAS,KAAK,QAAQ,WAAW,OAAO,UAAU,KAAK,CAAC;CACxD,MAAM,iBAAiB,KAAK,WAAW,KAAK;AAE5C,QAAO,WAAW;EACjB,MAAM,WAAW,iBAAiB,OAAO,KAAK,KAAK,WAAW,KAAK;AACnE,MAAI;GACH,MAAM,QAAQ,MAAM,WAAW,KAAK,SAAS;AAC7C,OAAK,SAAS,UAAU,MAAM,QAAQ,IAAM,SAAS,eAAe,MAAM,aAAa,CACtF,QAAO;UAED;AAER,MAAI,cAAc,UAAU,cAAc,KACzC;AAGD,cAAY,KAAK,QAAQ,UAAU;;;;;CAzB/B,UAAS,cAAa,qBAAqB,MAAM,cAAc,UAAU,GAAG"}
|