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

@smart-link/auto-config

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smart-link/auto-config - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

56

autoConfig.js

@@ -10,2 +10,6 @@ "use strict";

var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));

@@ -178,2 +182,54 @@

config.syncLoad = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
var syncLoaders, syncArray;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
syncLoaders = [];
Object.keys(config).forEach(function (key) {
var syncLoader = config[key].syncLoader;
if (syncLoader) {
syncLoaders.push( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
var data;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return syncLoader();
case 2:
data = _context.sent;
return _context.abrupt("return", {
key: key,
data: data
});
case 4:
case "end":
return _context.stop();
}
}
}, _callee);
})));
}
});
_context2.next = 4;
return Promise.all(syncLoaders);
case 4:
syncArray = _context2.sent;
syncArray.forEach(function (key, data) {
config[key] = data;
});
case 6:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
return config;

@@ -180,0 +236,0 @@ }

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

import _regeneratorRuntime from "@babel/runtime/regenerator";
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";

@@ -163,2 +165,54 @@ import _extends from "@babel/runtime/helpers/esm/extends";

config.syncLoad = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
var syncLoaders, syncArray;
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
syncLoaders = [];
Object.keys(config).forEach(function (key) {
var syncLoader = config[key].syncLoader;
if (syncLoader) {
syncLoaders.push( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
var data;
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return syncLoader();
case 2:
data = _context.sent;
return _context.abrupt("return", {
key: key,
data: data
});
case 4:
case "end":
return _context.stop();
}
}
}, _callee);
})));
}
});
_context2.next = 4;
return Promise.all(syncLoaders);
case 4:
syncArray = _context2.sent;
syncArray.forEach(function (key, data) {
config[key] = data;
});
case 6:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
return config;

@@ -165,0 +219,0 @@ }

2

esm/index.js

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

/** @license SmartLink-UI v0.6.5
/** @license SmartLink-UI v0.6.6
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

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

/** @license SmartLink-UI v0.6.5
/** @license SmartLink-UI v0.6.6
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

{
"name": "@smart-link/auto-config",
"version": "0.6.5",
"version": "0.6.6",
"private": false,

@@ -5,0 +5,0 @@ "main": "./index.js",

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