New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

11te

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

11te - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

34

core/network/client.js

@@ -88,20 +88,20 @@ const debug = require('debug')('telegraf:client')

// function buildFormDataConfig (payload, agent) {
// for (const field of FORM_DATA_JSON_FIELDS) {
// if (field in payload && typeof payload[field] !== 'string') {
// payload[field] = JSON.stringify(payload[field])
// }
// }
// const boundary = crypto.randomBytes(32).toString('hex')
function buildFormDataConfig (payload, agent) {
for (const field of FORM_DATA_JSON_FIELDS) {
if (field in payload && typeof payload[field] !== 'string') {
payload[field] = JSON.stringify(payload[field])
}
}
const boundary = crypto.randomBytes(32).toString('hex')
// const tasks = Object.keys(payload).map((key) => attachFormValue(formData, key, payload[key], agent))
// return Promise.all(tasks).then(() => {
// return {
// method: 'POST',
// compress: true,
// headers: { 'content-type': `multipart/form-data; boundary=${boundary}`, connection: 'keep-alive' },
// body: formData
// }
// })
// }
const tasks = Object.keys(payload).map((key) => attachFormValue(formData, key, payload[key], agent))
return Promise.all(tasks).then(() => {
return {
method: 'POST',
compress: true,
headers: { 'content-type': `multipart/form-data; boundary=${boundary}`, connection: 'keep-alive' },
body: formData
}
})
}

@@ -108,0 +108,0 @@ function attachFormValue (form, id, value, agent) {

{
"_from": "11te",
"_id": "1te@1.0.0",
"_inBundle": false,
"_integrity": "sha512-tqrrLSW8LZrDiGNlkkeprWMvNqvkPQTGVWuAVM1wLtpG43FmzDabhiDg/vkaJDWjm3+K/ET0FQACKzC4mT4ThQ==",
"_location": "/1te",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "1te",
"name": "1te",
"escapedName": "1te",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/1te/-/1te-1.0.0.tgz",
"_shasum": "eb29ef980654d28a92c1c4d7a0a7709e037d7aa7",
"_spec": "1te",
"_where": "D:\\1te",
"bundleDependencies": false,
"dependencies": {

@@ -9,2 +34,3 @@ "debug": "^4.0.1",

},
"deprecated": false,
"devDependencies": {

@@ -14,6 +40,5 @@ "@types/node": "^13.1.0",

},
"main": "index.js",
"main": "telegraf.js",
"name": "11te",
"scripts": {
"u": "ncu -u && npm update && npm install",
"typecheck": "tsc"

@@ -23,3 +48,3 @@ },

"types": "./typings/index.d.ts",
"version": "1.0.6"
"version": "1.0.7"
}
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