Socket
Socket
Sign inDemoInstall

@lingui/conf

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/conf - npm Package Compare versions

Comparing version 3.8.3 to 3.8.4

27

index.js

@@ -30,4 +30,2 @@ "use strict";

var _lodash = _interopRequireDefault(require("lodash.get"));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

@@ -451,19 +449,20 @@

};
}; // copied from @EndemolShineGroup/cosmiconfig-typescript-loader
// to support sync operations
// if this PR gets merged and published, this piece of code can be thrown away
// https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/pull/132
};
/** Typescript loader using just typescript API and eval(), instead of using ts-node/register which is slower */
function TypeScriptLoader(filePath) {
try {
require("ts-node/register");
var tsc = require("typescript");
var result = require(filePath);
var fileContent = _fs.default.readFileSync(filePath, "utf-8");
return (0, _lodash.default)(result, "default", result);
} catch (error) {
// Replace with logger class OR throw a more specific error
throw require("@endemolshinegroup/cosmiconfig-typescript-loader/dist/Errors/TypeScriptCompileError").fromError(error);
}
var _tsc$transpileModule = tsc.transpileModule(fileContent, {
compilerOptions: {
module: tsc.ModuleKind.CommonJS
}
}),
outputText = _tsc$transpileModule.outputText;
var configFileParsed = eval(outputText);
return configFileParsed;
}
{
"name": "@lingui/conf",
"version": "3.8.3",
"version": "3.8.4",
"description": "Get lingui configuration from package.json",

@@ -5,0 +5,0 @@ "keywords": [

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