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

@vendure/ngx-translate-extract

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vendure/ngx-translate-extract - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

3

dist/compilers/json.compiler.js
import { TranslationCollection } from '../utils/translation.collection.js';
import { stripBOM } from '../utils/utils.js';
import pkg from 'flat';
const { flatten } = pkg;
import { flatten } from 'flat';
export class JsonCompiler {

@@ -6,0 +5,0 @@ constructor(options) {

import { TranslationCollection } from '../utils/translation.collection.js';
import { stripBOM } from '../utils/utils.js';
import pkg from 'flat';
const { flatten, unflatten } = pkg;
import { flatten, unflatten } from 'flat';
export class NamespacedJsonCompiler {

@@ -6,0 +5,0 @@ constructor(options) {

@@ -0,7 +1,8 @@

import path from 'node:path';
import fs from 'node:fs';
import { resolveSync } from 'tsconfig';
import JSON5 from 'json5';
import { tsquery } from '@phenomnomnominal/tsquery';
import { TranslationCollection } from '../utils/translation.collection.js';
import { findClassDeclarations, findClassPropertiesByType, findPropertyCallExpressions, findMethodCallExpressions, getStringsFromExpression, findMethodParameterByType, findConstructorDeclaration, getSuperClassName, getImportPath } from '../utils/ast-helpers.js';
import * as path from 'path';
import * as fs from 'fs';
import { loadSync } from 'tsconfig';
const TRANSLATE_SERVICE_TYPE_REFERENCE = 'TranslateService';

@@ -70,8 +71,11 @@ const TRANSLATE_SERVICE_METHOD_NAMES = ['get', 'instant', 'stream'];

else {
const config = loadSync(currDir);
let baseUrl = config?.config?.compilerOptions?.baseUrl;
if (baseUrl) {
baseUrl = path.resolve(path.dirname(config.path), baseUrl);
let baseUrl = currDir;
const tsconfigFilePath = resolveSync(currDir);
if (tsconfigFilePath) {
const tsConfigFile = fs.readFileSync(tsconfigFilePath);
const config = JSON5.parse(tsConfigFile.toString());
const compilerOptionsBaseUrl = config.compilerOptions?.baseUrl ?? '';
baseUrl = path.resolve(path.dirname(tsconfigFilePath), compilerOptionsBaseUrl);
}
superClassPath = path.resolve(baseUrl ?? currDir, importPath);
superClassPath = path.resolve(baseUrl, importPath);
}

@@ -78,0 +82,0 @@ const superClassFile = superClassPath + '.ts';

@@ -1,8 +0,3 @@

declare module 'braces' {
interface Options {
keepEscaping?: boolean;
}
}
export declare function normalizeHomeDir(path: string): string;
export declare function expandPattern(pattern: string): string[];
export declare function normalizePaths(patterns: string[], defaultPatterns?: string[]): string[];
{
"name": "@vendure/ngx-translate-extract",
"version": "9.0.0",
"version": "9.0.1",
"description": "Extract strings from projects using ngx-translate",

@@ -15,35 +15,31 @@ "author": "Kim Biesbjerg <kim@biesbjerg.com>",

"dependencies": {
"@phenomnomnominal/tsquery": "^5.0.1",
"boxen": "^6.2.1",
"@phenomnomnominal/tsquery": "^6.1.3",
"braces": "^3.0.2",
"colorette": "^2.0.16",
"flat": "^5.0.2",
"colorette": "^2.0.20",
"flat": "^6.0.1",
"gettext-parser": "^4.2.0",
"glob": "^7.2.0",
"path": "^0.12.7",
"terminal-link": "^3.0.0",
"glob": "^10.3.0",
"json5": "^2.2.3",
"tsconfig": "^7.0.0",
"yargs": "^17.5.1"
"yargs": "^17.7.2"
},
"devDependencies": {
"@angular/compiler": "^17.0.3",
"@types/braces": "^3.0.1",
"@types/chai": "^4.3.3",
"@types/flat": "^5.0.2",
"@types/gettext-parser": "4.0.1",
"@angular/compiler": "^17.0.4",
"@types/braces": "^3.0.4",
"@types/chai": "^4.3.11",
"@types/gettext-parser": "^4.0.4",
"@types/glob": "^8.0.0",
"@types/mocha": "^9.1.1",
"@types/node": "^16",
"@types/yargs": "^17.0.20",
"@types/mocha": "^10.0.6",
"@types/node": "^18",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/eslint-plugin-tslint": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"chai": "^4.3.6",
"cross-env": "^7.0.3",
"chai": "^4.3.10",
"eslint": "^8.32.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.29.0",
"mocha": "^10.2.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"rimraf": "^5.0.5",
"ts-mocha": "^10.0.0",

@@ -50,0 +46,0 @@ "ts-node": "^10.4.0",

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