Socket
Socket
Sign inDemoInstall

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 2.1.0 to 2.1.1

6

package.json
{
"name": "xliff",
"version": "2.1.0",
"version": "2.1.1",
"description": "xliff2js and js2xliff converter xliff utils",

@@ -10,6 +10,6 @@ "main": "index.js",

"dependencies": {
"xml2js": "0.4.17"
"xml2js": "0.4.18"
},
"devDependencies": {
"eslint": "^3.18.0",
"eslint": "^4.4.1",
"expect.js": "^0.3.1",

@@ -16,0 +16,0 @@ "mocha": "^3.2.0"

@@ -62,12 +62,13 @@ const expect = require('expect.js');

test('createjs', (fn) => (done) => {
fn(fixtures.example.js.sourceLanguage,
fixtures.example.js.targetLanguage,
fixtures.example.js_source,
fixtures.example.js_target,
'namespace1',
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example.js);
done();
}
fn(
fixtures.example.js.sourceLanguage,
fixtures.example.js.targetLanguage,
fixtures.example.js_source,
fixtures.example.js_target,
'namespace1',
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example.js);
done();
}
);

@@ -77,12 +78,13 @@ });

test('createxliff', (fn) => (done) => {
fn(fixtures.example.js.sourceLanguage,
fixtures.example.js.targetLanguage,
fixtures.example.js_source,
fixtures.example.js_target,
'namespace1',
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example.xliff);
done();
}
fn(
fixtures.example.js.sourceLanguage,
fixtures.example.js.targetLanguage,
fixtures.example.js_source,
fixtures.example.js_target,
'namespace1',
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example.xliff);
done();
}
);

@@ -92,12 +94,13 @@ });

test('createxliff12', (fn) => (done) => {
fn(fixtures.example.js.sourceLanguage,
fixtures.example.js.targetLanguage,
fixtures.example.js_source,
fixtures.example.js_target,
'namespace1',
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example.xliff12);
done();
}
fn(
fixtures.example.js.sourceLanguage,
fixtures.example.js.targetLanguage,
fixtures.example.js_source,
fixtures.example.js_target,
'namespace1',
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example.xliff12);
done();
}
);

@@ -165,11 +168,12 @@ });

test('createjs', (fn) => (done) => {
fn(fixtures.example_multi.js.sourceLanguage,
fixtures.example_multi.js.targetLanguage,
fixtures.example_multi.js_source,
fixtures.example_multi.js_target,
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example_multi.js);
done();
}
fn(
fixtures.example_multi.js.sourceLanguage,
fixtures.example_multi.js.targetLanguage,
fixtures.example_multi.js_source,
fixtures.example_multi.js_target,
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example_multi.js);
done();
}
);

@@ -179,11 +183,12 @@ });

test('createxliff', (fn) => (done) => {
fn(fixtures.example_multi.js.sourceLanguage,
fixtures.example_multi.js.targetLanguage,
fixtures.example_multi.js_source,
fixtures.example_multi.js_target,
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example_multi.xliff);
done();
}
fn(
fixtures.example_multi.js.sourceLanguage,
fixtures.example_multi.js.targetLanguage,
fixtures.example_multi.js_source,
fixtures.example_multi.js_target,
(err, res) => {
expect(err).not.to.be.ok();
expect(res).to.eql(fixtures.example_multi.xliff);
done();
}
);

@@ -190,0 +195,0 @@ });

Sorry, the diff of this file is not supported yet

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