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

@opensumi/ide-core-common

Package Overview
Dependencies
Maintainers
7
Versions
1598
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opensumi/ide-core-common - npm Package Compare versions

Comparing version 2.14.3 to 2.14.4-next-1645154677.0

lib/types/statusbar.d.ts

10

lib/async.d.ts

@@ -115,2 +115,11 @@ /// <reference types="vscode" />

}
/**
* A barrier that is initially closed and then becomes opened permanently after a certain period of
* time or when open is called explicitly
*/
export declare class AutoOpenBarrier extends Barrier {
private readonly _timeout;
constructor(autoOpenTimeMs: number);
open(): void;
}
export declare function isThenable<T>(obj: any): obj is Promise<T>;

@@ -176,2 +185,3 @@ export declare function raceTimeout<T>(promise: Promise<T>, timeout: number, onTimeout?: () => void): Promise<T | undefined>;

}
export declare function disposableTimeout(handler: () => void, timeout?: number): IDisposable;
//# sourceMappingURL=async.d.ts.map

23

lib/async.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RunOnceScheduler = exports.raceCancellation = exports.timeout = exports.first = exports.IdleValue = exports.runWhenIdle = exports.asPromise = exports.raceTimeout = exports.isThenable = exports.Barrier = exports.ThrottledDelayer = exports.Delayer = exports.Sequencer = exports.Throttler = exports.hookCancellationToken = exports.createCancelablePromise = void 0;
exports.disposableTimeout = exports.RunOnceScheduler = exports.raceCancellation = exports.timeout = exports.first = exports.IdleValue = exports.runWhenIdle = exports.asPromise = exports.raceTimeout = exports.isThenable = exports.AutoOpenBarrier = exports.Barrier = exports.ThrottledDelayer = exports.Delayer = exports.Sequencer = exports.Throttler = exports.hookCancellationToken = exports.createCancelablePromise = void 0;
const cancellation_1 = require("./cancellation");
const disposable_1 = require("./disposable");
const errors_1 = require("./errors");

@@ -253,2 +254,17 @@ const log_1 = require("./log");

exports.Barrier = Barrier;
/**
* A barrier that is initially closed and then becomes opened permanently after a certain period of
* time or when open is called explicitly
*/
class AutoOpenBarrier extends Barrier {
constructor(autoOpenTimeMs) {
super();
this._timeout = setTimeout(() => this.open(), autoOpenTimeMs);
}
open() {
clearTimeout(this._timeout);
super.open();
}
}
exports.AutoOpenBarrier = AutoOpenBarrier;
function isThenable(obj) {

@@ -449,2 +465,7 @@ return obj && typeof obj.then === 'function';

exports.RunOnceScheduler = RunOnceScheduler;
function disposableTimeout(handler, timeout = 0) {
const timer = setTimeout(handler, timeout);
return (0, disposable_1.toDisposable)(() => clearTimeout(timer));
}
exports.disposableTimeout = disposableTimeout;
//# sourceMappingURL=async.js.map

@@ -31,2 +31,3 @@ "use strict";

}
// eslint-disable-next-line no-console
console.log(`${this.id} cache size — ${this._data.size}`);

@@ -33,0 +34,0 @@ }

@@ -216,2 +216,3 @@ import { MaybePromise } from './async';

