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

xliff

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xliff - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

2

cjs/js2xliff.js

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

if (!unit.source && unit.target) unit.source = '';
if (unit.source) segment.elements.push((0, _objectToXml.makeElement)('source', null, (0, _objectToXml.makeValue)(unit.source, _ElementTypes.default)));
if (unit.source !== undefined) segment.elements.push((0, _objectToXml.makeElement)('source', null, (0, _objectToXml.makeValue)(unit.source, _ElementTypes.default)));
if (unit.target !== undefined) segment.elements.push((0, _objectToXml.makeElement)('target', null, (0, _objectToXml.makeValue)(unit.target, _ElementTypes.default)));

@@ -102,0 +102,0 @@ var subEle = [segment];

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

if (!resource.source && resource.target) resource.source = '';
if (resource.source) u.elements.push((0, _objectToXml.makeElement)('source', sourceAttributes, (0, _objectToXml.makeValue)(resource.source, _ElementTypes.default)));
if (resource.source != null) u.elements.push((0, _objectToXml.makeElement)('source', sourceAttributes, (0, _objectToXml.makeValue)(resource.source, _ElementTypes.default)));
if (resource.target != null) {

@@ -85,0 +85,0 @@ var targetAttributes = null;

@@ -92,3 +92,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

if (!unit.source && unit.target) unit.source = '';
if (unit.source) segment.elements.push(makeElement('source', null, makeValue(unit.source, ElementTypes2)));
if (unit.source !== undefined) segment.elements.push(makeElement('source', null, makeValue(unit.source, ElementTypes2)));
if (unit.target !== undefined) segment.elements.push(makeElement('target', null, makeValue(unit.target, ElementTypes2)));

@@ -95,0 +95,0 @@ var subEle = [segment];

@@ -75,3 +75,3 @@ import convert from 'xml-js';

if (!resource.source && resource.target) resource.source = '';
if (resource.source) u.elements.push(makeElement('source', sourceAttributes, makeValue(resource.source, ElementTypes12)));
if (resource.source != null) u.elements.push(makeElement('source', sourceAttributes, makeValue(resource.source, ElementTypes12)));
if (resource.target != null) {

@@ -78,0 +78,0 @@ var targetAttributes = null;

@@ -78,3 +78,3 @@ import convert from 'xml-js'

if (!unit.source && unit.target) unit.source = ''
if (unit.source) segment.elements.push(makeElement('source', null, makeValue(unit.source, ElementTypes2)))
if (unit.source !== undefined) segment.elements.push(makeElement('source', null, makeValue(unit.source, ElementTypes2)))
if (unit.target !== undefined) segment.elements.push(makeElement('target', null, makeValue(unit.target, ElementTypes2)))

@@ -81,0 +81,0 @@ const subEle = [segment]

@@ -78,3 +78,3 @@ import convert from 'xml-js'

if (!resource.source && resource.target) resource.source = ''
if (resource.source) u.elements.push(makeElement('source', sourceAttributes, makeValue(resource.source, ElementTypes12)))
if (resource.source != null) u.elements.push(makeElement('source', sourceAttributes, makeValue(resource.source, ElementTypes12)))
if (resource.target != null) {

@@ -81,0 +81,0 @@ let targetAttributes = null

{
"name": "xliff",
"version": "6.2.0",
"version": "6.2.1",
"description": "xliff2js and js2xliff converter xliff utils",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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