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

@cloudbase/adapter-wx_mp

Package Overview
Dependencies
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/adapter-wx_mp - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

README.md

6

.eslintrc.js

@@ -5,2 +5,5 @@ module.exports = {

],
parserOptions: {
sourceType: "module"
},
globals: {

@@ -27,4 +30,5 @@ // 这里填入你的项目需要的全局变量

"no-param-reassign": 0,
"no-undefined": 0
"no-undefined": 0,
"@typescript-eslint/explicit-member-accessibility": 0
}
};

188

dist/esm/index.js

@@ -0,1 +1,61 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
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());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
import { AbstractSDKRequest, StorageType, formatUrl } from '@cloudbase/adapter-interface';

@@ -55,15 +115,19 @@ function isMatch() {

}
export class WxRequest extends AbstractSDKRequest {
post(options) {
const { url, data, headers } = options;
return new Promise((resolve, reject) => {
var WxRequest = (function (_super) {
__extends(WxRequest, _super);
function WxRequest() {
return _super !== null && _super.apply(this, arguments) || this;
}
WxRequest.prototype.post = function (options) {
var url = options.url, data = options.data, headers = options.headers;
return new Promise(function (resolve, reject) {
wx.request({
url: formatUrl('https:', url),
data,
data: data,
method: 'POST',
header: headers,
success(res) {
success: function (res) {
resolve(res);
},
fail(err) {
fail: function (err) {
reject(err);

@@ -73,35 +137,40 @@ }

});
}
upload(options) {
return new Promise(async (resolve) => {
const { url, file, data, headers } = options;
wx.uploadFile({
url: formatUrl('https:', url),
filePath: file,
name: 'file',
formData: Object.assign(Object.assign({}, data), { file }),
header: headers,
success(res) {
const result = {
statusCode: res.statusCode,
data: res.data || {}
};
if (res.statusCode === 200 && data.success_action_status) {
result.statusCode = parseInt(data.success_action_status, 10);
};
WxRequest.prototype.upload = function (options) {
var _this = this;
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
var url, file, data, headers;
return __generator(this, function (_a) {
url = options.url, file = options.file, data = options.data, headers = options.headers;
wx.uploadFile({
url: formatUrl('https:', url),
filePath: file,
name: 'file',
formData: __assign(__assign({}, data), { file: file }),
header: headers,
success: function (res) {
var result = {
statusCode: res.statusCode,
data: res.data || {}
};
if (res.statusCode === 200 && data.success_action_status) {
result.statusCode = parseInt(data.success_action_status, 10);
}
resolve(result);
},
fail: function (err) {
resolve(err);
}
resolve(result);
},
fail(err) {
resolve(err);
}
});
return [2];
});
});
}
download(options) {
const { url, headers } = options;
return new Promise((resolve, reject) => {
}); });
};
WxRequest.prototype.download = function (options) {
var url = options.url, headers = options.headers;
return new Promise(function (resolve, reject) {
wx.downloadFile({
url: formatUrl('https:', url),
header: headers,
success(res) {
success: function (res) {
if (res.statusCode === 200 && res.tempFilePath) {

@@ -117,3 +186,3 @@ resolve({

},
fail(err) {
fail: function (err) {
reject(err);

@@ -123,22 +192,25 @@ }

});
}
}
export const wxMpStorage = {
setItem(key, value) {
};
return WxRequest;
}(AbstractSDKRequest));
export { WxRequest };
export var wxMpStorage = {
setItem: function (key, value) {
wx.setStorageSync(key, value);
},
getItem(key) {
getItem: function (key) {
return wx.getStorageSync(key);
},
removeItem(key) {
removeItem: function (key) {
wx.removeStorageSync(key);
},
clear() {
clear: function () {
wx.clearStorageSync();
}
};
export class WxMpWebSocket {
constructor(url, options = {}) {
const ws = wx.connectSocket(Object.assign({ url }, options));
const socketTask = {
var WxMpWebSocket = (function () {
function WxMpWebSocket(url, options) {
if (options === void 0) { options = {}; }
var ws = wx.connectSocket(__assign({ url: url }, options));
var socketTask = {
set onopen(cb) {

@@ -156,7 +228,7 @@ ws.onOpen(cb);

},
send: (data) => ws.send({ data }),
close: (code, reason) => ws.close({
code,
reason
}),
send: function (data) { return ws.send({ data: data }); },
close: function (code, reason) { return ws.close({
code: code,
reason: reason
}); },
get readyState() {

@@ -172,5 +244,7 @@ return ws.readyState;

}
}
return WxMpWebSocket;
}());
export { WxMpWebSocket };
function genAdapter() {
const adapter = {
var adapter = {
root: {},

@@ -184,7 +258,7 @@ reqClass: WxRequest,

}
const adapter = {
genAdapter,
isMatch,
var adapter = {
genAdapter: genAdapter,
isMatch: isMatch,
runtime: 'wx_mp'
};
export default adapter;

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("tcbAdapterWxMp",[],e):"object"==typeof exports?exports.tcbAdapterWxMp=e():t.tcbAdapterWxMp=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";var r;n.r(e),function(t){t.local="local",t.none="none",t.session="session"}(r||(r={}));function o(t,e,n={}){const r=/\?/.test(e);let o="";for(let t in n)""===o?!r&&(e+="?"):o+="&",o+=`${t}=${encodeURIComponent(n[t])}`;return/^http(s)?\:\/\//.test(e+=o)?e:`${t}${e}`}n.d(e,"WxRequest",(function(){return s})),n.d(e,"wxMpStorage",(function(){return l})),n.d(e,"WxMpWebSocket",(function(){return p}));var u,i=(u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},c=function(t,e,n,r){return new(n||(n=Promise))((function(o,u){function i(t){try{c(r.next(t))}catch(t){u(t)}}function a(t){try{c(r.throw(t))}catch(t){u(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,a)}c((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.post=function(t){var e=t.url,n=t.data,r=t.headers;return new Promise((function(t,u){wx.request({url:o("https:",e),data:n,method:"POST",header:r,success:function(e){t(e)},fail:function(t){u(t)}})}))},e.prototype.upload=function(t){var e=this;return new Promise((function(n){return c(e,void 0,void 0,(function(){var e,r,u,i;return f(this,(function(c){return e=t.url,r=t.file,u=t.data,i=t.headers,wx.uploadFile({url:o("https:",e),filePath:r,name:"file",formData:a(a({},u),{file:r}),header:i,success:function(t){var e={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&u.success_action_status&&(e.statusCode=parseInt(u.success_action_status,10)),n(e)},fail:function(t){n(t)}}),[2]}))}))}))},e.prototype.download=function(t){var e=t.url,n=t.headers;return new Promise((function(t,r){wx.downloadFile({url:o("https:",e),header:n,success:function(e){200===e.statusCode&&e.tempFilePath?t({statusCode:200,tempFilePath:e.tempFilePath}):t(e)},fail:function(t){r(t)}})}))},e}(class{}),l={setItem:function(t,e){wx.setStorageSync(t,e)},getItem:function(t){return wx.getStorageSync(t)},removeItem:function(t){wx.removeStorageSync(t)},clear:function(){wx.clearStorageSync()}},p=function(t,e){void 0===e&&(e={});var n=wx.connectSocket(a({url:t},e));return{set onopen(t){n.onOpen(t)},set onmessage(t){n.onMessage(t)},set onclose(t){n.onClose(t)},set onerror(t){n.onError(t)},send:function(t){return n.send({data:t})},close:function(t,e){return n.close({code:t,reason:e})},get readyState(){return n.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};var d={genAdapter:function(){return{root:{},reqClass:s,wsClass:p,localStorage:l,primaryStorage:r.local}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof App)return!1;if("undefined"==typeof Page)return!1;if("function"!=typeof getApp)return!1;if(!wx.onAppHide)return!1;if(!wx.offAppHide)return!1;if(!wx.onAppShow)return!1;if(!wx.offAppShow)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(t){return!1}return!0},runtime:"wx_mp"};e.default=d}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("tcbAdapterWxMp",[],e):"object"==typeof exports?exports.tcbAdapterWxMp=e():t.tcbAdapterWxMp=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,u){function i(t){try{c(r.next(t))}catch(t){u(t)}}function a(t){try{c(r.throw(t))}catch(t){u(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,a)}c((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(2);var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.post=function(t){var e=t.url,n=t.data,r=t.headers;return new Promise((function(t,o){wx.request({url:c.formatUrl("https:",e),data:n,method:"POST",header:r,success:function(e){t(e)},fail:function(t){o(t)}})}))},e.prototype.upload=function(t){var e=this;return new Promise((function(n){return i(e,void 0,void 0,(function(){var e,r,o,i;return a(this,(function(a){return e=t.url,r=t.file,o=t.data,i=t.headers,wx.uploadFile({url:c.formatUrl("https:",e),filePath:r,name:"file",formData:u(u({},o),{file:r}),header:i,success:function(t){var e={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&o.success_action_status&&(e.statusCode=parseInt(o.success_action_status,10)),n(e)},fail:function(t){n(t)}}),[2]}))}))}))},e.prototype.download=function(t){var e=t.url,n=t.headers;return new Promise((function(t,r){wx.downloadFile({url:c.formatUrl("https:",e),header:n,success:function(e){200===e.statusCode&&e.tempFilePath?t({statusCode:200,tempFilePath:e.tempFilePath}):t(e)},fail:function(t){r(t)}})}))},e}(c.AbstractSDKRequest);e.WxRequest=f,e.wxMpStorage={setItem:function(t,e){wx.setStorageSync(t,e)},getItem:function(t){return wx.getStorageSync(t)},removeItem:function(t){wx.removeStorageSync(t)},clear:function(){wx.clearStorageSync()}};var s=function(t,e){void 0===e&&(e={});var n=wx.connectSocket(u({url:t},e));return{set onopen(t){n.onOpen(t)},set onmessage(t){n.onMessage(t)},set onclose(t){n.onClose(t)},set onerror(t){n.onError(t)},send:function(t){return n.send({data:t})},close:function(t,e){return n.close({code:t,reason:e})},get readyState(){return n.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};e.WxMpWebSocket=s;var l={genAdapter:function(){return{root:{},reqClass:f,wsClass:s,localStorage:e.wxMpStorage,primaryStorage:c.StorageType.local}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof App)return!1;if("undefined"==typeof Page)return!1;if("function"!=typeof getApp)return!1;if(!wx.onAppHide)return!1;if(!wx.offAppHide)return!1;if(!wx.onAppShow)return!1;if(!wx.offAppShow)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(t){return!1}return!0},runtime:"wx_mp"};e.default=l},function(t,e,n){"use strict";var r;n.r(e),function(t){t.local="local",t.none="none",t.session="session"}(r||(r={}));var o=function(){},u=function(){};function i(t,e,n){void 0===n&&(n={});var r=/\?/.test(e),o="";for(var u in n)""===o?!r&&(e+="?"):o+="&",o+=u+"="+encodeURIComponent(n[u]);return/^http(s)?\:\/\//.test(e+=o)?e:""+t+e}n.d(e,"StorageType",(function(){return r})),n.d(e,"AbstractSDKRequest",(function(){return o})),n.d(e,"AbstractStorage",(function(){return u})),n.d(e,"formatUrl",(function(){return i}))}])}));
{
"name": "@cloudbase/adapter-wx_mp",
"version": "0.1.0",
"version": "0.2.0",
"description": "wechat miniprogram adapter of cloudbase javascript SDK",

@@ -10,3 +10,4 @@ "main": "dist/index.js",

"build:esm": "tsc -p tsconfig.esm.json",
"build": "webpack && npm run build:esm"
"build": "webpack && npm run build:esm",
"publish": "npm publish --access=public"
},

@@ -29,4 +30,4 @@ "author": "",

"dependencies": {
"@cloudbase/adapter-interface": "^0.1.0"
"@cloudbase/adapter-interface": "^0.2.0"
}
}

@@ -26,3 +26,3 @@ {

"moduleResolution": "node",
"target": "es2017",
"target": "es5",
"lib": [

@@ -29,0 +29,0 @@ "es2015",

@@ -7,5 +7,5 @@ {

"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "esnext",
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
"module": "commonjs",
"noFallthroughCasesInSwitch": true,

@@ -12,0 +12,0 @@ "noUnusedLocals": true,

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