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

@boostercloud/framework-provider-azure

Package Overview
Dependencies
Maintainers
9
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boostercloud/framework-provider-azure - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

3

dist/index.js

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

}
exports.Provider = () => ({
const Provider = () => ({
// ProviderEventsLibrary

@@ -64,3 +64,4 @@ events: {

});
exports.Provider = Provider;
function notImplemented() { }
tslib_1.__exportStar(require("./constants"), exports);

@@ -38,4 +38,5 @@ "use strict";

}
function buildOperation(propName, filter = {}, usedPlaceholders) {
function buildOperation(propName, filter = {}, usedPlaceholders, nested) {
const holder = placeholderBuilderFor(propName, usedPlaceholders);
propName = nested ? `${nested}.c["${propName}"]` : `c["${propName}"]`;
return Object.entries(filter)

@@ -45,26 +46,24 @@ .map(([operation, value], index) => {

case 'eq':
return `c["${propName}"] = ${holder(index)}`;
return `${propName} = ${holder(index)}`;
case 'ne':
return `c["${propName}"] <> ${holder(index)}`;
return `${propName} <> ${holder(index)}`;
case 'lt':
return `c["${propName}"] < ${holder(index)}`;
return `${propName} < ${holder(index)}`;
case 'gt':
return `c["${propName}"] > ${holder(index)}`;
return `${propName} > ${holder(index)}`;
case 'gte':
return `c["${propName}"] >= ${holder(index)}`;
return `${propName} >= ${holder(index)}`;
case 'lte':
return `c["${propName}"] <= ${holder(index)}`;
return `${propName} <= ${holder(index)}`;
case 'in':
return `c["${propName}"] IN (${value
.map((value, subIndex) => holder(index, subIndex))
.join(',')})`;
return `${propName} IN (${value.map((value, subIndex) => holder(index, subIndex)).join(',')})`;
case 'contains':
return `CONTAINS(c["${propName}"], ${holder(index)})`;
return `CONTAINS(${propName}, ${holder(index)})`;
case 'beginsWith':
return `STARTSWITH(c["${propName}"], ${holder(index)})`;
return `STARTSWITH(${propName}, ${holder(index)})`;
case 'includes':
return `CONTAINS(c["${propName}"], ${holder(index)})`;
return `CONTAINS(${propName}, ${holder(index)})`;
default:
if (typeof value === 'object') {
return `c["${propName}"].${buildOperation(operation, value, usedPlaceholders)}`;
return buildOperation(operation, value, usedPlaceholders, propName);
}

@@ -71,0 +70,0 @@ throw new framework_types_1.InvalidParameterError(`Operator "${operation}" is not supported`);

{
"name": "@boostercloud/framework-provider-azure",
"version": "0.15.1",
"version": "0.16.0",
"description": "Handle Booster's integration with Azure",

@@ -25,3 +25,3 @@ "keywords": [

"@azure/functions": "^1.2.2",
"@boostercloud/framework-types": "^0.15.1",
"@boostercloud/framework-types": "^0.16.0",
"chai": "4.2.0",

@@ -43,3 +43,3 @@ "chai-as-promised": "7.1.1",

},
"gitHead": "960849187fa33c06484208faf6621b7f6160d071"
"gitHead": "2887c18feaf080cb4ccbb454a4ffa73206738fff"
}
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