private readonly postCommandInterceptor;
private readonly logger;
/**

@@ -218,0 +219,0 @@ * 命令执行方法

3

lib/command.js

@@ -56,2 +56,3 @@ "use strict";

this.postCommandInterceptor = new Map();
this.logger = (0, log_1.getDebugLogger)();
}

@@ -113,3 +114,3 @@ /**

if (this._commands[command.id]) {
console.warn(`A command ${command.id} is already registered.`);
this.logger.warn(`A command ${command.id} is already registered.`);
return disposable_1.Disposable.NULL;

@@ -116,0 +117,0 @@ }

@@ -42,2 +42,3 @@ "use strict";

else {
// eslint-disable-next-line no-console
console.error(`没有获取到 ${String(domain)} 对应的Constructor!`);

@@ -44,0 +45,0 @@ }

@@ -55,2 +55,3 @@ "use strict";

if (this._isDisposed) {
// eslint-disable-next-line no-console
console.warn(new Error('Registering disposable on object that has already been disposed of').stack);

@@ -141,2 +142,3 @@ t.dispose();

catch (e) {
// eslint-disable-next-line no-console
console.error(e);

@@ -213,2 +215,3 @@ }

catch (e) {
// eslint-disable-next-line no-console
console.error(e);

@@ -271,2 +274,3 @@ }

if (!x[__is_disposable_tracked__]) {
// eslint-disable-next-line no-console
console.log(stack);

@@ -273,0 +277,0 @@ }

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

// find most frequent listener and print warning
let topStack;
let topStack = '';
let topCount = 0;

@@ -347,3 +347,5 @@ this._stacks.forEach((count, stack) => {

});
// eslint-disable-next-line no-console
console.warn(`[${this.name}] potential listener LEAK detected, having ${listenerCount} listeners already. MOST frequent listener (${topCount}):`);
// eslint-disable-next-line no-console
console.warn(topStack);

@@ -350,0 +352,0 @@ }

@@ -560,4 +560,7 @@ "use strict";

if (_debug) {
// eslint-disable-next-line no-console
console.log(printTable(_table, pattern, patternLen, word, wordLen));
// eslint-disable-next-line no-console
console.log(printTable(_arrows, pattern, patternLen, word, wordLen));
// eslint-disable-next-line no-console
console.log(printTable(_scores, pattern, patternLen, word, wordLen));

@@ -564,0 +567,0 @@ }

@@ -121,2 +121,3 @@ "use strict";

catch (error) {
// eslint-disable-next-line no-console
console.error(error); // otherwise this error would get lost in the callback chain

@@ -123,0 +124,0 @@ }

@@ -89,5 +89,5 @@ /**

export declare const toNamespacedPath: (path: string) => string;
export declare const sep: "\\" | "/";
export declare const sep: "/" | "\\";
export declare const delimiter: string;
export {};
//# sourceMappingURL=path.d.ts.map
export interface IProcessEnvironment {
[key: string]: string | null;
[key: string]: string | null | undefined;
}

@@ -4,0 +4,0 @@ export declare const enum Platform {

@@ -64,2 +64,4 @@ /** ******************************************************************************

overridable?: boolean;
deprecationMessage?: string;
markdownDeprecationMessage?: string;
}

@@ -66,0 +68,0 @@ export interface PreferenceSchemaProperty extends PreferenceItem {

@@ -79,2 +79,3 @@ "use strict";

if (!matcher.name) {
// eslint-disable-next-line no-console
console.error('Only named Problem Matchers can be registered.');

@@ -81,0 +82,0 @@ return disposable_1.Disposable.NULL;

@@ -270,2 +270,3 @@ "use strict";

if (!value.name) {
// eslint-disable-next-line no-console
console.error('Only named Problem Patterns can be registered.');

@@ -272,0 +273,0 @@ return disposable_1.Disposable.NULL;

@@ -13,2 +13,3 @@ export * from './editor';

export * from './accessibility';
export * from './statusbar';
//# sourceMappingURL=index.d.ts.map

@@ -16,2 +16,3 @@ "use strict";

(0, tslib_1.__exportStar)(require("./accessibility"), exports);
(0, tslib_1.__exportStar)(require("./statusbar"), exports);
//# sourceMappingURL=index.js.map

@@ -105,2 +105,3 @@ "use strict";

if (process.env.NODE_ENV !== 'production' && console !== undefined) {
// eslint-disable-next-line no-console
console.warn('Warning: `Uri.withoutScheme` is deprecated, ' +

@@ -107,0 +108,0 @@ 'If you want to get `fsPath` by `withoutScheme` method, ' +

@@ -16,2 +16,3 @@ import { ISplice } from '../sequence';

export declare function asArray<T>(x: T | T[]): T[];
export declare function asArray<T>(x: T | readonly T[]): readonly T[];
/**

@@ -63,2 +64,5 @@ * 获取非空数组

}
declare type NonFunctional<T> = T extends Function ? never : T;
export declare function enumValueToArray<T>(enumeration: T): NonFunctional<T[keyof T]>[];
export {};
//# sourceMappingURL=arrays.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaleLRUMap = exports.LRUMap = exports.addMapElement = exports.addElement = exports.coalesce = exports.asArray = exports.equals = exports.sortedDiff = exports.distinct = exports.isNonEmptyArray = void 0;
exports.enumValueToArray = exports.StaleLRUMap = exports.LRUMap = exports.addMapElement = exports.addElement = exports.coalesce = exports.asArray = exports.equals = exports.sortedDiff = exports.distinct = exports.isNonEmptyArray = void 0;
const event_1 = require("../event");

@@ -252,2 +252,10 @@ function isNonEmptyArray(obj) {

exports.StaleLRUMap = StaleLRUMap;
// 枚举 value 转数组值
function enumValueToArray(enumeration) {
return Object.keys(enumeration)
.filter((key) => isNaN(Number(key)))
.map((key) => enumeration[key])
.filter((val) => typeof val === 'number' || typeof val === 'string');
}
exports.enumValueToArray = enumValueToArray;
//# sourceMappingURL=arrays.js.map

@@ -39,2 +39,3 @@ "use strict";

if (fn.length !== 0) {
// eslint-disable-next-line no-console
console.warn('Memoize should only be used in functions with zero parameters');

@@ -41,0 +42,0 @@ }

@@ -42,2 +42,6 @@ /**

/**
* Counts how often `character` occurs inside `value`.
*/
export declare function count(value: string, character: string): number;
/**
* Removes all occurrences of needle from the beginning and end of haystack.

@@ -44,0 +48,0 @@ * @param haystack string to trim

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uppercaseFirstLetter = exports.containsUppercaseCharacter = exports.fuzzyContains = exports.repeat = exports.safeBtoa = exports.stripUTF8BOM = exports.startsWithUTF8BOM = exports.UTF8_BOM_CHARACTER = exports.removeAccents = exports.removeAnsiEscapeCodes = exports.lcut = exports.isFullWidthCharacter = exports.containsFullWidthCharacter = exports.isBasicASCII = exports.containsEmoji = exports.containsRTL = exports.isLowSurrogate = exports.isHighSurrogate = exports.overlap = exports.commonSuffixLength = exports.commonPrefixLength = exports.startsWithIgnoreCase = exports.equalsIgnoreCase = exports.isUpperAsciiLetter = exports.isLowerAsciiLetter = exports.compareIgnoreCase = exports.compare = exports.lastNonWhitespaceIndex = exports.getLeadingWhitespace = exports.firstNonWhitespaceIndex = exports.regExpFlags = exports.regExpContainsBackreference = exports.regExpLeadsToEndlessLoop = exports.createRegExp = exports.endsWith = exports.startsWith = exports.stripWildcards = exports.convertSimple2RegExpPattern = exports.rtrim = exports.multiRightTrim = exports.ltrim = exports.trim = exports.escapeRegExpCharacters = exports.escape = exports.mnemonicButtonLabel = exports.format = exports.pad = exports.isFalsyOrWhitespace = exports.stringUtils = exports.empty = void 0;
exports.decodeUTF8 = exports.encodeUTF8 = exports.getNextCodePoint = exports.computeCodePoint = exports.getNLines = void 0;
exports.containsUppercaseCharacter = exports.fuzzyContains = exports.repeat = exports.safeBtoa = exports.stripUTF8BOM = exports.startsWithUTF8BOM = exports.UTF8_BOM_CHARACTER = exports.removeAccents = exports.removeAnsiEscapeCodes = exports.lcut = exports.isFullWidthCharacter = exports.containsFullWidthCharacter = exports.isBasicASCII = exports.containsEmoji = exports.containsRTL = exports.isLowSurrogate = exports.isHighSurrogate = exports.overlap = exports.commonSuffixLength = exports.commonPrefixLength = exports.startsWithIgnoreCase = exports.equalsIgnoreCase = exports.isUpperAsciiLetter = exports.isLowerAsciiLetter = exports.compareIgnoreCase = exports.compare = exports.lastNonWhitespaceIndex = exports.getLeadingWhitespace = exports.firstNonWhitespaceIndex = exports.regExpFlags = exports.regExpContainsBackreference = exports.regExpLeadsToEndlessLoop = exports.createRegExp = exports.endsWith = exports.startsWith = exports.stripWildcards = exports.convertSimple2RegExpPattern = exports.rtrim = exports.multiRightTrim = exports.ltrim = exports.trim = exports.count = exports.escapeRegExpCharacters = exports.escape = exports.mnemonicButtonLabel = exports.format = exports.pad = exports.isFalsyOrWhitespace = exports.stringUtils = exports.empty = void 0;
exports.decodeUTF8 = exports.encodeUTF8 = exports.getNextCodePoint = exports.computeCodePoint = exports.getNLines = exports.uppercaseFirstLetter = void 0;
const os_1 = require("./os");

@@ -100,2 +100,16 @@ /**

/**
* Counts how often `character` occurs inside `value`.
*/
function count(value, character) {
let result = 0;
const ch = character.charCodeAt(0);
for (let i = value.length - 1; i >= 0; i--) {
if (value.charCodeAt(i) === ch) {
result++;
}
}
return result;
}
exports.count = count;
/**
* Removes all occurrences of needle from the beginning and end of haystack.

@@ -102,0 +116,0 @@ * @param haystack string to trim

{
"name": "@opensumi/ide-core-common",
"version": "2.14.3",
"version": "2.14.4-next-1645154677.0",
"description": "@opensumi/ide-core-common",

@@ -30,3 +30,3 @@ "files": [

},
"gitHead": "ca60fa29c3eb868f9c7d3765e18a807ec7b74eb0"
"gitHead": "f3c09bbed6a9db6737bb4f93adcce4aae3e3ff85"
}

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

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

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

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

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