Socket
Socket
Sign inDemoInstall

@ns8/ns8-shopify-switches

Package Overview
Dependencies
157
Maintainers
30
Versions
195
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.183 to 1.0.184

8

dist/Logger.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const libhoney_1 = require("libhoney");
const Libhoney = require("libhoney");
var OutputType;

@@ -41,6 +41,5 @@ (function (OutputType) {

const honeycombClient = this.intializeHoneycombWithCurrentEnv();
console.error('Honeycomb Creds were undefined. Backup client is null?: ', honeycombClient == null);
return honeycombClient;
}
return new libhoney_1.default({
return new Libhoney({
writeKey: Logger.honeycombWritekey,

@@ -64,3 +63,3 @@ dataset: Logger.honeycombDataset,

}
return new libhoney_1.default({
return new Libhoney({
writeKey: process.env.HONEYCOMB_WRITEKEY,

@@ -73,3 +72,2 @@ dataset: process.env.HONEYCOMB_DATASET,

if (Logger.honeycombClient == null || Logger.honeycombClient.newEvent == null) {
console.error('Attempted to log and HC Client is null. Env Vars: ', process.env);
return undefined;

@@ -76,0 +74,0 @@ }

@@ -221,4 +221,6 @@ "use strict";

const { order_id } = switchContext.data;
console.log(switchContext.merchant.domain, order_id, process.env);
Logger_1.Logger.log({ orderId: order_id, currentEnv: process.env }, switchContext, 'processCreateOrderActionContext');
console.log(switchContext.merchant.domain, order_id);
if (process.env.STAGE === 'test') {
console.log('Env Vars: ', process.env);
}
if (!shouldOrderBeProcessed(switchContext.data)) {

@@ -225,0 +227,0 @@ const message = 'ShopifyCreateOrderActionSwitch:: Order transaction not qualified to create a new order.';

{
"name": "@ns8/ns8-shopify-switches",
"version": "1.0.183",
"version": "1.0.184",
"description": "Custom switches for the shopify integration",

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc