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

@sap/swa-for-sapbas-vsx

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

@sap/swa-for-sapbas-vsx - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

.vscode/launch.json

2

package.json
{
"name": "@sap/swa-for-sapbas-vsx",
"version": "1.1.1",
"version": "1.1.2",
"author": "SAP SE",

@@ -5,0 +5,0 @@ "description": "Javascript module for SWA tracking to be consumed by VsCode extensions",

@@ -124,4 +124,8 @@ 'use strict';

_isAnalyticsEnabled() {
// Should consider if this is the correct way or if we can check this without accessing vscode each time
let enabled = require('vscode').workspace.getConfiguration().get(this.vsxPackageName + "." + ANALYTICS_ENABLED_SETTING_NAME);
let enabled = undefined;
try {
enabled = require('vscode').workspace.getConfiguration().get(this.vsxPackageName + "." + ANALYTICS_ENABLED_SETTING_NAME);
} catch {
// Ignore and continue with flow.
}
if (enabled === undefined) {

@@ -128,0 +132,0 @@ if (this._getProcessEnv("SWA_USER_ANON") === "literalFalse")

const swa = require("../src/index.js");
const assert = require("assert");
const swaObj = new swa.SWATracker("testId");
const swaObj = new swa.SWATracker("testPublisher","testPackageName");
describe("Check _prepareCustomEvents", () => {

@@ -27,2 +27,5 @@ it("validate custom_params", () => {

});
it("validate tracking disabled on nodejs run", () => {
return assert(!swaObj._isAnalyticsEnabled(), "Analytics not disabled")
})
});

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