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

@aspecto/core

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aspecto/core - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

dist/index.js

@@ -27,4 +27,4 @@ "use strict";

try {
const analyticsEndpoint = process.env.NODE_ENV !== "aspc_dev" ? 'http://collector.topsight.io/' : 'http://localhost:8080/';
console.log('collector address: ' + analyticsEndpoint);
const analyticsEndpoint = process.env.NODE_ENV !== "aspc_dev" ? 'http://collector.topsight.io/' : 'http://localhost:8082/';
// console.log('collector address: ' + analyticsEndpoint)
let ws = new ws_1.default(analyticsEndpoint);

@@ -31,0 +31,0 @@ const http = new HttpReporter_1.default();

@@ -25,14 +25,12 @@ "use strict";

data.hostname = os.hostname();
let packageName = "";
let packageVersion = "";
try {
const packageInfo = JSON.parse(require("fs")
.readFileSync("package.json")
.toString());
packageName = packageInfo.name;
packageVersion = packageInfo.packageVersion;
if (!Collector.packageInfo) {
Collector.packageInfo = JSON.parse(require("fs")
.readFileSync("package.json")
.toString());
}
}
catch (e) { }
data.packageName = packageName;
data.packageVersion = packageVersion;
data.packageName = Collector.packageInfo.name;
data.packageVersion = Collector.packageInfo.version;
data.id = this.id;

@@ -39,0 +37,0 @@ if (GitCollector_1.default.hash) {

@@ -32,3 +32,3 @@ "use strict";

catch (e1) {
console.log(e1);
// console.log(e1);
}

@@ -35,0 +35,0 @@ const gitData = child_process_1.execSync("git rev-parse HEAD");

@@ -13,3 +13,3 @@ "use strict";

data[this.getKey()] = nodeErrorData;
console.log(JSON.stringify(data));
// console.log(JSON.stringify(data));
if (BaseReporter.ws) {

@@ -16,0 +16,0 @@ BaseReporter.ws.send(data);

@@ -39,6 +39,6 @@ "use strict";

res.finish = function () {
console.log('in finish');
// console.log('in finish');
};
res.end = function (chunk) {
console.log('in end');
// console.log('in end');
if (chunk) {

@@ -45,0 +45,0 @@ chunks.push(chunk);

const inspector = require('inspector');
inspector.open(7245);
console.log(inspector.url());
// console.log(inspector.url());
const WebSocket2 = require('ws');

@@ -18,4 +18,4 @@ const ws = new WebSocket2(inspector.url());

// console.log('got message in ws');
console.log(data);
// console.log(data);
});
//# sourceMappingURL=inspector.js.map

@@ -15,4 +15,4 @@ import WebSocketConnection from "./src/communication/ws";

try {
const analyticsEndpoint = process.env.NODE_ENV !== "aspc_dev" ? 'http://collector.topsight.io/' : 'http://localhost:8080/';
console.log('collector address: ' + analyticsEndpoint)
const analyticsEndpoint = process.env.NODE_ENV !== "aspc_dev" ? 'http://collector.topsight.io/' : 'http://localhost:8082/';
// console.log('collector address: ' + analyticsEndpoint)
let ws = new WebSocketConnection(analyticsEndpoint);

@@ -19,0 +19,0 @@ const http = new HttpReporter();

{
"name": "@aspecto/core",
"version": "1.0.7",
"version": "1.0.8",
"description": "Aspecto metric collector",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,3 +29,3 @@ import Collectable from "../interfaces/Collectable";

} catch (e1) {
console.log(e1);
// console.log(e1);
}

@@ -32,0 +32,0 @@

@@ -18,3 +18,3 @@ import Collector from "../collection/collector";

console.log(JSON.stringify(data));
// console.log(JSON.stringify(data));

@@ -21,0 +21,0 @@ if (BaseReporter.ws) {

@@ -45,7 +45,7 @@ import uuid from "uuid";

res.finish = function(){
console.log('in finish');
// console.log('in finish');
}
res.end = function(chunk: any) {
console.log('in end');
// console.log('in end');
if (chunk) {

@@ -52,0 +52,0 @@ chunks.push(chunk);

const inspector = require('inspector');
inspector.open(7245);
console.log(inspector.url());
// console.log(inspector.url());

@@ -24,4 +24,4 @@ const WebSocket2 = require('ws');

// console.log('got message in ws');
console.log(data);
// console.log(data);
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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