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

proxy-cors

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-cors - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

dist/index.d.ts
import express from 'express';
declare const proxyCors: (app: express.Application) => void;
export default proxyCors;
export declare const proxyCors: (app: express.Application) => void;

@@ -58,3 +58,3 @@ 'use strict';

exports.default = proxyCors;
exports.proxyCors = proxyCors;
//# sourceMappingURL=proxy-cors.cjs.development.js.map

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

"use strict";function r(r){return r&&"object"==typeof r&&"default"in r?r.default:r}var o=r(require("cors")),e=r(require("body-parser"));"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var t=require("axios");exports.default=function(r){r.use(o()),r.use(e.json()),r.all("/proxy-cors/*",function(r,o){try{return Promise.resolve(function(e,n){try{var a=(s=r.method,u=r.body,c=r.path.replace(/^\/proxy-cors\//,""),Promise.resolve(t({method:s,url:c,data:u})).then(function(r){return console.log("[proxy-cors]: response",r.data),o.json(r.data)}))}catch(r){return n(r)}var s,u,c;return a&&a.then?a.then(void 0,n):a}(0,function(r){return console.log("[proxy-cors]: err",r),o.json(r)}))}catch(r){return Promise.reject(r)}})};
"use strict";function r(r){return r&&"object"==typeof r&&"default"in r?r.default:r}var o=r(require("cors")),e=r(require("body-parser"));"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var t=require("axios");exports.proxyCors=function(r){r.use(o()),r.use(e.json()),r.all("/proxy-cors/*",function(r,o){try{return Promise.resolve(function(e,n){try{var a=(s=r.method,y=r.body,c=r.path.replace(/^\/proxy-cors\//,""),Promise.resolve(t({method:s,url:c,data:y})).then(function(r){return console.log("[proxy-cors]: response",r.data),o.json(r.data)}))}catch(r){return n(r)}var s,y,c;return a&&a.then?a.then(void 0,n):a}(0,function(r){return console.log("[proxy-cors]: err",r),o.json(r)}))}catch(r){return Promise.reject(r)}})};
//# sourceMappingURL=proxy-cors.cjs.production.min.js.map

@@ -54,3 +54,3 @@ import cors from 'cors';

export default proxyCors;
export { proxyCors };
//# sourceMappingURL=proxy-cors.esm.js.map
{
"name": "proxy-cors",
"version": "0.1.0",
"version": "0.1.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/proxy-cors.esm.js",

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