@smart-link/auto-config-traces
Advanced tools
Comparing version 0.6.0 to 0.7.0
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,9 +8,7 @@ value: true | ||
exports["default"] = void 0; | ||
var _importAll = _interopRequireDefault(require("./importAll")); | ||
function autoConfigTraces() { | ||
var tracesConfig = {}; | ||
var context; // config no traces context = require.context('__appPath/config', false, /traces.config.[jt]sx?$/); | ||
var context; | ||
// config no traces context = require.context('__appPath/config', false, /traces.config.[jt]sx?$/); | ||
if (context) { | ||
@@ -23,8 +20,4 @@ var importConfig = (0, _importAll["default"])(context); | ||
} | ||
return tracesConfig; | ||
} | ||
var _default = autoConfigTraces(); | ||
exports["default"] = _default; | ||
var _default = exports["default"] = autoConfigTraces(); |
@@ -1,2 +0,7 @@ | ||
## 0.2.0 (Jan 1, 2021) | ||
- Initial public release | ||
# @smart-link/auto-config-traces | ||
## 0.7.0 | ||
### Minor Changes | ||
- add rspack build tool |
import importAll from './importAll'; | ||
function autoConfigTraces() { | ||
var tracesConfig = {}; | ||
var context; // config no traces context = require.context('__appPath/config', false, /traces.config.[jt]sx?$/); | ||
var context; | ||
// config no traces context = require.context('__appPath/config', false, /traces.config.[jt]sx?$/); | ||
if (context) { | ||
@@ -13,6 +12,4 @@ var importConfig = importAll(context); | ||
} | ||
return tracesConfig; | ||
} | ||
export default autoConfigTraces(); |
@@ -6,7 +6,5 @@ export default function importAll(context) { | ||
var fileName = key.substr(key.lastIndexOf('/') + 1); | ||
if (/index\.[jt]sx$/.test(fileName)) { | ||
return; | ||
} | ||
cache[fileName] = context(key)[exportKey]; | ||
@@ -13,0 +11,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/** @license SmartLink-UI v0.6.0 | ||
/** @license SmartLink-UI v0.7.0 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -7,3 +7,2 @@ "use strict"; | ||
exports["default"] = importAll; | ||
function importAll(context) { | ||
@@ -14,7 +13,5 @@ var exportKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default'; | ||
var fileName = key.substr(key.lastIndexOf('/') + 1); | ||
if (/index\.[jt]sx$/.test(fileName)) { | ||
return; | ||
} | ||
cache[fileName] = context(key)[exportKey]; | ||
@@ -21,0 +18,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/** @license SmartLink-UI v0.6.0 | ||
/** @license SmartLink-UI v0.7.0 | ||
* | ||
@@ -9,3 +9,2 @@ * This source code is licensed under the MIT license found in the | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -20,3 +19,2 @@ value: true | ||
}); | ||
var _autoConfigTraces = _interopRequireDefault(require("./autoConfigTraces")); |
{ | ||
"name": "@smart-link/auto-config-traces", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4641
80
1