Socket
Socket
Sign inDemoInstall

@ngneat/transloco-scoped-libs

Package Overview
Dependencies
55
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.1 to 5.0.2

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

## [5.0.2](https://github.com/ngneat/transloco/compare/transloco-scoped-libs-5.0.1...transloco-scoped-libs-5.0.2) (2023-08-04)
## [5.0.1](https://github.com/ngneat/transloco/compare/transloco-scoped-libs-5.0.0...transloco-scoped-libs-5.0.1) (2023-08-01)

@@ -7,0 +9,0 @@

6

package.json
{
"name": "@ngneat/transloco-scoped-libs",
"version": "5.0.1",
"version": "5.0.2",
"description": "Transloco support tool for libraries with translations",

@@ -52,6 +52,6 @@ "main": "src/lib/transloco-scoped-libs.js",

"command-line-args": "^5.1.1",
"glob": "^7.1.7",
"fs-extra": "^9.1.0"
"glob": "^10.3.3",
"fs-extra": "^11.1.1"
},
"types": "./src/index.d.ts"
}

@@ -7,3 +7,3 @@ "use strict";

const fs_1 = tslib_1.__importDefault(require("fs"));
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
const fs_extra_1 = require("fs-extra");
const chalk_1 = tslib_1.__importDefault(require("chalk"));

@@ -41,3 +41,3 @@ function toLinuxFormat(p) {

try {
return fs_extra_1.default.readJSONSync(path, { encoding: 'utf8' });
return (0, fs_extra_1.readJSONSync)(path, { encoding: 'utf8' });
}

@@ -51,3 +51,3 @@ catch (e) {

function writeJson(path, content) {
fs_extra_1.default.writeJSONSync(path, content, { spaces: 2, encoding: 'utf8' });
(0, fs_extra_1.writeJSONSync)(path, content, { spaces: 2, encoding: 'utf8' });
}

@@ -54,0 +54,0 @@ exports.writeJson = writeJson;

@@ -6,5 +6,5 @@ "use strict";

const chalk_1 = tslib_1.__importDefault(require("chalk"));
const glob_1 = tslib_1.__importDefault(require("glob"));
const glob_1 = require("glob");
const chokidar_1 = tslib_1.__importDefault(require("chokidar"));
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
const fs_extra_1 = require("fs-extra");
const scoped_libs_utils_1 = require("./scoped-libs.utils");

@@ -61,5 +61,4 @@ const libSrcExample = `

const { scope, strategy } = scopeConfig;
(0, glob_1.default)(`${node_path_1.default.join(input, scopeConfig.path)}/**/*.json`, {}, function (err, files) {
if (err)
console.log(chalk_1.default.red(err));
(0, glob_1.glob)(`${node_path_1.default.join(input, scopeConfig.path)}/**/*.json`)
.then((files) => {
for (const output of outputs) {

@@ -88,3 +87,4 @@ copyScopes({

}
});
})
.catch((err) => console.log(chalk_1.default.red(err)));
}

@@ -115,3 +115,3 @@ }

resolvedOptions.outputDir = node_path_1.default.join(resolvedOptions.outputDir, options.scope);
fs_extra_1.default.mkdirsSync(resolvedOptions.outputDir);
(0, fs_extra_1.mkdirsSync)(resolvedOptions.outputDir);
}

@@ -118,0 +118,0 @@ copyScopeTranslationFiles(resolvedOptions);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc