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

@tolgee/cli

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tolgee/cli - npm Package Compare versions

Comparing version 2.3.3 to 2.3.4

dist/utils/windowsCompatibleGlob.js

4

dist/commands/push.js
import { extname, join } from 'path';
import { readdir, readFile, stat } from 'fs/promises';
import { Command, Option } from 'commander';
import { glob } from 'glob';
import { loading, success, error, warn, exitWithError, } from '../utils/logger.js';

@@ -9,5 +8,6 @@ import { askString } from '../utils/ask.js';

import { handleLoadableError } from '../client/TolgeeClient.js';
import { windowsCompatibleGlob } from '../utils/windowsCompatibleGlob.js';
async function allInPattern(pattern) {
const files = [];
const items = await glob(pattern);
const items = await windowsCompatibleGlob(pattern);
for (const item of items) {

@@ -14,0 +14,0 @@ if ((await stat(item)).isDirectory()) {

@@ -47,2 +47,3 @@ import { cosmiconfig, defaultLoaders } from 'cosmiconfig';

}
// convert relative paths in config to absolute
if (rc.pull?.path !== undefined) {

@@ -49,0 +50,0 @@ rc.pull.path = resolve(configDir, rc.pull.path);

@@ -1,5 +0,5 @@

import { glob } from 'glob';
import { extname } from 'path';
import { callWorker } from './worker.js';
import { exitWithError } from '../utils/logger.js';
import { windowsCompatibleGlob } from '../utils/windowsCompatibleGlob.js';
export const NullNamespace = Symbol('namespace.null');

@@ -57,5 +57,4 @@ function parseVerbose(v) {

}
const files = await glob(opts.patterns, {
const files = await windowsCompatibleGlob(opts.patterns, {
nodir: true,
windowsPathsNoEscape: process.platform === 'win32',
});

@@ -62,0 +61,0 @@ if (files.length === 0) {

{
"name": "@tolgee/cli",
"version": "2.3.3",
"version": "2.3.4",
"type": "module",

@@ -5,0 +5,0 @@ "description": "A tool to interact with the Tolgee Platform through CLI",

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