@thirdweb-dev/storage
Advanced tools
Comparing version
@@ -6,2 +6,3 @@ 'use strict'; | ||
var CIDTool = require('cid-tool'); | ||
var crypto = require('@thirdweb-dev/crypto'); | ||
var FormData = require('form-data'); | ||
@@ -125,6 +126,3 @@ var uuid = require('uuid'); | ||
} | ||
// this is on purpose because we're using the crypto module only in node | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const crypto = require("crypto"); | ||
const hashedSecretKey = crypto.createHash("sha256").update(secretKey).digest("hex"); | ||
const hashedSecretKey = crypto.sha256HexSync(secretKey); | ||
const derivedClientId = hashedSecretKey.slice(0, 32); | ||
@@ -384,14 +382,8 @@ return url.replace("{clientId}", derivedClientId); | ||
name: "@thirdweb-dev/storage", | ||
version: "2.0.3", | ||
version: "2.0.4", | ||
main: "dist/thirdweb-dev-storage.cjs.js", | ||
module: "dist/thirdweb-dev-storage.esm.js", | ||
browser: { | ||
"./dist/thirdweb-dev-storage.esm.js": "./dist/thirdweb-dev-storage.browser.esm.js" | ||
}, | ||
exports: { | ||
".": { | ||
module: { | ||
browser: "./dist/thirdweb-dev-storage.browser.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.esm.js" | ||
}, | ||
module: "./dist/thirdweb-dev-storage.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.cjs.js" | ||
@@ -407,3 +399,3 @@ }, | ||
format: "prettier --write 'src/**/*'", | ||
lint: "eslint src/", | ||
lint: "eslint src/ && bunx publint --strict --level warning", | ||
fix: "eslint src/ --fix", | ||
@@ -423,33 +415,30 @@ "generate-docs": "api-extractor run --local && api-documenter markdown -i ./temp -o ./docs", | ||
preconstruct: { | ||
exports: { | ||
envConditions: [ | ||
"browser" | ||
] | ||
} | ||
exports: true | ||
}, | ||
devDependencies: { | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@microsoft/api-documenter": "^7.22.30", | ||
"@microsoft/api-extractor": "^7.36.3", | ||
"@microsoft/tsdoc": "^0.14.1", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@microsoft/api-documenter": "^7.23.12", | ||
"@microsoft/api-extractor": "^7.38.3", | ||
"@microsoft/tsdoc": "^0.14.2", | ||
"@preconstruct/cli": "2.7.0", | ||
"@swc-node/register": "^1.6.6", | ||
"@swc-node/register": "^1.6.8", | ||
"@thirdweb-dev/tsconfig": "workspace:*", | ||
"@types/chai": "^4.3.5", | ||
"@types/mocha": "^10.0.0", | ||
"@types/uuid": "^9.0.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
chai: "^4.3.6", | ||
eslint: "^8.45.0", | ||
"@types/chai": "^4.3.10", | ||
"@types/mocha": "^10.0.4", | ||
"@types/uuid": "^9.0.7", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
chai: "^4.3.10", | ||
eslint: "^8.53.0", | ||
"eslint-config-thirdweb": "workspace:*", | ||
"eslint-plugin-tsdoc": "^0.2.16", | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
esm: "^3.2.25", | ||
mocha: "^10.2.0", | ||
rimraf: "^3.0.2", | ||
typedoc: "^0.25.2", | ||
typescript: "^5.1.6" | ||
typedoc: "^0.25.3", | ||
typescript: "^5.2.2" | ||
}, | ||
dependencies: { | ||
"@thirdweb-dev/crypto": "workspace:*", | ||
"cid-tool": "^3.0.0", | ||
@@ -456,0 +445,0 @@ "form-data": "^4.0.0", |
@@ -6,2 +6,3 @@ 'use strict'; | ||
var CIDTool = require('cid-tool'); | ||
var crypto = require('@thirdweb-dev/crypto'); | ||
var FormData = require('form-data'); | ||
@@ -125,6 +126,3 @@ var uuid = require('uuid'); | ||
} | ||
// this is on purpose because we're using the crypto module only in node | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const crypto = require("crypto"); | ||
const hashedSecretKey = crypto.createHash("sha256").update(secretKey).digest("hex"); | ||
const hashedSecretKey = crypto.sha256HexSync(secretKey); | ||
const derivedClientId = hashedSecretKey.slice(0, 32); | ||
@@ -384,14 +382,8 @@ return url.replace("{clientId}", derivedClientId); | ||
name: "@thirdweb-dev/storage", | ||
version: "2.0.3", | ||
version: "2.0.4", | ||
main: "dist/thirdweb-dev-storage.cjs.js", | ||
module: "dist/thirdweb-dev-storage.esm.js", | ||
browser: { | ||
"./dist/thirdweb-dev-storage.esm.js": "./dist/thirdweb-dev-storage.browser.esm.js" | ||
}, | ||
exports: { | ||
".": { | ||
module: { | ||
browser: "./dist/thirdweb-dev-storage.browser.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.esm.js" | ||
}, | ||
module: "./dist/thirdweb-dev-storage.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.cjs.js" | ||
@@ -407,3 +399,3 @@ }, | ||
format: "prettier --write 'src/**/*'", | ||
lint: "eslint src/", | ||
lint: "eslint src/ && bunx publint --strict --level warning", | ||
fix: "eslint src/ --fix", | ||
@@ -423,33 +415,30 @@ "generate-docs": "api-extractor run --local && api-documenter markdown -i ./temp -o ./docs", | ||
preconstruct: { | ||
exports: { | ||
envConditions: [ | ||
"browser" | ||
] | ||
} | ||
exports: true | ||
}, | ||
devDependencies: { | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@microsoft/api-documenter": "^7.22.30", | ||
"@microsoft/api-extractor": "^7.36.3", | ||
"@microsoft/tsdoc": "^0.14.1", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@microsoft/api-documenter": "^7.23.12", | ||
"@microsoft/api-extractor": "^7.38.3", | ||
"@microsoft/tsdoc": "^0.14.2", | ||
"@preconstruct/cli": "2.7.0", | ||
"@swc-node/register": "^1.6.6", | ||
"@swc-node/register": "^1.6.8", | ||
"@thirdweb-dev/tsconfig": "workspace:*", | ||
"@types/chai": "^4.3.5", | ||
"@types/mocha": "^10.0.0", | ||
"@types/uuid": "^9.0.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
chai: "^4.3.6", | ||
eslint: "^8.45.0", | ||
"@types/chai": "^4.3.10", | ||
"@types/mocha": "^10.0.4", | ||
"@types/uuid": "^9.0.7", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
chai: "^4.3.10", | ||
eslint: "^8.53.0", | ||
"eslint-config-thirdweb": "workspace:*", | ||
"eslint-plugin-tsdoc": "^0.2.16", | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
esm: "^3.2.25", | ||
mocha: "^10.2.0", | ||
rimraf: "^3.0.2", | ||
typedoc: "^0.25.2", | ||
typescript: "^5.1.6" | ||
typedoc: "^0.25.3", | ||
typescript: "^5.2.2" | ||
}, | ||
dependencies: { | ||
"@thirdweb-dev/crypto": "workspace:*", | ||
"cid-tool": "^3.0.0", | ||
@@ -456,0 +445,0 @@ "form-data": "^4.0.0", |
import CIDTool from 'cid-tool'; | ||
import { sha256HexSync } from '@thirdweb-dev/crypto'; | ||
import FormData from 'form-data'; | ||
@@ -115,6 +116,3 @@ import { v4 } from 'uuid'; | ||
} | ||
// this is on purpose because we're using the crypto module only in node | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const crypto = require("crypto"); | ||
const hashedSecretKey = crypto.createHash("sha256").update(secretKey).digest("hex"); | ||
const hashedSecretKey = sha256HexSync(secretKey); | ||
const derivedClientId = hashedSecretKey.slice(0, 32); | ||
@@ -374,14 +372,8 @@ return url.replace("{clientId}", derivedClientId); | ||
name: "@thirdweb-dev/storage", | ||
version: "2.0.3", | ||
version: "2.0.4", | ||
main: "dist/thirdweb-dev-storage.cjs.js", | ||
module: "dist/thirdweb-dev-storage.esm.js", | ||
browser: { | ||
"./dist/thirdweb-dev-storage.esm.js": "./dist/thirdweb-dev-storage.browser.esm.js" | ||
}, | ||
exports: { | ||
".": { | ||
module: { | ||
browser: "./dist/thirdweb-dev-storage.browser.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.esm.js" | ||
}, | ||
module: "./dist/thirdweb-dev-storage.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.cjs.js" | ||
@@ -397,3 +389,3 @@ }, | ||
format: "prettier --write 'src/**/*'", | ||
lint: "eslint src/", | ||
lint: "eslint src/ && bunx publint --strict --level warning", | ||
fix: "eslint src/ --fix", | ||
@@ -413,33 +405,30 @@ "generate-docs": "api-extractor run --local && api-documenter markdown -i ./temp -o ./docs", | ||
preconstruct: { | ||
exports: { | ||
envConditions: [ | ||
"browser" | ||
] | ||
} | ||
exports: true | ||
}, | ||
devDependencies: { | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@microsoft/api-documenter": "^7.22.30", | ||
"@microsoft/api-extractor": "^7.36.3", | ||
"@microsoft/tsdoc": "^0.14.1", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@microsoft/api-documenter": "^7.23.12", | ||
"@microsoft/api-extractor": "^7.38.3", | ||
"@microsoft/tsdoc": "^0.14.2", | ||
"@preconstruct/cli": "2.7.0", | ||
"@swc-node/register": "^1.6.6", | ||
"@swc-node/register": "^1.6.8", | ||
"@thirdweb-dev/tsconfig": "workspace:*", | ||
"@types/chai": "^4.3.5", | ||
"@types/mocha": "^10.0.0", | ||
"@types/uuid": "^9.0.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
chai: "^4.3.6", | ||
eslint: "^8.45.0", | ||
"@types/chai": "^4.3.10", | ||
"@types/mocha": "^10.0.4", | ||
"@types/uuid": "^9.0.7", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
chai: "^4.3.10", | ||
eslint: "^8.53.0", | ||
"eslint-config-thirdweb": "workspace:*", | ||
"eslint-plugin-tsdoc": "^0.2.16", | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
esm: "^3.2.25", | ||
mocha: "^10.2.0", | ||
rimraf: "^3.0.2", | ||
typedoc: "^0.25.2", | ||
typescript: "^5.1.6" | ||
typedoc: "^0.25.3", | ||
typescript: "^5.2.2" | ||
}, | ||
dependencies: { | ||
"@thirdweb-dev/crypto": "workspace:*", | ||
"cid-tool": "^3.0.0", | ||
@@ -446,0 +435,0 @@ "form-data": "^4.0.0", |
{ | ||
"name": "@thirdweb-dev/storage", | ||
"version": "0.0.0-dev-d98df95-20231115213935", | ||
"version": "0.0.0-dev-dab0125-20231117093834", | ||
"main": "dist/thirdweb-dev-storage.cjs.js", | ||
"module": "dist/thirdweb-dev-storage.esm.js", | ||
"browser": { | ||
"./dist/thirdweb-dev-storage.esm.js": "./dist/thirdweb-dev-storage.browser.esm.js" | ||
}, | ||
"exports": { | ||
".": { | ||
"module": { | ||
"browser": "./dist/thirdweb-dev-storage.browser.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.esm.js" | ||
}, | ||
"module": "./dist/thirdweb-dev-storage.esm.js", | ||
"default": "./dist/thirdweb-dev-storage.cjs.js" | ||
@@ -27,33 +21,30 @@ }, | ||
"preconstruct": { | ||
"exports": { | ||
"envConditions": [ | ||
"browser" | ||
] | ||
} | ||
"exports": true | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.22.9", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@microsoft/api-documenter": "^7.22.30", | ||
"@microsoft/api-extractor": "^7.36.3", | ||
"@microsoft/tsdoc": "^0.14.1", | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@microsoft/api-documenter": "^7.23.12", | ||
"@microsoft/api-extractor": "^7.38.3", | ||
"@microsoft/tsdoc": "^0.14.2", | ||
"@preconstruct/cli": "2.7.0", | ||
"@swc-node/register": "^1.6.6", | ||
"@swc-node/register": "^1.6.8", | ||
"@thirdweb-dev/tsconfig": "^0.1.7", | ||
"@types/chai": "^4.3.5", | ||
"@types/mocha": "^10.0.0", | ||
"@types/uuid": "^9.0.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
"chai": "^4.3.6", | ||
"eslint": "^8.45.0", | ||
"eslint-config-thirdweb": "^0.1.6", | ||
"eslint-plugin-tsdoc": "^0.2.16", | ||
"@types/chai": "^4.3.10", | ||
"@types/mocha": "^10.0.4", | ||
"@types/uuid": "^9.0.7", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
"chai": "^4.3.10", | ||
"eslint": "^8.53.0", | ||
"eslint-config-thirdweb": "^0.0.0-dev-dab0125-20231117093834", | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
"esm": "^3.2.25", | ||
"mocha": "^10.2.0", | ||
"rimraf": "^3.0.2", | ||
"typedoc": "^0.25.2", | ||
"typescript": "^5.1.6" | ||
"typedoc": "^0.25.3", | ||
"typescript": "^5.2.2" | ||
}, | ||
"dependencies": { | ||
"@thirdweb-dev/crypto": "0.0.0-dev-dab0125-20231117093834", | ||
"cid-tool": "^3.0.0", | ||
@@ -68,3 +59,3 @@ "form-data": "^4.0.0", | ||
"format": "prettier --write 'src/**/*'", | ||
"lint": "eslint src/", | ||
"lint": "eslint src/ && bunx publint --strict --level warning", | ||
"fix": "eslint src/ --fix", | ||
@@ -71,0 +62,0 @@ "generate-docs": "api-extractor run --local && api-documenter markdown -i ./temp -o ./docs", |
Sorry, the diff of this file is not supported yet
8
-20%6
-25%163573
-19.7%4
33.33%43
-2.27%3825
-22.62%+ Added
+ Added
+ Added
+ Added