@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.183 to 1.0.184
"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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
10
94461