Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cf2-builder

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf2-builder - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

dist/cmd.d.ts

5

dist/bin.js

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

import { build } from './build.js';
const [src, dist] = process.argv.slice(2);
await build(src, dist);
import { cmd } from './cmd.js';
await cmd.run(process.argv);

4

dist/build.d.ts

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

export declare const build: (source: string, dist: string) => Promise<void>;
export declare const build: (source: string, dist: string) => import("@jill64/ts-cli/types").InvokeHandlerReturn<{
args: [string, string][];
}>;

@@ -1,4 +0,3 @@

import { build as esbuild } from 'esbuild';
import { appendFile } from 'fs/promises';
export const build = async (
import { cmd } from './cmd.js';
export const build = (
/**

@@ -13,13 +12,2 @@ * The source file to build

*/
dist) => {
await esbuild({
bundle: true,
target: 'es5',
platform: 'neutral',
entryPoints: [source],
outfile: dist,
format: 'iife',
globalName: 'main'
});
await appendFile(dist, 'function handler (event) { return main.default(event); }');
};
dist) => cmd.execute({ args: { source, dist } });

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

import { CF2Request } from './filed/CF2Request.js';
import { CF2Response } from './filed/CF2Response.js';
import { CF2Request } from './field/CF2Request.js';
import { CF2Response } from './field/CF2Response.js';
export type CF2ReturnValue = CF2Request | (Partial<CF2Response> & Pick<CF2Response, 'statusCode'>);

@@ -1,4 +0,4 @@

import { CF2Context } from './filed/CF2Context.js';
import { CF2Request } from './filed/CF2Request.js';
import { CF2Viewer } from './filed/CF2Viewer.js';
import { CF2Context } from './field/CF2Context.js';
import { CF2Request } from './field/CF2Request.js';
import { CF2Viewer } from './field/CF2Viewer.js';
export type ViewerRequestEvent = {

@@ -5,0 +5,0 @@ version: '1.0';

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

import { CF2Context } from './filed/CF2Context.js';
import { CF2IncludeBodyOption } from './filed/CF2IncludeBodyOption.js';
import { CF2Request } from './filed/CF2Request.js';
import { CF2Response } from './filed/CF2Response.js';
import { CF2Viewer } from './filed/CF2Viewer.js';
import { CF2Context } from './field/CF2Context.js';
import { CF2IncludeBodyOption } from './field/CF2IncludeBodyOption.js';
import { CF2Request } from './field/CF2Request.js';
import { CF2Response } from './field/CF2Response.js';
import { CF2Viewer } from './field/CF2Viewer.js';
export type ViewerResponseEvent<T extends CF2IncludeBodyOption = undefined> = {

@@ -7,0 +7,0 @@ version: '1.0';

import { CF2ReturnValue } from './CF2ReturnValue.js';
import { ViewerResponseEvent } from './ViewerResponseEvent.js';
import { CF2IncludeBodyOption } from './filed/CF2IncludeBodyOption.js';
import { CF2IncludeBodyOption } from './field/CF2IncludeBodyOption.js';
export type ViewerResponseHandler<T extends CF2IncludeBodyOption = undefined> = (event: ViewerResponseEvent<T>) => CF2ReturnValue;
{
"name": "cf2-builder",
"version": "1.0.5",
"version": "1.1.0",
"type": "module",

@@ -47,5 +47,5 @@ "description": "🌐 A toolkit to build AWS CloudFront Functions with strict type definitions",

"devDependencies": {
"@jill64/eslint-config-ts": "1.0.8",
"@jill64/prettier-config": "1.0.0",
"@types/node": "20.10.5",
"@jill64/eslint-config-ts": "1.0.6",
"@jill64/prettier-config": "1.0.0",
"typescript": "5.3.3",

@@ -55,4 +55,5 @@ "vitest": "1.1.0"

"dependencies": {
"@jill64/ts-cli": "0.2.5",
"esbuild": "0.19.10"
}
}
}

@@ -5,4 +5,8 @@ <!----- BEGIN GHOST DOCS HEADER ----->

<!----- BEGIN GHOST DOCS BADGES -----><a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/npm/v/cf2-builder" alt="npm-version" /></a> <a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/npm/l/cf2-builder" alt="npm-license" /></a> <a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/npm/dm/cf2-builder" alt="npm-download-month" /></a> <a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/bundlephobia/min/cf2-builder" alt="npm-min-size" /></a> <a href="https://github.com/jill64/cf2-builder/actions/workflows/ci.yml"><img src="https://github.com/jill64/cf2-builder/actions/workflows/ci.yml/badge.svg" alt="ci.yml" /></a><!----- END GHOST DOCS BADGES ----->
<!----- BEGIN GHOST DOCS BADGES ----->
<a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/npm/v/cf2-builder" alt="npm-version" /></a> <a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/npm/l/cf2-builder" alt="npm-license" /></a> <a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/npm/dm/cf2-builder" alt="npm-download-month" /></a> <a href="https://npmjs.com/package/cf2-builder"><img src="https://img.shields.io/bundlephobia/min/cf2-builder" alt="npm-min-size" /></a> <a href="https://github.com/jill64/cf2-builder/actions/workflows/ci.yml"><img src="https://github.com/jill64/cf2-builder/actions/workflows/ci.yml/badge.svg" alt="ci.yml" /></a>
<!----- END GHOST DOCS BADGES ----->
🌐 A toolkit to build AWS CloudFront Functions with strict type definitions

@@ -9,0 +13,0 @@

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