@deepgram/sdk
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "@deepgram/sdk", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "An SDK for the Deepgram automated speech recognition platform", | ||
"main": "dist/index.js", | ||
"browser": "dist/browser/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:browser && webpack --config webpack.config.js && npm run bundle", | ||
"build:browser": "browserify bundle/browser/index.js -o dist/browser/index.js", | ||
"build:lib": "tsc -p .", | ||
"build": "npm run build:lib && webpack --config webpack.config.js && npm run bundle", | ||
"build:lib": "tsc --project ./tsconfig.json && tsc --project ./tsconfig-es6.json", | ||
"coverage": "nyc npm run test", | ||
@@ -18,2 +15,8 @@ "lint": "eslint ./src --ext .ts && prettier --config .prettierrc src/*.ts src/**/*.ts --write", | ||
}, | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./browser": { | ||
"default": "./dist/browser/index.js" | ||
} | ||
}, | ||
"repository": { | ||
@@ -20,0 +23,0 @@ "type": "git", |
const path = require("path"); | ||
module.exports = { | ||
const clientConfig = { | ||
name: "client", | ||
target: "web", // <=== can be omitted as default is 'web' | ||
entry: "./bundle/browser/index.js", | ||
output: { | ||
path: path.resolve(__dirname, "dist/browser"), | ||
filename: "index.js", | ||
library: { | ||
type: "module", | ||
}, | ||
}, | ||
experiments: { | ||
outputModule: true, | ||
}, | ||
//… | ||
}; | ||
const serverConfig = { | ||
name: "server", | ||
@@ -15,2 +32,5 @@ target: "node", | ||
}, | ||
//… | ||
}; | ||
module.exports = [serverConfig, clientConfig]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
8
6
138123
11
1293