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

@swarmion/serverless-helpers

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swarmion/serverless-helpers - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

dist/cjs/helpers/getCdkHandlerPath.js

5

dist/cjs/helpers/applyHttpMiddlewares.js

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

});
exports["default"] = void 0;
exports.applyHttpMiddlewares = void 0;
var _core = _interopRequireDefault(require("@middy/core"));

@@ -25,4 +25,3 @@ var _httpErrorHandler = _interopRequireDefault(require("@middy/http-error-handler"));

};
var _default = applyHttpMiddlewares;
exports["default"] = _default;
exports.applyHttpMiddlewares = applyHttpMiddlewares;
//# sourceMappingURL=applyHttpMiddlewares.js.map

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

});
exports["default"] = void 0;
exports.getEnvVariable = void 0;
var getEnvVariable = function getEnvVariable(name) {

@@ -13,4 +13,3 @@ var variable = process.env[name];

};
var _default = getEnvVariable;
exports["default"] = _default;
exports.getEnvVariable = getEnvVariable;
//# sourceMappingURL=getEnvVariable.js.map

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

});
exports["default"] = void 0;
exports.getHandlerPath = void 0;
/** Helper to be used in config.ts files to retrieve the path of the handler. */

@@ -13,4 +13,3 @@ var getHandlerPath = function getHandlerPath(directoryPath) {

};
var _default = getHandlerPath;
exports["default"] = _default;
exports.getHandlerPath = getHandlerPath;
//# sourceMappingURL=getHandlerPath.js.map

28

dist/cjs/helpers/index.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -10,9 +9,15 @@ value: true

get: function get() {
return _applyHttpMiddlewares["default"];
return _applyHttpMiddlewares.applyHttpMiddlewares;
}
});
Object.defineProperty(exports, "getCdkHandlerPath", {
enumerable: true,
get: function get() {
return _getCdkHandlerPath.getCdkHandlerPath;
}
});
Object.defineProperty(exports, "getEnvVariable", {
enumerable: true,
get: function get() {
return _getEnvVariable["default"];
return _getEnvVariable.getEnvVariable;
}

@@ -23,3 +28,3 @@ });

get: function get() {
return _getHandlerPath["default"];
return _getHandlerPath.getHandlerPath;
}

@@ -30,3 +35,3 @@ });

get: function get() {
return _mergeStageParams["default"];
return _mergeStageParams.mergeStageParams;
}

@@ -37,10 +42,11 @@ });

get: function get() {
return _testFunctionNames["default"];
return _testFunctionNames.testFunctionNames;
}
});
var _applyHttpMiddlewares = _interopRequireDefault(require("./applyHttpMiddlewares"));
var _getEnvVariable = _interopRequireDefault(require("./getEnvVariable"));
var _getHandlerPath = _interopRequireDefault(require("./getHandlerPath"));
var _testFunctionNames = _interopRequireDefault(require("./testFunctionNames"));
var _mergeStageParams = _interopRequireDefault(require("./mergeStageParams"));
var _applyHttpMiddlewares = require("./applyHttpMiddlewares");
var _getEnvVariable = require("./getEnvVariable");
var _getHandlerPath = require("./getHandlerPath");
var _testFunctionNames = require("./testFunctionNames");
var _mergeStageParams = require("./mergeStageParams");
var _getCdkHandlerPath = require("./getCdkHandlerPath");
//# sourceMappingURL=index.js.map

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

});
exports["default"] = void 0;
exports.mergeStageParams = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

@@ -17,4 +17,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

};
var _default = mergeStageParams;
exports["default"] = _default;
exports.mergeStageParams = mergeStageParams;
//# sourceMappingURL=mergeStageParams.js.map

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

});
exports["default"] = void 0;
exports.testFunctionNames = void 0;
var MAX_AWS_LAMBDA_NAME_LENGTH = 64;

@@ -38,4 +38,3 @@ var STAGE = 'production';

};
var _default = testFunctionNames;
exports["default"] = _default;
exports.testFunctionNames = testFunctionNames;
//# sourceMappingURL=testFunctionNames.js.map

@@ -5,3 +5,3 @@ import middy from '@middy/core';

