Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deepgram/sdk

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepgram/sdk - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

tsconfig-es6.json

15

package.json
{
"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",

22

webpack.config.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc