crypto: fix ft.dirname is not a function

This commit is contained in:
Abdullah Atta
2024-08-28 12:49:09 +05:00
parent 7d8a16c463
commit 873f976fd3
4 changed files with 35 additions and 3 deletions

View File

@@ -1553,6 +1553,20 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/typescript": {
"version": "5.5.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz",
"integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==",
"dev": true,
"peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/ufo": { "node_modules/ufo": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.1.2.tgz", "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.1.2.tgz",
@@ -2886,6 +2900,13 @@
"integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
"dev": true "dev": true
}, },
"typescript": {
"version": "5.5.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz",
"integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==",
"dev": true,
"peer": true
},
"ufo": { "ufo": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.1.2.tgz", "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.1.2.tgz",

File diff suppressed because one or more lines are too long

View File

@@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import "./@types/sodium-native/index.d.ts";
import { import {
crypto_pwhash as sodium_native_crypto_pwhash, crypto_pwhash as sodium_native_crypto_pwhash,
crypto_generichash as sodium_native_crypto_generichash, crypto_generichash as sodium_native_crypto_generichash,

View File

@@ -1,12 +1,13 @@
{ {
"extends": "../../tsconfig", "extends": "../../tsconfig",
"compilerOptions": { "compilerOptions": {
"outDir": "./dist" "outDir": "./dist",
"typeRoots": ["./node_modules/@types", "./src/@types"]
}, },
"ts-node": { "ts-node": {
"compilerOptions": { "compilerOptions": {
"module": "CommonJS" "module": "CommonJS"
} }
}, },
"include": ["src/", "src/@types/sodium-native/index.d.ts"] "include": ["src/"]
} }