@orangewave/core
Advanced tools
| export declare class FunctionInvoker { | ||
| run(): Promise<void>; | ||
| } |
| "use strict"; | ||
| // import { ServerlessEngine } from './interfaces' | ||
| // import { ServerlessExecutor } from './serverless-executor' | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.FunctionInvoker = void 0; | ||
| // Responsibility: Run serverless engine with executor | ||
| class FunctionInvoker { | ||
| // private serverlessEngine: ServerlessEngine | ||
| // private serverlessExecutor: ServerlessExecutor | ||
| // constructor(engine: ServerlessEngine, executor: ServerlessExecutor) { | ||
| // this.serverlessEngine = engine | ||
| // this.serverlessExecutor = executor | ||
| // } | ||
| run() { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
| // TODO: Implement | ||
| }); | ||
| } | ||
| } | ||
| exports.FunctionInvoker = FunctionInvoker; |
| export * from './serverless-function'; | ||
| export * from './serverless-executor'; |
| "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]; } }); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./serverless-function"), exports); | ||
| __exportStar(require("./serverless-executor"), exports); |
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| export declare class ServerlessExecutor { | ||
| execute<TEvent = unknown, TContext = unknown>(_event: TEvent, _context: TContext): Promise<void>; | ||
| } |
| "use strict"; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.ServerlessExecutor = void 0; | ||
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| class ServerlessExecutor { | ||
| execute(_event, _context) { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
| // TODO: Implement | ||
| }); | ||
| } | ||
| } | ||
| exports.ServerlessExecutor = ServerlessExecutor; |
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| export declare class ServerlessFunction { | ||
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| static init(): ServerlessFunction; | ||
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| run(): void; | ||
| } |
| "use strict"; | ||
| // import { ServerlessEngine } from '@orangewave/types' | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.ServerlessFunction = void 0; | ||
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| class ServerlessFunction { | ||
| // private serverlessEngine?: ServerlessEngine | ||
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| static init() { | ||
| return new ServerlessFunction(); | ||
| } | ||
| // public engine(engine: ServerlessEngine): ServerlessFunction { | ||
| // this.serverlessEngine = engine | ||
| // return this | ||
| // } | ||
| /** | ||
| * TODO: Add documentation | ||
| */ | ||
| run() { | ||
| // TODO: Implement | ||
| } | ||
| } | ||
| exports.ServerlessFunction = ServerlessFunction; |
+8
-8
| { | ||
| "name": "@orangewave/core", | ||
| "description": "Lightweight micro-framework for streamlining the development of AWS Lambda serverless functions in Node.js", | ||
| "version": "0.0.1-alpha.1", | ||
| "description": "Lightweight micro-framework for streamlining the development of serverless functions", | ||
| "version": "0.0.1-alpha.3", | ||
| "main": "build/index.js", | ||
@@ -10,7 +10,7 @@ "types": "build/index.d.ts", | ||
| "keywords": [ | ||
| "dependency injection", | ||
| "ioc", | ||
| "orangewave", | ||
| "aws", | ||
| "aws-lambda", | ||
| "ioc", | ||
| "dependency injection" | ||
| "serverless functions", | ||
| "serverless" | ||
| ], | ||
@@ -38,3 +38,3 @@ "author": "Brandon Burrus <brandon@burrus.io>", | ||
| "name": "core", | ||
| "color": "red" | ||
| "color": "magentaBright" | ||
| }, | ||
@@ -59,3 +59,3 @@ "roots": [ | ||
| }, | ||
| "gitHead": "d857a6b7c0d7978e817f4ed2aaddc701443d32f8" | ||
| "gitHead": "9f080e1bff4a4a8f44fecaa022a4b8ffdfa91631" | ||
| } |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
6770
187.96%10
400%117
Infinity%1
-50%