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

@sap-ux/i18n

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/i18n - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

19

dist/write/utils/index.js

@@ -28,10 +28,15 @@ "use strict";

const content = yield (0, utils_1.readFile)(i18nFilePath, fs);
const lines = content.split(/\r\n|\n/);
// check if file does not end with new line
if (lines.length > 0 && lines[lines.length - 1].trim()) {
// If there no end line - add new gap line before new content
newContent = `\n${newContent}`;
if (content) {
const lines = content.split(/\r\n|\n/);
// check if file does not end with new line
if (lines.length > 0 && lines[lines.length - 1].trim()) {
// If there no end line - add new gap line before new content
newContent = `\n${newContent}`;
}
yield (0, utils_1.writeFile)(i18nFilePath, content.concat(newContent), fs);
return true;
}
yield (0, utils_1.writeFile)(i18nFilePath, content.concat(newContent), fs);
return true;
else {
return false;
}
});

@@ -38,0 +43,0 @@ }

{
"name": "@sap-ux/i18n",
"version": "0.0.6",
"version": "0.0.7",
"description": "Library for i18n",

@@ -29,3 +29,3 @@ "repository": {

"devDependencies": {
"npm-run-all": "4.1.5",
"npm-run-all2": "6.2.0",
"@types/mem-fs-editor": "7.0.1",

@@ -32,0 +32,0 @@ "@types/mem-fs": "1.1.2",

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