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

xtoolkit

Package Overview
Dependencies
Maintainers
4
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xtoolkit - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

11

lib/util/hook.js
const request = require('request-promise');
const dns = require('dns');
const os = require('os');
const utf8 = require('utf8');
let shouldBeTelemetry = false;

@@ -30,7 +31,7 @@

goldkey['ip'] = remote.origin;
goldkey['country'] = body.data.country;
goldkey['region'] = body.data.region;
goldkey['city'] = body.data.city;
goldkey['county'] = body.data.county;
goldkey['isp'] = body.data.isp;
goldkey['country'] = utf8.encode(body.data.country);
goldkey['region'] = utf8.encode(body.data.region);
goldkey['city'] = utf8.encode(body.data.city);
goldkey['county'] = utf8.encode(body.data.county);
goldkey['isp'] = utf8.encode(body.data.isp);
goldkey['_g_encode'] = 'utf-8';

@@ -37,0 +38,0 @@ let url = `http://gm.mmstat.com${logkey}?`;

{
"name": "xtoolkit",
"version": "1.0.1",
"version": "1.0.2",
"bin": "bin/xtoolkit.js",

@@ -27,3 +27,4 @@ "description": "a toolkit for creating toolkit",

"request": "^2.85.0",
"request-promise": "^4.2.2"
"request-promise": "^4.2.2",
"utf8": "^3.0.0"
},

@@ -30,0 +31,0 @@ "devDependencies": {

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