import jsonValidator from '@middy/validator';
var applyHttpMiddlewares = function applyHttpMiddlewares(handler, _ref) {
export var applyHttpMiddlewares = function applyHttpMiddlewares(handler, _ref) {
var inputSchema = _ref.inputSchema,

@@ -18,3 +18,2 @@ outputSchema = _ref.outputSchema;

};
export default applyHttpMiddlewares;
//# sourceMappingURL=applyHttpMiddlewares.js.map

@@ -1,2 +0,2 @@

var getEnvVariable = function getEnvVariable(name) {
export var getEnvVariable = function getEnvVariable(name) {
var variable = process.env[name];

@@ -6,3 +6,2 @@ if (variable === undefined) throw new Error("Environment variable not found: ".concat(name));

};
export default getEnvVariable;
//# sourceMappingURL=getEnvVariable.js.map
/** Helper to be used in config.ts files to retrieve the path of the handler. */
var getHandlerPath = function getHandlerPath(directoryPath) {
export var getHandlerPath = function getHandlerPath(directoryPath) {
var processRunLocation = process.cwd();
return directoryPath.replace(processRunLocation + '/', '') + '/handler.main';
};
export default getHandlerPath;
//# sourceMappingURL=getHandlerPath.js.map

@@ -1,6 +0,7 @@

export { default as applyHttpMiddlewares } from "./applyHttpMiddlewares";
export { default as getEnvVariable } from "./getEnvVariable";
export { default as getHandlerPath } from "./getHandlerPath";
export { default as testFunctionNames } from "./testFunctionNames";
export { default as mergeStageParams } from "./mergeStageParams";
export { applyHttpMiddlewares } from "./applyHttpMiddlewares";
export { getEnvVariable } from "./getEnvVariable";
export { getHandlerPath } from "./getHandlerPath";
export { testFunctionNames } from "./testFunctionNames";
export { mergeStageParams } from "./mergeStageParams";
export { getCdkHandlerPath } from "./getCdkHandlerPath";
//# sourceMappingURL=index.js.map
import _defineProperty from "@babel/runtime/helpers/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var mergeStageParams = function mergeStageParams(commonStageParams, serviceStageParams) {
export var mergeStageParams = function mergeStageParams(commonStageParams, serviceStageParams) {
return Object.keys(commonStageParams).reduce(function (prev, stage) {

@@ -9,3 +9,2 @@ return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, stage, _objectSpread(_objectSpread({}, commonStageParams[stage]), serviceStageParams[stage])));

};
export default mergeStageParams;
//# sourceMappingURL=mergeStageParams.js.map

@@ -18,3 +18,3 @@ var MAX_AWS_LAMBDA_NAME_LENGTH = 64;

*/
var testFunctionNames = function testFunctionNames(config) {
export var testFunctionNames = function testFunctionNames(config) {
var functionNames = getFunctionNames(config);

@@ -32,3 +32,2 @@ if (functionNames.length === 0) {

};
export default testFunctionNames;
//# sourceMappingURL=testFunctionNames.js.map

@@ -8,4 +8,4 @@ import middy from '@middy/core';

}
declare const applyHttpMiddlewares: <Event_1, Result>(handler: Handler<Event_1, Result>, { inputSchema, outputSchema }: Options) => middy.MiddyfiedHandler<Event_1, Result, Error, import("aws-lambda").Context>;
export default applyHttpMiddlewares;
export declare const applyHttpMiddlewares: <Event_1, Result>(handler: Handler<Event_1, Result>, { inputSchema, outputSchema }: Options) => middy.MiddyfiedHandler<Event_1, Result, Error, import("aws-lambda").Context>;
export {};
//# sourceMappingURL=applyHttpMiddlewares.d.ts.map

@@ -1,3 +0,2 @@

declare const getEnvVariable: (name: string) => string;
export default getEnvVariable;
export declare const getEnvVariable: (name: string) => string;
//# sourceMappingURL=getEnvVariable.d.ts.map

@@ -1,3 +0,2 @@

declare const getHandlerPath: (directoryPath: string) => string;
export default getHandlerPath;
export declare const getHandlerPath: (directoryPath: string) => string;
//# sourceMappingURL=getHandlerPath.d.ts.map

@@ -1,6 +0,7 @@

export { default as applyHttpMiddlewares } from './applyHttpMiddlewares';
export { default as getEnvVariable } from './getEnvVariable';
export { default as getHandlerPath } from './getHandlerPath';
export { default as testFunctionNames } from './testFunctionNames';
export { default as mergeStageParams } from './mergeStageParams';
export { applyHttpMiddlewares } from './applyHttpMiddlewares';
export { getEnvVariable } from './getEnvVariable';
export { getHandlerPath } from './getHandlerPath';
export { testFunctionNames } from './testFunctionNames';
export { mergeStageParams } from './mergeStageParams';
export { getCdkHandlerPath } from './getCdkHandlerPath';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,2 @@

declare const mergeStageParams: <Stage extends string, CommonParamKeys extends string, ServiceParamKeys extends string>(commonStageParams: Record<Stage, Record<CommonParamKeys, unknown>>, serviceStageParams: Record<Stage, Record<ServiceParamKeys, unknown>>) => Record<Stage, Record<CommonParamKeys & ServiceParamKeys, unknown>>;
export default mergeStageParams;
export declare const mergeStageParams: <Stage extends string, CommonParamKeys extends string, ServiceParamKeys extends string>(commonStageParams: Record<Stage, Record<CommonParamKeys, unknown>>, serviceStageParams: Record<Stage, Record<ServiceParamKeys, unknown>>) => Record<Stage, Record<CommonParamKeys & ServiceParamKeys, unknown>>;
//# sourceMappingURL=mergeStageParams.d.ts.map
import { AWS } from '@serverless/typescript';
declare const testFunctionNames: (config: AWS) => void;
export default testFunctionNames;
export declare const testFunctionNames: (config: AWS) => void;
//# sourceMappingURL=testFunctionNames.d.ts.map
{
"name": "@swarmion/serverless-helpers",
"description": "A set of helpers for Serverless applications",
"version": "0.12.1",
"version": "0.12.2",
"license": "MIT",

@@ -72,3 +72,3 @@ "homepage": "https://www.swarmion.dev",

},
"gitHead": "7a4dd060364461c19f1031031e2473ba75edb96d"
"gitHead": "3767e855f8ba8c22638e266f394098347f2ce271"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc