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

translate

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translate - npm Package Compare versions

Comparing version 1.4.1 to 2.0.0

index.d.ts

48

package.json
{
"name": "translate",
"version": "1.4.1",
"version": "2.0.0",
"description": "Translate text to different languages on node.js and the browser",

@@ -8,5 +8,3 @@ "homepage": "https://github.com/franciscop/translate#readme",

"bugs": "https://github.com/franciscop/translate/issues",
"funding": {
"url": "https://www.paypal.me/franciscopresencia/19"
},
"funding": "https://www.paypal.me/franciscopresencia/19",
"author": "Francisco Presencia <public@francisco.io> (https://francisco.io/)",

@@ -16,6 +14,6 @@ "license": "MIT",

"start": "npm run watch # Start ~= Start dev",
"build": "rollup src/index.js --name translate --output.format umd | uglifyjs -o translate.min.js",
"test": "jest --coverage --collectCoverageFrom=src/**/*.js",
"watch": "nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json",
"gzip": "gzip -c translate.min.js | wc -c && echo 'bytes' # Only for Unix"
"build": "rollup src/index.js --name translate --output.format umd | terser --compress --mangle -o index.min.js",
"size": "gzip -c index.min.js | wc -c && echo 'bytes' # Only for Unix",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage --collectCoverageFrom=src/**/*.js && npx check-dts",
"watch": "nodemon --exec \"npm run build && npm test && npm run gzip\" --watch src --watch test --watch webpack.config.js --watch package.json"
},

@@ -31,27 +29,19 @@ "keywords": [

],
"main": "translate.min.js",
"dependencies": {
"@babel/preset-env": "^7.15.6",
"node-fetch": "^2.6.0"
},
"type": "module",
"main": "index.min.js",
"types": "index.d.ts",
"files": [
"index.d.ts"
],
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.15.0",
"babel-core": "^6.26.3",
"babel-jest": "^27.2.1",
"dotenv": "^4.0.0",
"check-dts": "^0.7.1",
"dotenv": "^16.0.3",
"fetch-mock": "^9.11.0",
"jest": "^27.2.1",
"rollup": "^0.50.0",
"uglify-es": "^3.1.3"
"jest": "^29.5.0",
"rollup": "^3.20.2",
"terser": "^5.16.9"
},
"babel": {
"presets": [
"@babel/preset-env"
],
"plugins": [
[
"@babel/plugin-transform-runtime"
]
]
"jest": {
"transform": {}
}
}
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