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

@betomorrow/sync-wording

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betomorrow/sync-wording - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

8

lib/WordingLoader.js

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

var rowIndex = this.config.sheetStartIndex;
while ((row = this.readRow(sheet, language.column, rowIndex)) !== undefined) {
while ((row = this.readRow(sheet, this.config.keyColumn, language.column, rowIndex)) !== undefined) {
wordings.set(row.key, row.value);
if (language.validation && ((_a = language.validation) === null || _a === void 0 ? void 0 : _a.column)) {
var isValid = ((_c = this.readRow(sheet, (_b = language.validation) === null || _b === void 0 ? void 0 : _b.column, rowIndex)) === null || _c === void 0 ? void 0 : _c.value) === language.validation.expected;
var isValid = ((_c = this.readRow(sheet, this.config.keyColumn, (_b = language.validation) === null || _b === void 0 ? void 0 : _b.column, rowIndex)) === null || _c === void 0 ? void 0 : _c.value) === language.validation.expected;
validations.set(row.key, isValid);

@@ -58,4 +58,4 @@ }

};
WordingLoader.prototype.readRow = function (sheet, column, rowIndex) {
var key = sheet["A" + rowIndex];
WordingLoader.prototype.readRow = function (sheet, keyColumn, column, rowIndex) {
var key = sheet["" + keyColumn + rowIndex];
var value = sheet["" + column + rowIndex];

@@ -62,0 +62,0 @@ if (key === undefined) {

{
"name": "@betomorrow/sync-wording",
"version": "1.2.0",
"version": "1.2.1",
"description": "Provide tool to retrieve app wording from Google Sheet and process it to generate i18n json files",

@@ -5,0 +5,0 @@ "main": "lib/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