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

@vercel/fun

Package Overview
Dependencies
Maintainers
9
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/fun - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

dist/src/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

1

dist/src/providers/native/index.js

@@ -68,3 +68,2 @@ "use strict";

const functionName = params.FunctionName || (0, path_1.basename)(taskDir);
const memorySize = typeof params.MemorySize === 'number' ? params.MemorySize : 128;
const logGroupName = `aws/lambda/${functionName}`;

@@ -71,0 +70,0 @@ const logStreamName = `2019/01/12/[${version}]${(0, v4_1.default)().replace(/\-/g, '')}`;

@@ -22,3 +22,3 @@ /// <reference types="node" />

invoke(params?: InvokeParams): Promise<InvokeResult>;
close(callback?: Function): this;
close(callback?: (err?: Error) => void): this;
}
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

import { Runtime } from '../../types';
export declare function init({ cacheDir }: Runtime): Promise<void>;
export declare function init(_runtime: Runtime): Promise<void>;

@@ -13,10 +13,6 @@ "use strict";

exports.init = void 0;
const install_python_1 = require("../../install-python");
const runtimes_1 = require("../../runtimes");
function init({ cacheDir }) {
function init(_runtime) {
return __awaiter(this, void 0, void 0, function* () {
yield Promise.all([
(0, runtimes_1.initializeRuntime)(runtimes_1.runtimes.python),
(0, install_python_1.installPython)(cacheDir, '3.6.8')
]);
yield (0, runtimes_1.initializeRuntime)(runtimes_1.runtimes.python);
});

@@ -23,0 +19,0 @@ }

/// <reference types="node" />
/// <reference types="node" />
export interface LambdaParams {

@@ -20,3 +21,3 @@ FunctionName?: string;

}
export declare type InvokePayload = Buffer | Blob | string;
export type InvokePayload = Buffer | Blob | string;
export interface InvokeParams {

@@ -23,0 +24,0 @@ InvocationType: 'RequestResponse' | 'Event' | 'DryRun';

/// <reference types="node" />
/// <reference types="node" />
import { ZipFile, open as zipFromFile, fromBuffer as zipFromBuffer } from 'yauzl-promise';

@@ -3,0 +4,0 @@ export { zipFromFile, zipFromBuffer, ZipFile };

{
"name": "@vercel/fun",
"version": "1.1.1",
"version": "1.1.2",
"description": "Local Lambda development environment",

@@ -10,6 +10,4 @@ "main": "dist/src/index",

"scripts": {
"prebuild": "rimraf dist",
"build": "tsc",
"postbuild": "cpy --parents src test '!**/*.ts' dist",
"test": "echo \"Node.js version: $(node -v)\\n\" && pnpm build && jest --detectOpenHandles --verbose test/test.js",
"build": "rm -rf dist && tsc && cpy --parents src test '!**/*.ts' dist",
"test": "echo \"Node.js version: $(node -v)\\n\" && pnpm build && jest --detectOpenHandles --forceExit --runInBand --verbose dist/test/test.js",
"test-codecov": "nyc pnpm test",

@@ -19,3 +17,3 @@ "report-codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",

"prettier": "prettier --write --single-quote './{src,test}/**/*.ts'",
"prepublishOnly": "npm run build && rm -rf dist/test"
"prepublishOnly": "pnpm run build && rm -rf dist/test"
},

@@ -53,3 +51,3 @@ "files": [

"@types/micro": "7.3.6",
"@types/node": "10.12.29",
"@types/node": "16.18.122",
"@types/node-fetch": "2.5.0",

@@ -64,9 +62,7 @@ "@types/tar": "4.0.0",

"nyc": "14.1.1",
"pkg": "4.3.7",
"pre-commit": "1.2.2",
"prettier": "1.15.3",
"rimraf": "2.6.3",
"source-map-support": "0.5.10",
"ts-jest": "27.0.7",
"typescript": "4.4.4"
"typescript": "4.9.3"
},

@@ -92,4 +88,4 @@ "pre-commit": "lint:staged",

"engines": {
"node": ">= 10"
"node": ">= 16"
}
}

@@ -83,3 +83,3 @@ # ƒun

* `python2.7` for Python Lambda functions using a downloaded Python v2.7.12 binary
* `python3` for Python Lambda functions using the system `python3` binary
* `python3` for Python Lambda functions using the system `python3` binary (or fallback to `python`)
* `python3.6` for Python Lambda functions using a downloaded Python v3.6.8 binary

@@ -86,0 +86,0 @@ * `python3.7` for Python Lambda functions using a downloaded Python v3.7.2 binary

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