@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.207 to 1.0.208
@@ -35,7 +35,16 @@ "use strict"; | ||
})); | ||
const flowEnabled = process.env.NEW_INSTALLS_ADD_ORDERS_CREATE_WEBHOOK; | ||
if (flowEnabled && flowEnabled.trim() === 'true') { | ||
pendingInstallations.push(client.webhook.create({ | ||
topic: 'orders/create', | ||
address: createOrderEndpoint.toString(), | ||
})); | ||
} | ||
else { | ||
pendingInstallations.push(client.webhook.create({ | ||
topic: 'order_transactions/create', | ||
address: createOrderEndpoint.toString(), | ||
})); | ||
} | ||
pendingInstallations.push(client.webhook.create({ | ||
topic: 'order_transactions/create', | ||
address: createOrderEndpoint.toString(), | ||
})); | ||
pendingInstallations.push(client.webhook.create({ | ||
topic: 'shop/update', | ||
@@ -42,0 +51,0 @@ address: updateMerchantEndpoint.toString(), |
{ | ||
"name": "@ns8/ns8-shopify-switches", | ||
"version": "1.0.207", | ||
"version": "1.0.208", | ||
"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
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
108349
1286
4