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

bridge

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridge - npm Package Compare versions

Comparing version 2.0.55 to 2.0.56

dist/source/utilities/dirExists.d.ts

2

dist/source/bridge.d.ts

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

}
export declare const initBridge: <Routes extends BridgeRoutes<{}>>({ routes, errorHandler, formidable, logs, }: {
export declare const initBridge: <Routes extends BridgeRoutes>({ routes, errorHandler, formidable, logs, }: {
routes: Routes;

@@ -22,0 +22,0 @@ formidable?: any;

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

StatusCode[StatusCode["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
})(StatusCode = exports.StatusCode || (exports.StatusCode = {}));
})(StatusCode || (exports.StatusCode = StatusCode = {}));
const errorStatus = [

@@ -89,0 +89,0 @@ 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418,

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

export declare const sdkHandler: import("./routes/method").BridgeMethod<import("./core").BridgeHandler<() => string, never>, null, null, null, null>;
/// <reference types="node" />
export declare const sdkHandler: import("./routes/method").BridgeMethod<import("./core").BridgeHandler<() => Buffer, never>, null, null, null, null>;
//# sourceMappingURL=sdk.d.ts.map

@@ -9,9 +9,13 @@ "use strict";

const method_1 = require("./routes/method");
const utilities_1 = require("./utilities");
const path_1 = __importDefault(require("path"));
const adm_zip_1 = __importDefault(require("adm-zip"));
const sdkPath = path_1.default.join(process.cwd(), 'sdk');
const dirExists = (0, utilities_1.directoryExists)(sdkPath);
exports.sdkHandler = (0, method_1.method)({
GET: (0, core_1.handler)({
resolve: () => {
const sdkPath = path_1.default.join(process.cwd(), 'sdk');
console.log(sdkPath);
return sdkPath;
if (dirExists && typeof adm_zip_1.default === undefined)
throw new Error(`You need to install adm-zip to fetch your sdk: "npm i adm-zip"`);
return new adm_zip_1.default(sdkPath).toBuffer();
},

@@ -18,0 +22,0 @@ }),

export * from './types';
export * from './apply';
export * from './formidable';
export * from './dirExists';
//# sourceMappingURL=index.d.ts.map

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

__exportStar(require("./formidable"), exports);
__exportStar(require("./dirExists"), exports);
//# sourceMappingURL=index.js.map
{
"name": "bridge",
"version": "2.0.55",
"version": "2.0.56",
"description": "Bridge is a Typescript Node.js framework that provides an easy and scalable way to create REST APIs while generating the client code.",

@@ -35,9 +35,10 @@ "author": "Bridge Team <support@bridge.codes>",

],
"devDependencies": {
"dependencies": {
"@types/adm-zip": "^0.5.0",
"@types/express": "^4.17.17",
"@types/node": "^18.11.15",
"nodemon": "^2.0.20",
"@types/node": "^20.2.5",
"nodemon": "^2.0.22",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
"typescript": "^5.1.3"
}
}

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