New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lit/localize-tools

Package Overview
Dependencies
Maintainers
7
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit/localize-tools - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

5

lib/config.js

@@ -23,3 +23,3 @@ /**

catch (e) {
throw new KnownError(`Could not read config file from ${configPath}:\n${e.message}`);
throw new KnownError(`Could not read config file from ${configPath}:\n` + e.message);
}

@@ -31,3 +31,4 @@ let parsed;

catch (e) {
throw new KnownError(`Invalid JSON found in config file ${configPath}:\n${e.message}`);
throw new KnownError(`Invalid JSON found in config file ${configPath}:\n` +
e.message);
}

@@ -34,0 +35,0 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires

2

lib/formatters/xlb.js

@@ -6,3 +6,3 @@ /**

*/
import * as xmldom from 'xmldom';
import * as xmldom from '@xmldom/xmldom';
import glob from 'glob';

@@ -9,0 +9,0 @@ import fsExtra from 'fs-extra';

@@ -6,3 +6,3 @@ /**

*/
import * as xmldom from 'xmldom';
import * as xmldom from '@xmldom/xmldom';
import fsExtra from 'fs-extra';

@@ -9,0 +9,0 @@ import * as pathLib from 'path';

@@ -176,3 +176,3 @@ /**

}
for (const decl of eventSymbol.declarations) {
for (const decl of eventSymbol.declarations ?? []) {
let sourceFile = decl;

@@ -349,3 +349,3 @@ while (!ts.isSourceFile(sourceFile)) {

// fail our tests because we import with a relative path in that case.
for (const decl of moduleSymbol.declarations) {
for (const decl of moduleSymbol.declarations ?? []) {
if (ts.isSourceFile(decl) &&

@@ -352,0 +352,0 @@ (decl.fileName.endsWith('/localize/lit-localize.d.ts') ||

{
"name": "@lit/localize-tools",
"version": "0.3.6",
"version": "0.3.7",
"publishConfig": {

@@ -25,5 +25,5 @@ "access": "public"

"generate-json-schema": "typescript-json-schema tsconfig.schema.json ConfigFile --include=src/types/config.d.ts --required --noExtraProps > config.schema.json",
"test": "npm run build && npm run test:unit && npm run test:check-tsc",
"test": "npm run test:unit && npm run test:check-tsc",
"test:unit": "uvu lib/tests '\\.test\\.js$' --ignore 'ssr\\.unit\\.test\\.js$' && uvu lib/tests '\\ssr\\.unit\\.test\\.js$'",
"test:update-goldens": "npm run build && UPDATE_TEST_GOLDENS=true npm run test:unit",
"test:update-goldens": "UPDATE_TEST_GOLDENS=true npm run test:unit",
"test:check-tsc": "ls testdata/*/output/tsconfig.json | xargs -n 1 tsc --noEmit --project",

@@ -41,15 +41,16 @@ "prepack": "npm run build"

"dependencies": {
"@lit/localize": "^0.10.3",
"fs-extra": "^9.0.0",
"@lit/localize": "^0.10.4",
"fs-extra": "^10.0.0",
"glob": "^7.1.6",
"jsonschema": "^1.4.0",
"lit": "^2.0.0-rc.2",
"lit": "^2.0.0",
"minimist": "^1.2.5",
"parse5": "^6.0.0",
"parse5": "^6.0.1",
"source-map-support": "^0.5.19",
"typescript": "^4.0.2",
"xmldom": "^0.5.0"
"typescript": "^4.3.5",
"@xmldom/xmldom": "^0.7.0"
},
"devDependencies": {
"@lit-labs/ssr": "^1.0.0-rc.1",
"@lit/ts-transformers": "^1.0.2",
"@lit-labs/ssr": "^1.0.0",
"@types/diff": "^5.0.0",

@@ -59,9 +60,8 @@ "@types/fs-extra": "^9.0.1",

"@types/minimist": "^1.2.0",
"@types/node": "^14.0.1",
"@types/parse5": "^6.0.0",
"@types/node": "^16.7.8",
"@types/parse5": "^6.0.1",
"@types/prettier": "^2.0.1",
"@types/xmldom": "^0.1.29",
"diff": "^5.0.0",
"dir-compare": "^3.1.5",
"prettier": "^2.0.5",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",

@@ -68,0 +68,0 @@ "typescript-json-schema": "^0.50.0",

@@ -65,5 +65,5 @@ /**

console.error('Unexpected error\n');
console.error(err.message);
console.error((err as Error).message);
console.error();
console.error(err.stack);
console.error((err as Error).stack);
}

@@ -70,0 +70,0 @@ console.log();

@@ -26,3 +26,3 @@ /**

throw new KnownError(
`Could not read config file from ${configPath}:\n${e.message}`
`Could not read config file from ${configPath}:\n` + (e as Error).message
);

@@ -36,3 +36,4 @@ }

throw new KnownError(
`Invalid JSON found in config file ${configPath}:\n${e.message}`
`Invalid JSON found in config file ${configPath}:\n` +
(e as Error).message
);

@@ -39,0 +40,0 @@ }

@@ -7,3 +7,3 @@ /**

import * as xmldom from 'xmldom';
import * as xmldom from '@xmldom/xmldom';
import glob from 'glob';

@@ -154,3 +154,3 @@ import fsExtra from 'fs-extra';

`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -164,3 +164,3 @@ }

`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -167,0 +167,0 @@ }

@@ -7,3 +7,3 @@ /**

import * as xmldom from 'xmldom';
import * as xmldom from '@xmldom/xmldom';
import fsExtra from 'fs-extra';

@@ -69,3 +69,3 @@ import * as pathLib from 'path';

} catch (err) {
if (err.code === 'ENOENT') {
if ((err as Error & {code: string}).code === 'ENOENT') {
// It's ok if the file doesn't exist, it's probably just the first

@@ -153,3 +153,3 @@ // time we're running for this locale.

`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -170,3 +170,3 @@ }

`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -173,0 +173,0 @@ })

@@ -71,3 +71,3 @@ /**

`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -81,5 +81,5 @@ }

`Do you have write permission?\n` +
e.message
(e as Error).message
);
}
}

@@ -78,3 +78,3 @@ /**

`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -92,7 +92,7 @@ }

writes.push(
fsExtra.writeFile(filename, ts, 'utf8').catch((e) => {
fsExtra.writeFile(filename, ts, 'utf8').catch((e: unknown) => {
throw new KnownError(
`Error writing TypeScript file: ${filename}\n` +
`Do you have write permission?\n` +
e.message
(e as Error).message
);

@@ -99,0 +99,0 @@ })

@@ -292,3 +292,3 @@ /**

}
for (const decl of eventSymbol.declarations) {
for (const decl of eventSymbol.declarations ?? []) {
let sourceFile: ts.Node = decl;

@@ -511,3 +511,3 @@ while (!ts.isSourceFile(sourceFile)) {

// fail our tests because we import with a relative path in that case.
for (const decl of moduleSymbol.declarations) {
for (const decl of moduleSymbol.declarations ?? []) {
if (

@@ -514,0 +514,0 @@ ts.isSourceFile(decl) &&

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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