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

@tilework/mosaic-dev-utils

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tilework/mosaic-dev-utils - npm Package Compare versions

Comparing version 0.1.6 to 0.2.1

uuid.js

24

analytics.js
const fetch = require('node-fetch');
const extIp = require('ext-ip')();
const logger = require('./logger');
const generateUUID = require('./uuid');
const { getSystemConfig } = require('./get-configuration-file');

@@ -16,3 +18,11 @@

this.setClientIdentifier(Date.now());
try {
this.setClientIdentifier(
generateUUID()
);
} catch (e) {
this.setClientIdentifier(
Date.now()
);
}
}

@@ -47,2 +57,3 @@

}
const rawBody = {

@@ -55,2 +66,10 @@ ...data,

try {
const ip = await extIp.get();
rawBody.uip = ip;
} catch (e) {
console.log(e);
// Do nothing
}
if (this.lang !== UNKNOWN) {

@@ -88,2 +107,3 @@ // get system language here

);
const jsonResponse = await res.json();

@@ -96,3 +116,3 @@

} catch (e) {
console.log('Failed to report telemetry data');
}

@@ -99,0 +119,0 @@ }

4

extensions-core.js

@@ -57,4 +57,4 @@ const logger = require('@tilework/mosaic-dev-utils/logger');

try {
const packagePath = getPackagePath(packageName);
const packageJson = getPackageJson(packagePath);
const packagePath = getPackagePath(packageName, cwd);
const packageJson = getPackageJson(packagePath, cwd);

@@ -61,0 +61,0 @@ acc.push({

{
"name": "@tilework/mosaic-dev-utils",
"description": "Development utilities used by CSA.",
"version": "0.1.6",
"version": "0.2.1",
"dependencies": {
"chalk": "^4.1.0",
"ext-ip": "^0.3.9",
"mem-fs": "^1.2.0",

@@ -16,3 +17,3 @@ "mem-fs-editor": "^7.0.1",

},
"gitHead": "4b8cdb44b424bdd21c83ee529d781f827ec36665"
"gitHead": "37be386393a60c3d3a94fa55783fc8f950e0905a"
}
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