diff --git a/extensions/typescript-language-features/package-manager/.eslintrc.js b/extensions/typescript-language-features/package-manager/.eslintrc.js deleted file mode 100644 index 63ef38ea46b5c..0000000000000 --- a/extensions/typescript-language-features/package-manager/.eslintrc.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - "parserOptions": { - "tsconfigRootDir": __dirname, - "project": "./tsconfig.json" - }, - "rules": { - "@typescript-eslint/prefer-optional-chain": "warn", - "@typescript-eslint/prefer-readonly": "warn" - } -}; - diff --git a/extensions/typescript-language-features/package-manager/README.md b/extensions/typescript-language-features/package-manager/README.md deleted file mode 100644 index 058df33811fc8..0000000000000 --- a/extensions/typescript-language-features/package-manager/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# Package Manager - -This package is a web-compatible package manager built with tsserverlib -compatibility in mind. It does not require a "real" filesystem or a "real" NPM -installation, but instead uses [orogene](https://github.com/orogene/orogene) -to perform package management operations. - -It is largely a thin wrapper around Orogene's [node-maintainer WASM -API](https://github.com/orogene/orogene/blob/abba96e6662c3465a498fbe6154ffcf2fe33fac4/crates/node-maintainer/src/wasm.rs). - -## Updating vendored `node-maintainer` - -Currently, this package vendors a prebuilt version of `node-maintainer` into -the `./node-maintainer` directory. This has to be manually built and updated -as needed whenever there are desired changes from orogene. - -To update the directory: - -1. `rm -rf ./node-maintainer` -2. clone https://github.com/orogene/orogene somewhere. See the [contributing - instructions](https://github.com/orogene/orogene/blob/abba96e6662c3465a498fbe6154ffcf2fe33fac4/CONTRIBUTING.md#getting-up-and-running) - for a guide on how to set up and build wasm modules. -3. `mv /path/to/orogene/crates/node-maintainer/pkg ./node-maintainer` -4. `git add node-maintainer && git commit -m 'updated node-maintainer' - -## A Note on Build Requirements - -To get this branch working, as of today (4/7/2023), you need to use a -TypeScript release that includes [this -commit](https://github.com/microsoft/TypeScript/commit/d23b7e7c52c471732079a9834bbfeef53b1a1697), -which has been merged into `main`, but not released yet. - -In order to use an unreleased TypeScript with VS Code: - -1. At the `../..` (`vscode/extensions/`) level, you should `npm link` the - version of typescript you want. - 1. Go to your `typescript` source checkout - 2. Call `npm link` - 3. Go to `vscode/extensions` - 4. Call `npm link typescript` diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/README.md b/extensions/typescript-language-features/package-manager/node-maintainer/README.md deleted file mode 100644 index 2510288f05f9c..0000000000000 --- a/extensions/typescript-language-features/package-manager/node-maintainer/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# `node-maintainer` - -An NPM dependency resolver for building `node_modules/` trees and -extracting them to their final resting place. - -## Orogene - -This package is part of [Orogene](https://orogene.dev), a package manager for -`node_modules/`. - -## Contributing - -For contributing guidelines, please see the [main orogenee -repository](https://github.com/orogene/orogene). - -## License - -For licensing information, please check [the LICENSE file in the Orogene -repository](https://github.com/orogene/orogene/blob/main/LICENSE). diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer.d.ts b/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer.d.ts deleted file mode 100644 index b6df152b81f2f..0000000000000 --- a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer.d.ts +++ /dev/null @@ -1,491 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** -* Resolves a dependency tree using `spec` as the root package. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function resolveSpec(spec: string, opts: any): Promise; -/** -* Returns a dependency tree using a `package.json` manifest as the root -* package. -* @param {PackageJson} manifest -* @param {any} opts -* @returns {Promise} -*/ -export function resolveManifest(manifest: PackageJson, opts: any): Promise; -/** -* Resolves a `Packument` for the given package `spec`. -* -* This uses default `Nassun` options and does not cache the result. -* To configure `Nassun`, and/or enable more efficient caching/reuse, -* look at `Package#packument` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function packument(spec: string, opts: any): Promise; -/** -* Resolves a partial ("corgi") version of the `Packument` for the given -* package `spec`. -* -* This uses default `Nassun` options and does not cache the result. -* To configure `Nassun`, and/or enable more efficient caching/reuse, -* look at `Package#packument` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function corgiPackument(spec: string, opts: any): Promise; -/** -* Resolves version metadata from the given package `spec`, using the default -* resolution algorithm. -* -* This uses default `Nassun` options and does not cache the result. To -* configure `Nassun`, and/or enable more efficient caching/reuse, look at -* `Package#metadata` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function metadata(spec: string, opts: any): Promise; -/** -* Resolves a partial ("corgi") version of the version metadata from the -* given package `spec`, using the default resolution algorithm. -* -* This uses default `Nassun` settings and does not cache the result. To -* configure `Nassun`, and/or enable more efficient caching/reuse, look at -* `Package#metadata` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function corgiMetadata(spec: string, opts: any): Promise; -/** -* Resolves a tarball from the given package `spec`, using the -* default resolution algorithm. This tarball will have its data checked -* if the package metadata fetched includes integrity information. -* -* This uses default `Nassun` settings and does not cache the result. -* To configure `Nassun`, and/or enable more efficient caching/reuse, -* look at `Package#tarball` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function tarball(spec: string, opts: any): Promise; -/** -* Resolves to a `ReadableStream` of entries from the given package -* `spec`, using the default resolution algorithm. The source tarball will -* have its data checked if the package metadata fetched includes integrity -* information. -* -* This uses default `Nassun` settings and does not cache the result. To -* configure `Nassun`, and/or enable more efficient caching/reuse, look at -* `Package#entries` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function entries(spec: string, opts: any): Promise; - -export interface NodeMaintainerError { - message: string; - code?: string; -} - -export interface PackageJson { - dependencies?: Record; - devDependencies?: Record; - peerDependencies?: Record; - optionalDependencies?: Record; - bundledDependencies?: string[]; -} - - -export interface NodeMaintainerOptions { - registry?: string; - scopedRegistries?: Map; - concurrency?: number; - kdlLock?: string; - npmLock?: string; - defaultTag?: string; -} - -export interface NodeMaintainer { - inner: NodeMaintainer; -} - - -/** - * Error type thrown by the Nassun API. - */ -export interface NassunError { - message: string; - code?: string; -} - -/** - * An entry extracted from a package tarball. - */ -export interface Entry { - type: number; - mtime: number; - size: number; - path: string; - contents: ReadableStream; -} - - -export interface NassunOpts { - registry?: string; - scopedRegistries?: Map; -} - -/** -*/ -export class IntoUnderlyingByteSource { - free(): void; -/** -* @param {any} controller -*/ - start(controller: any): void; -/** -* @param {any} controller -* @returns {Promise} -*/ - pull(controller: any): Promise; -/** -*/ - cancel(): void; -/** -*/ - readonly autoAllocateChunkSize: number; -/** -*/ - readonly type: any; -} -/** -*/ -export class IntoUnderlyingSink { - free(): void; -/** -* @param {any} chunk -* @returns {Promise} -*/ - write(chunk: any): Promise; -/** -* @returns {Promise} -*/ - close(): Promise; -/** -* @param {any} reason -* @returns {Promise} -*/ - abort(reason: any): Promise; -} -/** -*/ -export class IntoUnderlyingSource { - free(): void; -/** -* @param {any} controller -* @returns {Promise} -*/ - pull(controller: any): Promise; -/** -*/ - cancel(): void; -} -/** -* NPM package client used to resolve and fetch package data and metadata. -*/ -export class Nassun { - free(): void; -/** -* Create a new Nassun instance with the given options. -* @param {any} opts -*/ - constructor(opts: any); -/** -* Resolve a spec (e.g. `foo@^1.2.3`, `github:foo/bar`, etc), to a -* `Package` that can be used for further operations. -* @param {string} spec -* @returns {Promise} -*/ - resolve(spec: string): Promise; -/** -* Resolves a packument object for the given package `spec`. -* @param {string} spec -* @returns {Promise} -*/ - packument(spec: string): Promise; -/** -* Resolves version metadata from the given package `spec`. -* @param {string} spec -* @returns {Promise} -*/ - metadata(spec: string): Promise; -/** -* Resolves a partial (corgi) version of the packument object for the -* given package `spec`. -* @param {string} spec -* @returns {Promise} -*/ - corgiPackument(spec: string): Promise; -/** -* Resolves a partial (corgi) version of the version metadata from the -* given package `spec`. -* @param {string} spec -* @returns {Promise} -*/ - corgiMetadata(spec: string): Promise; -/** -* Resolves a `ReadableStream` tarball from the given package -* `spec`. This tarball will have its data checked if the package -* metadata fetched includes integrity information. -* @param {string} spec -* @returns {Promise} -*/ - tarball(spec: string): Promise; -/** -* Resolves to a `ReadableStream` of entries from the given package -* `spec`, using the default resolution algorithm. The source tarball will -* have its data checked if the package metadata fetched includes integrity -* information. -* @param {string} spec -* @returns {Promise} -*/ - entries(spec: string): Promise; -} -/** -* An NPM-compatible dependency resolver. NodeMaintainer builds trees of -* package nodes that can be used to generate lockfiles or fetch package -* tarballs, or even extract them to where they would live in `node_modules`. -*/ -export class NodeMaintainer { - free(): void; -/** -* Resolves a dependency tree using `spec` as the root package. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ - static resolveSpec(spec: string, opts: any): Promise; -/** -* Returns a dependency tree using a `package.json` manifest as the root -* package. -* @param {PackageJson} manifest -* @param {any} opts -* @returns {Promise} -*/ - static resolveManifest(manifest: PackageJson, opts: any): Promise; -/** -* Returns the contents of a package-lock.kdl lockfile for this resolved tree. -* @returns {string} -*/ - toKdl(): string; -/** -* Given a path within node_modules, returns the package that the -* referenced file/directory belongs to. -* @param {string} path -* @returns {Package | undefined} -*/ - packageAtPath(path: string): Package | undefined; -/** -* Concurrently over all packages in the tree, calling `f` on each. -* @param {Function} f -* @returns {Promise} -*/ - forEachPackage(f: Function): Promise; -} -/** -* Options for configuration for various `NodeMaintainer` operations. -*/ -export class NodeMaintainerOptions { - free(): void; -} -/** -* A resolved package. A concrete version has been determined from its -* PackageSpec by the version resolver. -*/ -export class Package { - free(): void; -/** -* The partial (corgi) version of the packument that this `Package` was -* resolved from. -* @returns {Promise} -*/ - corgiPackument(): Promise; -/** -* The partial (corgi) version of the version metadata, aka roughly the -* metadata defined in `package.json`. -* @returns {Promise} -*/ - corgiMetadata(): Promise; -/** -* The full packument that this `Package` was resolved from. -* @returns {Promise} -*/ - packument(): Promise; -/** -* The version metadata, aka roughly the metadata defined in -* `package.json`. -* @returns {Promise} -*/ - metadata(): Promise; -/** -* A `ReadableStream` tarball for this package. This tarball -* will have its data checked if the package metadata fetched includes -* integrity information. -* @returns {Promise} -*/ - tarball(): Promise; -/** -* A `ReadableStream` of entries for this package. The source -* tarball will have its data checked if the package metadata fetched -* includes integrity information. -* @returns {Promise} -*/ - entries(): Promise; -/** -* Original package spec that this `Package` was resolved from. -*/ - readonly from: any; -/** -* Name of the package, as it should be used in the dependency graph. -*/ - readonly name: any; -/** -* The package resolution information that this `Package` was created from. -*/ - readonly resolved: any; -} -/** -* Raw options for [`pipeTo()`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo). -*/ -export class PipeOptions { - free(): void; -/** -*/ - readonly preventAbort: boolean; -/** -*/ - readonly preventCancel: boolean; -/** -*/ - readonly preventClose: boolean; -/** -*/ - readonly signal: AbortSignal | undefined; -} -/** -*/ -export class QueuingStrategy { - free(): void; -/** -*/ - readonly highWaterMark: number; -} -/** -* Raw options for [`getReader()`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader). -*/ -export class ReadableStreamGetReaderOptions { - free(): void; -/** -*/ - readonly mode: any; -} - -export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; - -export interface InitOutput { - readonly memory: WebAssembly.Memory; - readonly __wbg_nodemaintaineroptions_free: (a: number) => void; - readonly __wbg_nodemaintainer_free: (a: number) => void; - readonly nodemaintainer_resolveSpec: (a: number, b: number, c: number) => number; - readonly nodemaintainer_resolveManifest: (a: number, b: number) => number; - readonly nodemaintainer_toKdl: (a: number, b: number) => void; - readonly nodemaintainer_packageAtPath: (a: number, b: number, c: number) => number; - readonly nodemaintainer_forEachPackage: (a: number, b: number) => number; - readonly resolveSpec: (a: number, b: number, c: number) => number; - readonly resolveManifest: (a: number, b: number) => number; - readonly packument: (a: number, b: number, c: number) => number; - readonly corgiPackument: (a: number, b: number, c: number) => number; - readonly metadata: (a: number, b: number, c: number) => number; - readonly corgiMetadata: (a: number, b: number, c: number) => number; - readonly tarball: (a: number, b: number, c: number) => number; - readonly entries: (a: number, b: number, c: number) => number; - readonly __wbg_nassun_free: (a: number) => void; - readonly nassun_new: (a: number, b: number) => void; - readonly nassun_resolve: (a: number, b: number, c: number) => number; - readonly nassun_packument: (a: number, b: number, c: number) => number; - readonly nassun_metadata: (a: number, b: number, c: number) => number; - readonly nassun_corgiPackument: (a: number, b: number, c: number) => number; - readonly nassun_corgiMetadata: (a: number, b: number, c: number) => number; - readonly nassun_tarball: (a: number, b: number, c: number) => number; - readonly nassun_entries: (a: number, b: number, c: number) => number; - readonly __wbg_package_free: (a: number) => void; - readonly package_from: (a: number) => number; - readonly package_name: (a: number) => number; - readonly package_resolved: (a: number) => number; - readonly package_corgiPackument: (a: number) => number; - readonly package_corgiMetadata: (a: number) => number; - readonly package_packument: (a: number) => number; - readonly package_metadata: (a: number) => number; - readonly package_tarball: (a: number) => number; - readonly package_entries: (a: number) => number; - readonly __wbg_readablestreamgetreaderoptions_free: (a: number) => void; - readonly readablestreamgetreaderoptions_mode: (a: number) => number; - readonly __wbg_pipeoptions_free: (a: number) => void; - readonly pipeoptions_preventClose: (a: number) => number; - readonly pipeoptions_preventCancel: (a: number) => number; - readonly pipeoptions_preventAbort: (a: number) => number; - readonly pipeoptions_signal: (a: number) => number; - readonly __wbg_queuingstrategy_free: (a: number) => void; - readonly queuingstrategy_highWaterMark: (a: number) => number; - readonly __wbg_intounderlyingsource_free: (a: number) => void; - readonly intounderlyingsource_pull: (a: number, b: number) => number; - readonly intounderlyingsource_cancel: (a: number) => void; - readonly __wbg_intounderlyingsink_free: (a: number) => void; - readonly intounderlyingsink_write: (a: number, b: number) => number; - readonly intounderlyingsink_close: (a: number) => number; - readonly intounderlyingsink_abort: (a: number, b: number) => number; - readonly __wbg_intounderlyingbytesource_free: (a: number) => void; - readonly intounderlyingbytesource_type: (a: number) => number; - readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number; - readonly intounderlyingbytesource_start: (a: number, b: number) => void; - readonly intounderlyingbytesource_pull: (a: number, b: number) => number; - readonly intounderlyingbytesource_cancel: (a: number) => void; - readonly __wbindgen_export_0: (a: number) => number; - readonly __wbindgen_export_1: (a: number, b: number, c: number) => number; - readonly __wbindgen_export_2: WebAssembly.Table; - readonly __wbindgen_export_3: (a: number, b: number, c: number) => void; - readonly __wbindgen_export_4: (a: number, b: number, c: number) => void; - readonly __wbindgen_add_to_stack_pointer: (a: number) => number; - readonly __wbindgen_export_5: (a: number, b: number) => void; - readonly __wbindgen_export_6: (a: number) => void; - readonly __wbindgen_export_7: (a: number, b: number, c: number, d: number) => void; -} - -export type SyncInitInput = BufferSource | WebAssembly.Module; -/** -* Instantiates the given `module`, which can either be bytes or -* a precompiled `WebAssembly.Module`. -* -* @param {SyncInitInput} module -* -* @returns {InitOutput} -*/ -export function initSync(module: SyncInitInput): InitOutput; - -/** -* If `module_or_path` is {RequestInfo} or {URL}, makes a request and -* for everything else, calls `WebAssembly.instantiate` directly. -* -* @param {InitInput | Promise} module_or_path -* -* @returns {Promise} -*/ -export default function init (module_or_path?: InitInput | Promise): Promise; diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer.js b/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer.js deleted file mode 100644 index 029d97f44d336..0000000000000 --- a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer.js +++ /dev/null @@ -1,1527 +0,0 @@ -import { bytes_literal } from './snippets/wasm-streams-42e57edbcd526312/inline0.js'; - -let wasm; - -const heap = new Array(128).fill(undefined); - -heap.push(undefined, null, true, false); - -function getObject(idx) { return heap[idx]; } - -let heap_next = heap.length; - -function dropObject(idx) { - if (idx < 132) return; - heap[idx] = heap_next; - heap_next = idx; -} - -function takeObject(idx) { - const ret = getObject(idx); - dropObject(idx); - return ret; -} - -const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - -cachedTextDecoder.decode(); - -let cachedUint8Memory0 = null; - -function getUint8Memory0() { - if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { - cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8Memory0; -} - -function getStringFromWasm0(ptr, len) { - return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); -} - -function addHeapObject(obj) { - if (heap_next === heap.length) heap.push(heap.length + 1); - const idx = heap_next; - heap_next = heap[idx]; - - heap[idx] = obj; - return idx; -} - -let WASM_VECTOR_LEN = 0; - -const cachedTextEncoder = new TextEncoder('utf-8'); - -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); -} - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); - -function passStringToWasm0(arg, malloc, realloc) { - - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length); - getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len); - - const mem = getUint8Memory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3); - const view = getUint8Memory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); - - offset += ret.written; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -function isLikeNone(x) { - return x === undefined || x === null; -} - -let cachedInt32Memory0 = null; - -function getInt32Memory0() { - if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { - cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); - } - return cachedInt32Memory0; -} - -let cachedFloat64Memory0 = null; - -function getFloat64Memory0() { - if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) { - cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer); - } - return cachedFloat64Memory0; -} - -let cachedBigInt64Memory0 = null; - -function getBigInt64Memory0() { - if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) { - cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer); - } - return cachedBigInt64Memory0; -} - -function debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; -} - -function makeMutClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); - - } else { - state.a = a; - } - } - }; - real.original = state; - - return real; -} -function __wbg_adapter_50(arg0, arg1, arg2) { - wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2)); -} - -function __wbg_adapter_53(arg0, arg1, arg2) { - wasm.__wbindgen_export_4(arg0, arg1, addHeapObject(arg2)); -} - -/** -* Resolves a dependency tree using `spec` as the root package. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function resolveSpec(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.resolveSpec(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Returns a dependency tree using a `package.json` manifest as the root -* package. -* @param {PackageJson} manifest -* @param {any} opts -* @returns {Promise} -*/ -export function resolveManifest(manifest, opts) { - const ret = wasm.resolveManifest(addHeapObject(manifest), addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Resolves a `Packument` for the given package `spec`. -* -* This uses default `Nassun` options and does not cache the result. -* To configure `Nassun`, and/or enable more efficient caching/reuse, -* look at `Package#packument` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function packument(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.packument(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Resolves a partial ("corgi") version of the `Packument` for the given -* package `spec`. -* -* This uses default `Nassun` options and does not cache the result. -* To configure `Nassun`, and/or enable more efficient caching/reuse, -* look at `Package#packument` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function corgiPackument(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.corgiPackument(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Resolves version metadata from the given package `spec`, using the default -* resolution algorithm. -* -* This uses default `Nassun` options and does not cache the result. To -* configure `Nassun`, and/or enable more efficient caching/reuse, look at -* `Package#metadata` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function metadata(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.metadata(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Resolves a partial ("corgi") version of the version metadata from the -* given package `spec`, using the default resolution algorithm. -* -* This uses default `Nassun` settings and does not cache the result. To -* configure `Nassun`, and/or enable more efficient caching/reuse, look at -* `Package#metadata` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function corgiMetadata(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.corgiMetadata(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Resolves a tarball from the given package `spec`, using the -* default resolution algorithm. This tarball will have its data checked -* if the package metadata fetched includes integrity information. -* -* This uses default `Nassun` settings and does not cache the result. -* To configure `Nassun`, and/or enable more efficient caching/reuse, -* look at `Package#tarball` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function tarball(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.tarball(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -/** -* Resolves to a `ReadableStream` of entries from the given package -* `spec`, using the default resolution algorithm. The source tarball will -* have its data checked if the package metadata fetched includes integrity -* information. -* -* This uses default `Nassun` settings and does not cache the result. To -* configure `Nassun`, and/or enable more efficient caching/reuse, look at -* `Package#entries` instead. -* @param {string} spec -* @param {any} opts -* @returns {Promise} -*/ -export function entries(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.entries(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); -} - -function handleError(f, args) { - try { - return f.apply(this, args); - } catch (e) { - wasm.__wbindgen_export_6(addHeapObject(e)); - } -} -function __wbg_adapter_224(arg0, arg1, arg2, arg3) { - wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); -} - -/** -*/ -export class IntoUnderlyingByteSource { - - static __wrap(ptr) { - const obj = Object.create(IntoUnderlyingByteSource.prototype); - obj.ptr = ptr; - - return obj; - } - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_intounderlyingbytesource_free(ptr); - } - /** - * @returns {any} - */ - get type() { - const ret = wasm.intounderlyingbytesource_type(this.ptr); - return takeObject(ret); - } - /** - * @returns {number} - */ - get autoAllocateChunkSize() { - const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.ptr); - return ret >>> 0; - } - /** - * @param {any} controller - */ - start(controller) { - wasm.intounderlyingbytesource_start(this.ptr, addHeapObject(controller)); - } - /** - * @param {any} controller - * @returns {Promise} - */ - pull(controller) { - const ret = wasm.intounderlyingbytesource_pull(this.ptr, addHeapObject(controller)); - return takeObject(ret); - } - /** - */ - cancel() { - const ptr = this.__destroy_into_raw(); - wasm.intounderlyingbytesource_cancel(ptr); - } -} -/** -*/ -export class IntoUnderlyingSink { - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_intounderlyingsink_free(ptr); - } - /** - * @param {any} chunk - * @returns {Promise} - */ - write(chunk) { - const ret = wasm.intounderlyingsink_write(this.ptr, addHeapObject(chunk)); - return takeObject(ret); - } - /** - * @returns {Promise} - */ - close() { - const ptr = this.__destroy_into_raw(); - const ret = wasm.intounderlyingsink_close(ptr); - return takeObject(ret); - } - /** - * @param {any} reason - * @returns {Promise} - */ - abort(reason) { - const ptr = this.__destroy_into_raw(); - const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason)); - return takeObject(ret); - } -} -/** -*/ -export class IntoUnderlyingSource { - - static __wrap(ptr) { - const obj = Object.create(IntoUnderlyingSource.prototype); - obj.ptr = ptr; - - return obj; - } - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_intounderlyingsource_free(ptr); - } - /** - * @param {any} controller - * @returns {Promise} - */ - pull(controller) { - const ret = wasm.intounderlyingsource_pull(this.ptr, addHeapObject(controller)); - return takeObject(ret); - } - /** - */ - cancel() { - const ptr = this.__destroy_into_raw(); - wasm.intounderlyingsource_cancel(ptr); - } -} -/** -* NPM package client used to resolve and fetch package data and metadata. -*/ -export class Nassun { - - static __wrap(ptr) { - const obj = Object.create(Nassun.prototype); - obj.ptr = ptr; - - return obj; - } - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_nassun_free(ptr); - } - /** - * Create a new Nassun instance with the given options. - * @param {any} opts - */ - constructor(opts) { - try { - const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.nassun_new(retptr, addHeapObject(opts)); - var r0 = getInt32Memory0()[retptr / 4 + 0]; - var r1 = getInt32Memory0()[retptr / 4 + 1]; - var r2 = getInt32Memory0()[retptr / 4 + 2]; - if (r2) { - throw takeObject(r1); - } - return Nassun.__wrap(r0); - } finally { - wasm.__wbindgen_add_to_stack_pointer(16); - } - } - /** - * Resolve a spec (e.g. `foo@^1.2.3`, `github:foo/bar`, etc), to a - * `Package` that can be used for further operations. - * @param {string} spec - * @returns {Promise} - */ - resolve(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_resolve(this.ptr, ptr0, len0); - return takeObject(ret); - } - /** - * Resolves a packument object for the given package `spec`. - * @param {string} spec - * @returns {Promise} - */ - packument(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_packument(this.ptr, ptr0, len0); - return takeObject(ret); - } - /** - * Resolves version metadata from the given package `spec`. - * @param {string} spec - * @returns {Promise} - */ - metadata(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_metadata(this.ptr, ptr0, len0); - return takeObject(ret); - } - /** - * Resolves a partial (corgi) version of the packument object for the - * given package `spec`. - * @param {string} spec - * @returns {Promise} - */ - corgiPackument(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_corgiPackument(this.ptr, ptr0, len0); - return takeObject(ret); - } - /** - * Resolves a partial (corgi) version of the version metadata from the - * given package `spec`. - * @param {string} spec - * @returns {Promise} - */ - corgiMetadata(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_corgiMetadata(this.ptr, ptr0, len0); - return takeObject(ret); - } - /** - * Resolves a `ReadableStream` tarball from the given package - * `spec`. This tarball will have its data checked if the package - * metadata fetched includes integrity information. - * @param {string} spec - * @returns {Promise} - */ - tarball(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_tarball(this.ptr, ptr0, len0); - return takeObject(ret); - } - /** - * Resolves to a `ReadableStream` of entries from the given package - * `spec`, using the default resolution algorithm. The source tarball will - * have its data checked if the package metadata fetched includes integrity - * information. - * @param {string} spec - * @returns {Promise} - */ - entries(spec) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nassun_entries(this.ptr, ptr0, len0); - return takeObject(ret); - } -} -/** -* An NPM-compatible dependency resolver. NodeMaintainer builds trees of -* package nodes that can be used to generate lockfiles or fetch package -* tarballs, or even extract them to where they would live in `node_modules`. -*/ -export class NodeMaintainer { - - static __wrap(ptr) { - const obj = Object.create(NodeMaintainer.prototype); - obj.ptr = ptr; - - return obj; - } - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_nodemaintainer_free(ptr); - } - /** - * Resolves a dependency tree using `spec` as the root package. - * @param {string} spec - * @param {any} opts - * @returns {Promise} - */ - static resolveSpec(spec, opts) { - const ptr0 = passStringToWasm0(spec, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nodemaintainer_resolveSpec(ptr0, len0, addHeapObject(opts)); - return takeObject(ret); - } - /** - * Returns a dependency tree using a `package.json` manifest as the root - * package. - * @param {PackageJson} manifest - * @param {any} opts - * @returns {Promise} - */ - static resolveManifest(manifest, opts) { - const ret = wasm.nodemaintainer_resolveManifest(addHeapObject(manifest), addHeapObject(opts)); - return takeObject(ret); - } - /** - * Returns the contents of a package-lock.kdl lockfile for this resolved tree. - * @returns {string} - */ - toKdl() { - try { - const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.nodemaintainer_toKdl(retptr, this.ptr); - var r0 = getInt32Memory0()[retptr / 4 + 0]; - var r1 = getInt32Memory0()[retptr / 4 + 1]; - var r2 = getInt32Memory0()[retptr / 4 + 2]; - var r3 = getInt32Memory0()[retptr / 4 + 3]; - var ptr0 = r0; - var len0 = r1; - if (r3) { - ptr0 = 0; len0 = 0; - throw takeObject(r2); - } - return getStringFromWasm0(ptr0, len0); - } finally { - wasm.__wbindgen_add_to_stack_pointer(16); - wasm.__wbindgen_export_5(ptr0, len0); - } - } - /** - * Given a path within node_modules, returns the package that the - * referenced file/directory belongs to. - * @param {string} path - * @returns {Package | undefined} - */ - packageAtPath(path) { - const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.nodemaintainer_packageAtPath(this.ptr, ptr0, len0); - return ret === 0 ? undefined : Package.__wrap(ret); - } - /** - * Concurrently over all packages in the tree, calling `f` on each. - * @param {Function} f - * @returns {Promise} - */ - forEachPackage(f) { - const ret = wasm.nodemaintainer_forEachPackage(this.ptr, addHeapObject(f)); - return takeObject(ret); - } -} -/** -* Options for configuration for various `NodeMaintainer` operations. -*/ -export class NodeMaintainerOptions { - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_nodemaintaineroptions_free(ptr); - } -} -/** -* A resolved package. A concrete version has been determined from its -* PackageSpec by the version resolver. -*/ -export class Package { - - static __wrap(ptr) { - const obj = Object.create(Package.prototype); - obj.ptr = ptr; - - return obj; - } - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_package_free(ptr); - } - /** - * Original package spec that this `Package` was resolved from. - * @returns {any} - */ - get from() { - const ret = wasm.package_from(this.ptr); - return takeObject(ret); - } - /** - * Name of the package, as it should be used in the dependency graph. - * @returns {any} - */ - get name() { - const ret = wasm.package_name(this.ptr); - return takeObject(ret); - } - /** - * The package resolution information that this `Package` was created from. - * @returns {any} - */ - get resolved() { - const ret = wasm.package_resolved(this.ptr); - return takeObject(ret); - } - /** - * The partial (corgi) version of the packument that this `Package` was - * resolved from. - * @returns {Promise} - */ - corgiPackument() { - const ret = wasm.package_corgiPackument(this.ptr); - return takeObject(ret); - } - /** - * The partial (corgi) version of the version metadata, aka roughly the - * metadata defined in `package.json`. - * @returns {Promise} - */ - corgiMetadata() { - const ret = wasm.package_corgiMetadata(this.ptr); - return takeObject(ret); - } - /** - * The full packument that this `Package` was resolved from. - * @returns {Promise} - */ - packument() { - const ret = wasm.package_packument(this.ptr); - return takeObject(ret); - } - /** - * The version metadata, aka roughly the metadata defined in - * `package.json`. - * @returns {Promise} - */ - metadata() { - const ret = wasm.package_metadata(this.ptr); - return takeObject(ret); - } - /** - * A `ReadableStream` tarball for this package. This tarball - * will have its data checked if the package metadata fetched includes - * integrity information. - * @returns {Promise} - */ - tarball() { - const ret = wasm.package_tarball(this.ptr); - return takeObject(ret); - } - /** - * A `ReadableStream` of entries for this package. The source - * tarball will have its data checked if the package metadata fetched - * includes integrity information. - * @returns {Promise} - */ - entries() { - const ret = wasm.package_entries(this.ptr); - return takeObject(ret); - } -} -/** -* Raw options for [`pipeTo()`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo). -*/ -export class PipeOptions { - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_pipeoptions_free(ptr); - } - /** - * @returns {boolean} - */ - get preventClose() { - const ret = wasm.pipeoptions_preventClose(this.ptr); - return ret !== 0; - } - /** - * @returns {boolean} - */ - get preventCancel() { - const ret = wasm.pipeoptions_preventCancel(this.ptr); - return ret !== 0; - } - /** - * @returns {boolean} - */ - get preventAbort() { - const ret = wasm.pipeoptions_preventAbort(this.ptr); - return ret !== 0; - } - /** - * @returns {AbortSignal | undefined} - */ - get signal() { - const ret = wasm.pipeoptions_signal(this.ptr); - return takeObject(ret); - } -} -/** -*/ -export class QueuingStrategy { - - static __wrap(ptr) { - const obj = Object.create(QueuingStrategy.prototype); - obj.ptr = ptr; - - return obj; - } - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_queuingstrategy_free(ptr); - } - /** - * @returns {number} - */ - get highWaterMark() { - const ret = wasm.queuingstrategy_highWaterMark(this.ptr); - return ret; - } -} -/** -* Raw options for [`getReader()`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader). -*/ -export class ReadableStreamGetReaderOptions { - - __destroy_into_raw() { - const ptr = this.ptr; - this.ptr = 0; - - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_readablestreamgetreaderoptions_free(ptr); - } - /** - * @returns {any} - */ - get mode() { - const ret = wasm.readablestreamgetreaderoptions_mode(this.ptr); - return takeObject(ret); - } -} - -async function load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - - } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { - throw e; - } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - - } else { - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - - } else { - return instance; - } - } -} - -function getImports() { - const imports = {}; - imports.wbg = {}; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_string_get = function(arg0, arg1) { - const obj = getObject(arg1); - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_nodemaintainer_new = function(arg0) { - const ret = NodeMaintainer.__wrap(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_bigint = function(arg0) { - const ret = typeof(getObject(arg0)) === 'bigint'; - return ret; - }; - imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) { - const ret = BigInt.asUintN(64, arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { - const ret = getObject(arg0) === getObject(arg1); - return ret; - }; - imports.wbg.__wbindgen_is_object = function(arg0) { - const val = getObject(arg0); - const ret = typeof(val) === 'object' && val !== null; - return ret; - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = getObject(arg0) === undefined; - return ret; - }; - imports.wbg.__wbindgen_in = function(arg0, arg1) { - const ret = getObject(arg0) in getObject(arg1); - return ret; - }; - imports.wbg.__wbindgen_cb_drop = function(arg0) { - const obj = takeObject(arg0).original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - const ret = false; - return ret; - }; - imports.wbg.__wbindgen_error_new = function(arg0, arg1) { - const ret = new Error(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_string = function(arg0) { - const ret = typeof(getObject(arg0)) === 'string'; - return ret; - }; - imports.wbg.__wbg_package_new = function(arg0) { - const ret = Package.__wrap(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - const ret = getObject(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_new_abda76e883ba8a5f = function() { - const ret = new Error(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { - const ret = getObject(arg1).stack; - const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { - try { - console.error(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_export_5(arg0, arg1); - } - }; - imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) { - const ret = arg0; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { - const ret = getObject(arg0) == getObject(arg1); - return ret; - }; - imports.wbg.__wbindgen_boolean_get = function(arg0) { - const v = getObject(arg0); - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; - return ret; - }; - imports.wbg.__wbindgen_number_get = function(arg0, arg1) { - const obj = getObject(arg1); - const ret = typeof(obj) === 'number' ? obj : undefined; - getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; - getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); - }; - imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) { - const ret = String(getObject(arg1)); - const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) { - const ret = getObject(arg0)[getObject(arg1)]; - return addHeapObject(ret); - }; - imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) { - getObject(arg0)[takeObject(arg1)] = takeObject(arg2); - }; - imports.wbg.__wbg_fetch_cf75ae0b20981e3e = function(arg0) { - const ret = fetch(getObject(arg0)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_newwithsource_d169ed5262a23b74 = function(arg0, arg1) { - const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), QueuingStrategy.__wrap(arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_newwithbytesource_33937abb6afe07ad = function() { return handleError(function (arg0) { - const ret = new ReadableStream(IntoUnderlyingByteSource.__wrap(arg0)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_getReader_2dcca5fb18e09eed = function() { return handleError(function (arg0) { - const ret = getObject(arg0).getReader(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_close_a41954830b65c455 = function(arg0) { - getObject(arg0).close(); - }; - imports.wbg.__wbg_enqueue_3a8a8e67e44d2567 = function(arg0, arg1) { - getObject(arg0).enqueue(getObject(arg1)); - }; - imports.wbg.__wbg_byobRequest_a3c74c3694777d1b = function(arg0) { - const ret = getObject(arg0).byobRequest; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_close_045ed342139beb7d = function(arg0) { - getObject(arg0).close(); - }; - imports.wbg.__wbg_view_d1a31268af734e5d = function(arg0) { - const ret = getObject(arg0).view; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_respond_f4778bef04e912a6 = function(arg0, arg1) { - getObject(arg0).respond(arg1 >>> 0); - }; - imports.wbg.__wbg_buffer_610b70c8fd30da2d = function(arg0) { - const ret = getObject(arg0).buffer; - return addHeapObject(ret); - }; - imports.wbg.__wbg_byteOffset_ede786cfcf88d3dd = function(arg0) { - const ret = getObject(arg0).byteOffset; - return ret; - }; - imports.wbg.__wbg_byteLength_1fef7842ca4200fa = function(arg0) { - const ret = getObject(arg0).byteLength; - return ret; - }; - imports.wbg.__wbg_cancel_ec971cf80c0cb93c = function(arg0) { - const ret = getObject(arg0).cancel(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_releaseLock_63a4cb6bda4eb742 = function() { return handleError(function (arg0) { - getObject(arg0).releaseLock(); - }, arguments) }; - imports.wbg.__wbg_read_2ca7e46df6e5a6f6 = function(arg0) { - const ret = getObject(arg0).read(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_done_a0a250be29d69e10 = function(arg0) { - const ret = getObject(arg0).done; - return ret; - }; - imports.wbg.__wbg_value_b71fc239df8382f0 = function(arg0) { - const ret = getObject(arg0).value; - return addHeapObject(ret); - }; - imports.wbg.__wbg_bytesliteral_efe7d360639bf32b = function() { - const ret = bytes_literal(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_newwithstrandinit_c45f0dc6da26fd03 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_signal_686bf5a4acff74a1 = function(arg0) { - const ret = getObject(arg0).signal; - return addHeapObject(ret); - }; - imports.wbg.__wbg_new_a16bcd3b8d000a4f = function() { return handleError(function () { - const ret = new AbortController(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_abort_5f06bf3b2954cf33 = function(arg0) { - getObject(arg0).abort(); - }; - imports.wbg.__wbg_fetch_661ffba2a4f2519c = function(arg0, arg1) { - const ret = getObject(arg0).fetch(getObject(arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_instanceof_Response_fb3a4df648c1859b = function(arg0) { - let result; - try { - result = getObject(arg0) instanceof Response; - } catch { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_url_8ec2534cdfacb103 = function(arg0, arg1) { - const ret = getObject(arg1).url; - const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_status_d483a4ac847f380a = function(arg0) { - const ret = getObject(arg0).status; - return ret; - }; - imports.wbg.__wbg_headers_6093927dc359903e = function(arg0) { - const ret = getObject(arg0).headers; - return addHeapObject(ret); - }; - imports.wbg.__wbg_body_aeb10a3b63770556 = function(arg0) { - const ret = getObject(arg0).body; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_text_f61464d781b099f0 = function() { return handleError(function (arg0) { - const ret = getObject(arg0).text(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_new_f1c3a9c2533a55b8 = function() { return handleError(function () { - const ret = new Headers(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_append_1be1d651f9ecf2eb = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments) }; - imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) { - const ret = getObject(arg0)[arg1 >>> 0]; - return addHeapObject(ret); - }; - imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) { - const ret = getObject(arg0).length; - return ret; - }; - imports.wbg.__wbg_new_b525de17f44a8943 = function() { - const ret = new Array(); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_function = function(arg0) { - const ret = typeof(getObject(arg0)) === 'function'; - return ret; - }; - imports.wbg.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) { - const ret = new Function(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_new_f841cc6f2098f4b5 = function() { - const ret = new Map(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_next_b7d530c04fd8b217 = function(arg0) { - const ret = getObject(arg0).next; - return addHeapObject(ret); - }; - imports.wbg.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) { - const ret = getObject(arg0).next(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) { - const ret = getObject(arg0).done; - return ret; - }; - imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) { - const ret = getObject(arg0).value; - return addHeapObject(ret); - }; - imports.wbg.__wbg_iterator_55f114446221aa5a = function() { - const ret = Symbol.iterator; - return addHeapObject(ret); - }; - imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) { - const ret = Reflect.get(getObject(arg0), getObject(arg1)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) { - const ret = getObject(arg0).call(getObject(arg1)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_new_f9876326328f45ed = function() { - const ret = new Object(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () { - const ret = self.self; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () { - const ret = window.window; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () { - const ret = globalThis.globalThis; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_global_c85a9259e621f3db = function() { return handleError(function () { - const ret = global.global; - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) { - getObject(arg0)[arg1 >>> 0] = takeObject(arg2); - }; - imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) { - const ret = Array.isArray(getObject(arg0)); - return ret; - }; - imports.wbg.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) { - let result; - try { - result = getObject(arg0) instanceof ArrayBuffer; - } catch { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_new_15d3966e9981a196 = function(arg0, arg1) { - const ret = new Error(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) { - const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_call_96878afb7a8201ca = function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) { - const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) { - const ret = Number.isSafeInteger(getObject(arg0)); - return ret; - }; - imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) { - const ret = Object.entries(getObject(arg0)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_instanceof_Promise_4333c4e5587e8936 = function(arg0) { - let result; - try { - result = getObject(arg0) instanceof Promise; - } catch { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) { - try { - var state0 = {a: arg0, b: arg1}; - var cb0 = (arg0, arg1) => { - const a = state0.a; - state0.a = 0; - try { - return __wbg_adapter_224(a, state0.b, arg0, arg1); - } finally { - state0.a = a; - } - }; - const ret = new Promise(cb0); - return addHeapObject(ret); - } finally { - state0.a = state0.b = 0; - } - }; - imports.wbg.__wbg_resolve_fd40f858d9db1a04 = function(arg0) { - const ret = Promise.resolve(getObject(arg0)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_catch_44bf25c15946bac0 = function(arg0, arg1) { - const ret = getObject(arg0).catch(getObject(arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) { - const ret = getObject(arg0).then(getObject(arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_then_f753623316e2873a = function(arg0, arg1, arg2) { - const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) { - const ret = getObject(arg0).buffer; - return addHeapObject(ret); - }; - imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) { - const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) { - const ret = new Uint8Array(getObject(arg0)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) { - getObject(arg0).set(getObject(arg1), arg2 >>> 0); - }; - imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) { - const ret = getObject(arg0).length; - return ret; - }; - imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) { - let result; - try { - result = getObject(arg0) instanceof Uint8Array; - } catch { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_has_3feea89d34bd7ad5 = function() { return handleError(function (arg0, arg1) { - const ret = Reflect.has(getObject(arg0), getObject(arg1)); - return ret; - }, arguments) }; - imports.wbg.__wbg_set_6aa458a4ebdb65cb = function() { return handleError(function (arg0, arg1, arg2) { - const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); - return ret; - }, arguments) }; - imports.wbg.__wbg_stringify_029a979dfb73aa17 = function() { return handleError(function (arg0) { - const ret = JSON.stringify(getObject(arg0)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) { - const v = getObject(arg1); - const ret = typeof(v) === 'bigint' ? v : undefined; - getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret; - getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); - }; - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { - const ret = debugString(getObject(arg1)); - const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbindgen_rethrow = function(arg0) { - throw takeObject(arg0); - }; - imports.wbg.__wbindgen_memory = function() { - const ret = wasm.memory; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_closure_wrapper2178 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 747, __wbg_adapter_50); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_closure_wrapper2759 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 967, __wbg_adapter_53); - return addHeapObject(ret); - }; - - return imports; -} - -function initMemory(imports, maybe_memory) { - -} - -function finalizeInit(instance, module) { - wasm = instance.exports; - init.__wbindgen_wasm_module = module; - cachedBigInt64Memory0 = null; - cachedFloat64Memory0 = null; - cachedInt32Memory0 = null; - cachedUint8Memory0 = null; - - - return wasm; -} - -function initSync(module) { - const imports = getImports(); - - initMemory(imports); - - if (!(module instanceof WebAssembly.Module)) { - module = new WebAssembly.Module(module); - } - - const instance = new WebAssembly.Instance(module, imports); - - return finalizeInit(instance, module); -} - -async function init(input) { - if (typeof input === 'undefined') { - input = new URL('node_maintainer_bg.wasm', import.meta.url); - } - const imports = getImports(); - - if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { - input = fetch(input); - } - - initMemory(imports); - - const { instance, module } = await load(await input, imports); - - return finalizeInit(instance, module); -} - -export { initSync } -export default init; diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer_bg.wasm b/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer_bg.wasm deleted file mode 100644 index 2974c9835227f..0000000000000 Binary files a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer_bg.wasm and /dev/null differ diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer_bg.wasm.d.ts b/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer_bg.wasm.d.ts deleted file mode 100644 index 77397cc906c11..0000000000000 --- a/extensions/typescript-language-features/package-manager/node-maintainer/node_maintainer_bg.wasm.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export const memory: WebAssembly.Memory; -export function __wbg_nodemaintaineroptions_free(a: number): void; -export function __wbg_nodemaintainer_free(a: number): void; -export function nodemaintainer_resolveSpec(a: number, b: number, c: number): number; -export function nodemaintainer_resolveManifest(a: number, b: number): number; -export function nodemaintainer_toKdl(a: number, b: number): void; -export function nodemaintainer_packageAtPath(a: number, b: number, c: number): number; -export function nodemaintainer_forEachPackage(a: number, b: number): number; -export function resolveSpec(a: number, b: number, c: number): number; -export function resolveManifest(a: number, b: number): number; -export function packument(a: number, b: number, c: number): number; -export function corgiPackument(a: number, b: number, c: number): number; -export function metadata(a: number, b: number, c: number): number; -export function corgiMetadata(a: number, b: number, c: number): number; -export function tarball(a: number, b: number, c: number): number; -export function entries(a: number, b: number, c: number): number; -export function __wbg_nassun_free(a: number): void; -export function nassun_new(a: number, b: number): void; -export function nassun_resolve(a: number, b: number, c: number): number; -export function nassun_packument(a: number, b: number, c: number): number; -export function nassun_metadata(a: number, b: number, c: number): number; -export function nassun_corgiPackument(a: number, b: number, c: number): number; -export function nassun_corgiMetadata(a: number, b: number, c: number): number; -export function nassun_tarball(a: number, b: number, c: number): number; -export function nassun_entries(a: number, b: number, c: number): number; -export function __wbg_package_free(a: number): void; -export function package_from(a: number): number; -export function package_name(a: number): number; -export function package_resolved(a: number): number; -export function package_corgiPackument(a: number): number; -export function package_corgiMetadata(a: number): number; -export function package_packument(a: number): number; -export function package_metadata(a: number): number; -export function package_tarball(a: number): number; -export function package_entries(a: number): number; -export function __wbg_readablestreamgetreaderoptions_free(a: number): void; -export function readablestreamgetreaderoptions_mode(a: number): number; -export function __wbg_pipeoptions_free(a: number): void; -export function pipeoptions_preventClose(a: number): number; -export function pipeoptions_preventCancel(a: number): number; -export function pipeoptions_preventAbort(a: number): number; -export function pipeoptions_signal(a: number): number; -export function __wbg_queuingstrategy_free(a: number): void; -export function queuingstrategy_highWaterMark(a: number): number; -export function __wbg_intounderlyingsource_free(a: number): void; -export function intounderlyingsource_pull(a: number, b: number): number; -export function intounderlyingsource_cancel(a: number): void; -export function __wbg_intounderlyingsink_free(a: number): void; -export function intounderlyingsink_write(a: number, b: number): number; -export function intounderlyingsink_close(a: number): number; -export function intounderlyingsink_abort(a: number, b: number): number; -export function __wbg_intounderlyingbytesource_free(a: number): void; -export function intounderlyingbytesource_type(a: number): number; -export function intounderlyingbytesource_autoAllocateChunkSize(a: number): number; -export function intounderlyingbytesource_start(a: number, b: number): void; -export function intounderlyingbytesource_pull(a: number, b: number): number; -export function intounderlyingbytesource_cancel(a: number): void; -export function __wbindgen_export_0(a: number): number; -export function __wbindgen_export_1(a: number, b: number, c: number): number; -export const __wbindgen_export_2: WebAssembly.Table; -export function __wbindgen_export_3(a: number, b: number, c: number): void; -export function __wbindgen_export_4(a: number, b: number, c: number): void; -export function __wbindgen_add_to_stack_pointer(a: number): number; -export function __wbindgen_export_5(a: number, b: number): void; -export function __wbindgen_export_6(a: number): void; -export function __wbindgen_export_7(a: number, b: number, c: number, d: number): void; diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/package.json b/extensions/typescript-language-features/package-manager/node-maintainer/package.json deleted file mode 100644 index 93deb0fb1cccc..0000000000000 --- a/extensions/typescript-language-features/package-manager/node-maintainer/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "node-maintainer", - "collaborators": [ - "Orogene Maintainers and Contributors" - ], - "description": "NPM dependency tree resolver for Orogene.", - "version": "0.3.23", - "license": "Apache-2.0", - "repository": { - "type": "git", - "url": "https://github.com/orogene/orogene" - }, - "files": [ - "node_maintainer_bg.wasm", - "node_maintainer.js", - "node_maintainer.d.ts" - ], - "module": "node_maintainer.js", - "homepage": "https://orogene.dev", - "types": "node_maintainer.d.ts", - "sideEffects": [ - "./snippets/*" - ] -} \ No newline at end of file diff --git a/extensions/typescript-language-features/package-manager/node-maintainer/snippets/wasm-streams-42e57edbcd526312/inline0.js b/extensions/typescript-language-features/package-manager/node-maintainer/snippets/wasm-streams-42e57edbcd526312/inline0.js deleted file mode 100644 index 6427b8c24d6c8..0000000000000 --- a/extensions/typescript-language-features/package-manager/node-maintainer/snippets/wasm-streams-42e57edbcd526312/inline0.js +++ /dev/null @@ -1 +0,0 @@ -export function bytes_literal() { return "bytes"; } \ No newline at end of file diff --git a/extensions/typescript-language-features/package-manager/package.json b/extensions/typescript-language-features/package-manager/package.json deleted file mode 100644 index ede2d3b70da22..0000000000000 --- a/extensions/typescript-language-features/package-manager/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "package-manager", - "module": "packageManager.ts", - "private": true -} diff --git a/extensions/typescript-language-features/package-manager/packageManager.ts b/extensions/typescript-language-features/package-manager/packageManager.ts deleted file mode 100644 index 8c45922146421..0000000000000 --- a/extensions/typescript-language-features/package-manager/packageManager.ts +++ /dev/null @@ -1,420 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -import { basename, dirname, isAbsolute, join } from 'path'; -import { resolveManifest, initSync, Nassun, NodeMaintainer, Package } from './node-maintainer'; -import nmWasm from './node-maintainer/node_maintainer_bg.wasm'; - -initSync(dataURItoUint8Array(nmWasm as unknown as string)); - -const decoder = new TextDecoder(); - -export interface InstallProjectOpts { - addPackages?: string[]; - removePackages?: string[]; - packageType?: PackageType; - pkgJson?: string; - npmLock?: string; - kdlLock?: string; -} - -export enum PackageType { - Dependency = 'dependencies', - DevDependency = 'devDependencies', - OptionalDependency = 'optionalDependencies', - PeerDependency = 'peerDependencies', -} - -// This is the subset of ts.server.System that we actually need. -export interface FileSystem { - readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; - deleteFile?(path: string): void; - createDirectory(path: string): void; - writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; - directoryExists(path: string): boolean; - readFile(path: string, encoding?: string): string | undefined; -} - -// The meta file is placed in `node_modules/.meta.json` and records what -// packages have actually been installed. -interface MetaFile { - packages?: Record; -} - -export class PackageManager { - private readonly nassun: Nassun = new Nassun({}); - - constructor(private readonly fs: FileSystem) { } - - async resolveProject(root: string, opts: InstallProjectOpts = {}) { - if (opts.addPackages || opts.removePackages) { - await this.updateJson(join(root, 'package.json'), opts); - } - console.time(`dependency resolution: ${root}`); - const maintainer = await this.resolveMaintainer(root, opts); - console.timeEnd(`dependency resolution: ${root}`); - return new ResolvedProject(this.fs, maintainer, root); - } - - private async updateJson(packageJsonPath: string, opts: InstallProjectOpts = {}) { - const packageType = opts.packageType ?? PackageType.Dependency; - const corgis = await Promise.all((opts.addPackages ?? []).map(async pkg => this.nassun.corgiMetadata(pkg))); - let pkgJson; - try { - pkgJson = this.readJson(packageJsonPath); - } catch (e) { - console.error('failed to read package.json', e); - pkgJson = {}; - } - - for (const packageName of opts.removePackages ?? []) { - delete pkgJson.dependencies?.[packageName]; - delete pkgJson.devDependencies?.[packageName]; - delete pkgJson.optionalDependencies?.[packageName]; - delete pkgJson.peerDependencies?.[packageName]; - } - - for (const corgi of corgis) { - if (!pkgJson[packageType]) { - pkgJson[packageType] = {}; - } - pkgJson[packageType][corgi.name] = `^${corgi.version}`; - } - - const stringified = JSON.stringify(pkgJson, undefined, 2); - this.fs.writeFile(packageJsonPath, stringified); - } - - private async resolveMaintainer(root: string, opts: InstallProjectOpts): Promise { - const pkgJson = opts.pkgJson || this.fs.readFile(join(root, 'package.json')) || '{}'; - const kdlPkgLock = opts.kdlLock || this.fs.readFile(join(root, 'package-lock.kdl')); - const npmPkgLock = opts.npmLock || this.fs.readFile(join(root, 'package-lock.json')); - return resolveManifest(JSON.parse(pkgJson.trim()), { kdlLock: kdlPkgLock, npmLock: npmPkgLock }); - } - - /** - * What it says on the tin. Reads a JSON file from the given path. Throws - * if the file doesn't exist (as opposed to returning `undefined`, like - * fs.readFile does). - */ - private readJson(path: string): any { - const data = this.fs.readFile(path); - if (!data) { - throw new Error('Failed to read file: ' + path); - } - return JSON.parse(data.trim()); - } -} - -/** - * An entry extracted from a package tarball. - */ -interface Entry { - type: number; - mtime: number; - size: number; - path: string; - contents: ReadableStream; -} - -export class ResolvedProject { - private readonly prefix: string; - private readonly metaPath: string; - - constructor(private readonly fs: FileSystem, private readonly maintainer: NodeMaintainer, private readonly root: string) { - this.prefix = join(root, 'node_modules'); - this.metaPath = join(this.prefix, '.meta.json'); - } - - /** - * Synchronizes the project's node_modules directory with the current resolved dependencies, pruning any extraneous ones. - */ - async restore() { - console.time(`project restore: ${this.root}`); - this.pruneExtraneous(); - await this.extractMissing(); - this.writeLockfile(); - console.timeEnd(`project restore: ${this.root}`); - } - - /** - * Extracts a package at the given path. If a package has already been - * extracted to that location, it will be replaced. - * - * @param path to a package - * @returns The number of files extracted, or undefined if the path - */ - async restorePackageAt(path: string): Promise { - console.time(`restore package at: ${path}`); - this.checkPath(path); - const meta: MetaFile = JSON.parse(this.fs.readFile(this.metaPath) || '{}'); - if (!meta.packages) { - meta.packages = {}; - } - const projRoot = this.getProjectRoot(path); - - if (!projRoot) { - console.error('root not found for ', path); - console.timeEnd(`restore package at: ${path}`); - return; - } - - const pkgPath = packagePath(path); - const pkg = this.packageAtPath(path.slice(projRoot.length)); - if (!pkg) { - console.error('no package at path', path, pkgPath); - console.timeEnd(`restore package at: ${path}`); - return; - } - - if (pkg && pkgPath && meta.packages?.[pkgPath.slice(this.prefix.length)]?.resolved === pkg.resolved) { - // Already installed and synced. No need to do anything else! - console.timeEnd(`restore package at: ${path}`); - return; - } else { - rimraf(this.fs, pkgPath); - } - - let count; - try { - // NB(zkat): load-bearing `await`. We need to await here because - // otherwise we'll have a use-after-free error when extracting the - // package entries. - count = await this.extractPackageTo(pkg, pkgPath); - meta.packages[pkgPath.slice(this.prefix.length)] = { - name: pkg.name, - resolved: pkg.resolved - }; - } catch (e) { - console.error('error extracting: ', e); - console.timeEnd(`restore package at: ${path}`); - throw e; - } finally { - pkg.free(); - } - rimraf(this.fs, this.metaPath); - this.fs.writeFile(this.metaPath, JSON.stringify(meta, null, 2)); - this.writeLockfile(); - console.timeEnd(`restore package at: ${path}`); - return count; - } - - /** - * Deletes/prunes files and directories that aren't expected to be there - * by the currently-calculated tree. Extraneous calculation happens based on the contents of `.meta.json` - * @returns - */ - pruneExtraneous(): number { - const meta = JSON.parse(this.fs.readFile(this.metaPath) || '{}'); - let count = 0; - - if (!this.fs.directoryExists(this.prefix)) { - return count; - } - - for (const entryPath of walkDir(this.fs, this.prefix)) { - if (entryPath === this.metaPath) { - // Leave the meta path alone. - continue; - } - const pkgPath = packagePath(entryPath); - // Only look at toplevel package paths. - if (pkgPath === entryPath) { - const subPath = pkgPath.slice(this.prefix.length); - const pkg = this.packageAtPath(subPath); - try { - if (pkg && meta.packages?.[pkgPath.slice(this.prefix.length)]?.resolved === pkg.resolved) { - // There's a valid package here. Move along. - } else { - // Extraneous! - count++; - rimraf(this.fs, entryPath); - } - } finally { - pkg?.free(); - } - } - } - - return count; - } - - private packageAtPath(path: string): Package | undefined { - return this.maintainer.packageAtPath(path); - } - - private getProjectRoot(path: string): string | undefined { - const pkgPath = path.match(/(^.*\/)node_modules/); - return pkgPath?.[1]; - } - - private checkPath(path: string) { - if (!path.startsWith(this.root)) { - throw new Error(`Path ${path} is not in project root ${this.root}`); - } - if (!isAbsolute(path)) { - throw new Error(`Path ${path} is not absolute`); - } - } - - private async extractPackageTo(pkg: Package, pkgPath: string): Promise { - const mkdirCache = new Set(); - mkdirp(mkdirCache, this.fs, pkgPath); - // Clean up the directory, in case it already exists, but leave - // node_modules alone to avoid clobbering other packages. - for (const file of this.fs.readDirectory(pkgPath)) { - if (basename(file) === 'node_modules') { - continue; - } - rimraf(this.fs, file); - } - const entries = >await pkg.entries(); - const reader = entries.getReader(); - let fileCount = 0; - while (true) { - const { done, value: entry } = await reader.read(); - if (done) { - break; - } - - // Strip the first level of a package, just like NPM does. - const entryPath = join(pkgPath, entry.path.replace(/^([^/]*\/)?/, '')); - - // We simulate directories based on files we find. - mkdirp(mkdirCache, this.fs, dirname(entryPath)); - // Types are registered here: - // https://www.gnu.org/software/tar/manual/html_node/Standard.html. - // You can get these numbers by just doing `'5'.codePointAt(0)`, - // but we may as well hard-code the three values we actually care - // about here. - if (entry.type === 53) { - // '5' == 53 == directory - mkdirp(mkdirCache, this.fs, entryPath); - await drainStream(entry.contents); - } else if (entry.type === 0 || entry.type === 48) { - // '0' == 48 or '\x00' == 0 == regular file - const data = await streamToArrayBuffer(entry.contents, entry.size); - this.fs.writeFile(entryPath, decoder.decode(data)); - fileCount++; - } else { - // Anything else, we throw away, but we have to make sure to - // drain any contents before we can continue reading the - // tarball. - await drainStream(entry.contents); - } - } - - return fileCount; - } - - private async extractMissing() { - const meta: MetaFile = { packages: {} }; - await this.maintainer.forEachPackage(async (pkg: Package, path: string) => { - const fullPath = join(this.prefix, path); - meta.packages![path] = { - name: pkg.name, - resolved: pkg.resolved - }; - try { - if (!this.fs.directoryExists(fullPath)) { - await this.extractPackageTo(pkg, fullPath); - } - } finally { - pkg.free(); - } - }); - rimraf(this.fs, this.metaPath); - this.fs.writeFile(this.metaPath, JSON.stringify(meta, null, 2)); - } - - private writeLockfile() { - this.fs.writeFile(join(this.root, 'package-lock.kdl'), this.maintainer.toKdl()); - } - -} - -//---- Utils - -/** - * Given a full path to a particular file, presumably inside a package, - * this returns the path of the package containing that file. - * @param path the full file path to the file. - * @returns the subpath of the package itself - */ -export function packagePath(path: string): string { - return path.replace(/(^.*\/node_modules\/(?:@[^/]+\/)?[^/]+)\/?(?!node_modules\/).*/, '$1'); -} - -// via https://stackoverflow.com/questions/12168909/blob-from-dataurl -function dataURItoUint8Array(dataURI: string) { - const byteString = atob(dataURI.split(',')[1]); - const ab = new ArrayBuffer(byteString.length); - const ia = new Uint8Array(ab); - for (let i = 0; i < byteString.length; i++) { - ia[i] = byteString.charCodeAt(i); - } - return ia; -} - -async function drainStream(stream: ReadableStream): Promise { - const reader = stream.getReader(); - while (true) { // eslint-disable-line no-constant-condition - const { done } = await reader.read(); - if (done) { - break; - } - } - return reader.closed; -} - -async function streamToArrayBuffer(stream: ReadableStream, length: number): Promise { - const result = new Uint8Array(length); - const reader = stream.getReader(); - let idx = 0; - while (true) { // eslint-disable-line no-constant-condition - const { done, value } = await reader.read(); - if (done) { - break; - } - result.set(value, idx); - idx += value.length; - } - return result; -} - -function* walkDir(fs: FileSystem, path: string) { - let contents = fs.readDirectory(path); - while (contents.length) { - const entry = contents.shift()!; - const entryPath = join(path, entry); - if (fs.directoryExists(entryPath)) { - contents = fs.readDirectory(entryPath).map(e => join(entry, e)).concat(contents); - } - yield entryPath; - } -} - -function mkdirp(cache: Set, fs: FileSystem, path: string) { - path.split('/').reduce((dir: string, next: string) => { - const joined = join(dir, next); - if (!cache.has(joined) && !fs.directoryExists(joined)) { - fs.createDirectory(joined); - cache.add(joined); - } - return joined; - }, ''); -} - -function rimraf(fs: FileSystem, path: string) { - if (fs.directoryExists(path)) { - for (const subPath of fs.readDirectory(path).map(e => join(path, e))) { - rimraf(fs, subPath); - } - } - try { - fs.deleteFile?.(path); - } catch (e) { - // shou ga nai - } -} diff --git a/extensions/typescript-language-features/package-manager/tsconfig.json b/extensions/typescript-language-features/package-manager/tsconfig.json deleted file mode 100644 index 390a38c67eda8..0000000000000 --- a/extensions/typescript-language-features/package-manager/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "types": [ - "node" - ] - } -} diff --git a/extensions/typescript-language-features/package.json b/extensions/typescript-language-features/package.json index 05975bb2d7874..1137d3221b449 100644 --- a/extensions/typescript-language-features/package.json +++ b/extensions/typescript-language-features/package.json @@ -34,12 +34,10 @@ ], "dependencies": { "@vscode/extension-telemetry": "^0.8.4", - "jsonc-parser": "^3.2.0", - "semver": "7.5.2", - "vscode-tas-client": "^0.1.63", "@vscode/sync-api-client": "^0.7.2", "@vscode/sync-api-common": "^0.7.2", "@vscode/sync-api-service": "^0.7.3", + "@vscode/ts-package-manager": "^0.0.1", "jsonc-parser": "^3.2.0", "semver": "7.5.2", "vscode-tas-client": "^0.1.63", diff --git a/extensions/typescript-language-features/src/filesystems/autoInstallerFs.ts b/extensions/typescript-language-features/src/filesystems/autoInstallerFs.ts index 0197dd0f54782..4e69fce8cdaac 100644 --- a/extensions/typescript-language-features/src/filesystems/autoInstallerFs.ts +++ b/extensions/typescript-language-features/src/filesystems/autoInstallerFs.ts @@ -6,7 +6,7 @@ import * as vscode from 'vscode'; import { MemFs } from './memFs'; import { URI } from 'vscode-uri'; -import { PackageManager, FileSystem, packagePath } from '../../package-manager/packageManager'; +import { PackageManager, FileSystem, packagePath } from '@vscode/ts-package-manager'; import { join, basename, dirname } from 'path'; const TEXT_DECODER = new TextDecoder('utf-8'); diff --git a/extensions/typescript-language-features/web/typingsInstaller.ts b/extensions/typescript-language-features/web/typingsInstaller.ts index 9a0afe16b15bf..7b9b164c40c52 100644 --- a/extensions/typescript-language-features/web/typingsInstaller.ts +++ b/extensions/typescript-language-features/web/typingsInstaller.ts @@ -23,10 +23,10 @@ * the stuff the abstract class is already doing for us. */ -import * as ts from 'typescript/lib/tsserverlibrary'; +import { PackageManager, PackageType } from '@vscode/ts-package-manager'; import { join } from 'path'; +import * as ts from 'typescript/lib/tsserverlibrary'; import { NameValidationResult, validatePackageNameWorker } from './jsTyping'; -import { PackageManager, PackageType } from '../package-manager/packageManager'; type InstallerResponse = ts.server.PackageInstalledResponse | ts.server.SetTypings | ts.server.InvalidateCachedTypings | ts.server.BeginInstallTypes | ts.server.EndInstallTypes | ts.server.WatchTypingLocations; diff --git a/extensions/typescript-language-features/yarn.lock b/extensions/typescript-language-features/yarn.lock index f8accf4b5acef..9f5a6d483fa1c 100644 --- a/extensions/typescript-language-features/yarn.lock +++ b/extensions/typescript-language-features/yarn.lock @@ -4,20 +4,12 @@ "@azure/abort-controller@^1.0.0": version "1.1.0" - resolved "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.1.0.tgz" + resolved "https://registry.yarnpkg.com/@azure/abort-controller/-/abort-controller-1.1.0.tgz#788ee78457a55af8a1ad342acb182383d2119249" integrity sha512-TrRLIoSQVzfAJX9H1JeFjzAoDGcoK1IYX1UImfceTZpsyYfWr09Ss1aHW1y5TrrR3iq6RZLBwJ3E24uwPhwahw== dependencies: tslib "^2.2.0" -"@azure/core-auth@^1.4.0": - version "1.4.0" - resolved "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.4.0.tgz" - integrity sha512-HFrcTgmuSuukRf/EdPmqBrc5l6Q5Uu+2TbuhaKbgaCpP2TfAeiNaQPAadxO+CYBRHGUzIDteMAjFspFLDLnKVQ== - dependencies: - "@azure/abort-controller" "^1.0.0" - tslib "^2.2.0" - -"@azure/core-auth@^1.5.0": +"@azure/core-auth@^1.4.0", "@azure/core-auth@^1.5.0": version "1.5.0" resolved "https://registry.yarnpkg.com/@azure/core-auth/-/core-auth-1.5.0.tgz#a41848c5c31cb3b7c84c409885267d55a2c92e44" integrity sha512-udzoBuYG1VBoHVohDTrvKjyzel34zt77Bhp7dQntVGGD0ehVq48owENbBG8fIgkHRNUBQH5k1r0hpoMu5L8+kw== @@ -28,7 +20,7 @@ "@azure/core-rest-pipeline@1.10.1": version "1.10.1" - resolved "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.10.1.tgz" + resolved "https://registry.yarnpkg.com/@azure/core-rest-pipeline/-/core-rest-pipeline-1.10.1.tgz#348290847ca31b9eecf9cf5de7519aaccdd30968" integrity sha512-Kji9k6TOFRDB5ZMTw8qUf2IJ+CeJtsuMdAHox9eqpTf1cefiNMpzrfnF6sINEBZJsaVaWgQ0o48B6kcUH68niA== dependencies: "@azure/abort-controller" "^1.0.0" @@ -44,7 +36,7 @@ "@azure/core-tracing@^1.0.0", "@azure/core-tracing@^1.0.1": version "1.0.1" - resolved "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/@azure/core-tracing/-/core-tracing-1.0.1.tgz#352a38cbea438c4a83c86b314f48017d70ba9503" integrity sha512-I5CGMoLtX+pI17ZdiFJZgxMJApsK6jjfm85hpgp3oazCdq5Wxgh4wMr7ge/TTWW1B5WBuvIOI1fMU/FrOAMKrw== dependencies: tslib "^2.2.0" @@ -57,15 +49,7 @@ "@azure/abort-controller" "^1.0.0" tslib "^2.2.0" -"@azure/core-util@^1.0.0": - version "1.1.1" - resolved "https://registry.npmjs.org/@azure/core-util/-/core-util-1.1.1.tgz" - integrity sha512-A4TBYVQCtHOigFb2ETiiKFDocBoI1Zk2Ui1KpI42aJSIDexF7DHQFpnjonltXAIU/ceH+1fsZAWWgvX6/AKzog== - dependencies: - "@azure/abort-controller" "^1.0.0" - tslib "^2.2.0" - -"@azure/core-util@^1.1.0": +"@azure/core-util@^1.0.0", "@azure/core-util@^1.1.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@azure/core-util/-/core-util-1.4.0.tgz#c120a56b3e48a9e4d20619a0b00268ae9de891c7" integrity sha512-eGAyJpm3skVQoLiRqm/xPa+SXi/NPDdSHMxbRAz2lSprd+Zs+qrpQGQQ2VQ3Nttu+nSZR4XoYQC71LbEI7jsig== @@ -74,23 +58,16 @@ tslib "^2.2.0" "@azure/logger@^1.0.0": - version "1.0.3" - resolved "https://registry.npmjs.org/@azure/logger/-/logger-1.0.3.tgz" - integrity sha512-aK4s3Xxjrx3daZr3VylxejK3vG5ExXck5WOHDJ8in/k9AqlfIyFMMT1uG7u8mNjX+QRILTIn0/Xgschfh/dQ9g== + version "1.0.4" + resolved "https://registry.yarnpkg.com/@azure/logger/-/logger-1.0.4.tgz#28bc6d0e5b3c38ef29296b32d35da4e483593fa1" + integrity sha512-ustrPY8MryhloQj7OWGe+HrYx+aoiOxzbXTtgblbV3xwCqpzUK36phH3XNHQKj3EPonyFUuDTfR3qFhTEAuZEg== dependencies: tslib "^2.2.0" -<<<<<<< HEAD -"@microsoft/1ds-core-js@3.2.8", "@microsoft/1ds-core-js@^3.2.8": - version "3.2.8" - resolved "https://registry.npmjs.org/@microsoft/1ds-core-js/-/1ds-core-js-3.2.8.tgz" - integrity sha512-9o9SUAamJiTXIYwpkQDuueYt83uZfXp8zp8YFix1IwVPwC9RmE36T2CX9gXOeq1nDckOuOduYpA8qHvdh5BGfQ== -======= "@azure/opentelemetry-instrumentation-azure-sdk@^1.0.0-beta.5": version "1.0.0-beta.5" resolved "https://registry.yarnpkg.com/@azure/opentelemetry-instrumentation-azure-sdk/-/opentelemetry-instrumentation-azure-sdk-1.0.0-beta.5.tgz#78809e6c005d08450701e5d37f087f6fce2f86eb" integrity sha512-fsUarKQDvjhmBO4nIfaZkfNSApm1hZBzcvpNbSrXdcUBxu7lRvKsV5DnwszX7cnhLyVOW9yl1uigtRQ1yDANjA== ->>>>>>> main dependencies: "@azure/core-tracing" "^1.0.0" "@azure/logger" "^1.0.0" @@ -108,33 +85,19 @@ "@microsoft/applicationinsights-shims" "^2.0.2" "@microsoft/dynamicproto-js" "^1.1.7" -<<<<<<< HEAD -"@microsoft/1ds-post-js@^3.2.8": - version "3.2.8" - resolved "https://registry.npmjs.org/@microsoft/1ds-post-js/-/1ds-post-js-3.2.8.tgz" - integrity sha512-SjlRoNcXcXBH6WQD/5SkkaCHIVqldH3gDu+bI7YagrOVJ5APxwT1Duw9gm3L1FjFa9S2i81fvJ3EVSKpp9wULA== -======= "@microsoft/1ds-post-js@^3.2.13": version "3.2.13" resolved "https://registry.yarnpkg.com/@microsoft/1ds-post-js/-/1ds-post-js-3.2.13.tgz#560aacac8a92fdbb79e8c2ebcb293d56e19f51aa" integrity sha512-HgS574fdD19Bo2vPguyznL4eDw7Pcm1cVNpvbvBLWiW3x4e1FCQ3VMXChWnAxCae8Hb0XqlA2sz332ZobBavTA== ->>>>>>> main dependencies: "@microsoft/1ds-core-js" "3.2.13" "@microsoft/applicationinsights-shims" "^2.0.2" "@microsoft/dynamicproto-js" "^1.1.7" -<<<<<<< HEAD -"@microsoft/applicationinsights-channel-js@2.8.9": - version "2.8.9" - resolved "https://registry.npmjs.org/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-2.8.9.tgz" - integrity sha512-fMBsAEB7pWtPn43y72q9Xy5E5y55r6gMuDQqRRccccVoQDPXyS57VCj5IdATblctru0C6A8XpL2vRyNmEsu0Vg== -======= "@microsoft/applicationinsights-channel-js@3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-channel-js/-/applicationinsights-channel-js-3.0.2.tgz#be49fbf74831c7b8c97950027c5052ea99d2a8a5" integrity sha512-jDBNKbCHsJgmpv0CKNhJ/uN9ZphvfGdb93Svk+R4LjO8L3apNNMbDDPxBvXXi0uigRmA1TBcmyBG4IRKjabGhw== ->>>>>>> main dependencies: "@microsoft/applicationinsights-common" "3.0.2" "@microsoft/applicationinsights-core-js" "3.0.2" @@ -143,34 +106,20 @@ "@nevware21/ts-async" ">= 0.2.4 < 2.x" "@nevware21/ts-utils" ">= 0.9.5 < 2.x" -<<<<<<< HEAD -"@microsoft/applicationinsights-common@2.8.9": - version "2.8.9" - resolved "https://registry.npmjs.org/@microsoft/applicationinsights-common/-/applicationinsights-common-2.8.9.tgz" - integrity sha512-mObn1moElyxZaGIRF/IU3cOaeKMgxghXnYEoHNUCA2e+rNwBIgxjyKkblFIpmGuHf4X7Oz3o3yBWpaC6AoMpig== -======= "@microsoft/applicationinsights-common@3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-common/-/applicationinsights-common-3.0.2.tgz#37670bb07f4858ed41ff9759119e0759007d6e05" integrity sha512-y+WXWop+OVim954Cu1uyYMnNx6PWO8okHpZIQi/1YSqtqaYdtJVPv4P0AVzwJdohxzVfgzKvqj9nec/VWqE2Zg== ->>>>>>> main dependencies: "@microsoft/applicationinsights-core-js" "3.0.2" "@microsoft/applicationinsights-shims" "3.0.1" "@microsoft/dynamicproto-js" "^2.0.2" "@nevware21/ts-utils" ">= 0.9.5 < 2.x" -<<<<<<< HEAD -"@microsoft/applicationinsights-core-js@2.8.9": - version "2.8.9" - resolved "https://registry.npmjs.org/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.8.9.tgz" - integrity sha512-HRuIuZ6aOWezcg/G5VyFDDWGL8hDNe/ljPP01J7ImH2kRPEgbtcfPSUMjkamGMefgdq81GZsSoC/NNGTP4pp2w== -======= "@microsoft/applicationinsights-core-js@2.8.15": version "2.8.15" resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-core-js/-/applicationinsights-core-js-2.8.15.tgz#8fa466474260e01967fe649f14dd9e5ff91dcdc8" integrity sha512-yYAs9MyjGr2YijQdUSN9mVgT1ijI1FPMgcffpaPmYbHAVbQmF7bXudrBWHxmLzJlwl5rfep+Zgjli2e67lwUqQ== ->>>>>>> main dependencies: "@microsoft/applicationinsights-shims" "2.0.2" "@microsoft/dynamicproto-js" "^1.1.9" @@ -187,20 +136,13 @@ "@microsoft/applicationinsights-shims@2.0.2", "@microsoft/applicationinsights-shims@^2.0.2": version "2.0.2" - resolved "https://registry.npmjs.org/@microsoft/applicationinsights-shims/-/applicationinsights-shims-2.0.2.tgz" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-shims/-/applicationinsights-shims-2.0.2.tgz#92b36a09375e2d9cb2b4203383b05772be837085" integrity sha512-PoHEgsnmcqruLNHZ/amACqdJ6YYQpED0KSRe6J7gIJTtpZC1FfFU9b1fmDKDKtFoUSrPzEh1qzO3kmRZP0betg== -<<<<<<< HEAD -"@microsoft/applicationinsights-web-basic@^2.8.9": - version "2.8.9" - resolved "https://registry.npmjs.org/@microsoft/applicationinsights-web-basic/-/applicationinsights-web-basic-2.8.9.tgz" - integrity sha512-CH0J8JFOy7MjK8JO4pXXU+EML+Ilix+94PMZTX5EJlBU1in+mrik74/8qSg3UC4ekPi12KwrXaHCQSVC3WseXQ== -======= "@microsoft/applicationinsights-shims@3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-shims/-/applicationinsights-shims-3.0.1.tgz#3865b73ace8405b9c4618cc5c571f2fe3876f06f" integrity sha512-DKwboF47H1nb33rSUfjqI6ryX29v+2QWcTrRvcQDA32AZr5Ilkr7whOOSsD1aBzwqX0RJEIP1Z81jfE3NBm/Lg== ->>>>>>> main dependencies: "@nevware21/ts-utils" ">= 0.9.4 < 2.x" @@ -219,26 +161,10 @@ "@microsoft/applicationinsights-web-snippet@^1.0.1": version "1.0.1" - resolved "https://registry.npmjs.org/@microsoft/applicationinsights-web-snippet/-/applicationinsights-web-snippet-1.0.1.tgz" + resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-web-snippet/-/applicationinsights-web-snippet-1.0.1.tgz#6bb788b2902e48bf5d460c38c6bb7fedd686ddd7" integrity sha512-2IHAOaLauc8qaAitvWS+U931T+ze+7MNWrDHY47IENP5y2UA0vqJDu67kWZDdpCN1fFC77sfgfB+HV7SrKshnQ== -"@microsoft/dynamicproto-js@^1.1.7": - version "1.1.7" - resolved "https://registry.npmjs.org/@microsoft/dynamicproto-js/-/dynamicproto-js-1.1.7.tgz" - integrity sha512-SK3D3aVt+5vOOccKPnGaJWB5gQ8FuKfjboUJHedMP7gu54HqSCXX5iFXhktGD8nfJb0Go30eDvs/UDoTnR2kOA== - -<<<<<<< HEAD -"@opentelemetry/api@^1.0.4": - version "1.2.0" - resolved "https://registry.npmjs.org/@opentelemetry/api/-/api-1.2.0.tgz" - integrity sha512-0nBr+VZNKm9tvNDZFstI3Pq1fCTEDK5OZTnVKNvBNAKgd0yIvmwsP4m61rEv7ZP+tOUjWJhROpxK5MsnlF911g== - -"@opentelemetry/core@1.7.0", "@opentelemetry/core@^1.0.1": - version "1.7.0" - resolved "https://registry.npmjs.org/@opentelemetry/core/-/core-1.7.0.tgz" - integrity sha512-AVqAi5uc8DrKJBimCTFUT4iFI+5eXpo4sYmGbQ0CypG0piOTHE2g9c5aSoTGYXu3CzOmJZf7pT6Xh+nwm5d6yQ== -======= -"@microsoft/dynamicproto-js@^1.1.9": +"@microsoft/dynamicproto-js@^1.1.7", "@microsoft/dynamicproto-js@^1.1.9": version "1.1.9" resolved "https://registry.yarnpkg.com/@microsoft/dynamicproto-js/-/dynamicproto-js-1.1.9.tgz#7437db7aa061162ee94e4131b69a62b8dad5dea6" integrity sha512-n1VPsljTSkthsAFYdiWfC+DKzK2WwcRp83Y1YAqdX552BstvsDjft9YXppjUzp11BPsapDoO1LDgrDB0XVsfNQ== @@ -247,30 +173,16 @@ version "2.0.2" resolved "https://registry.yarnpkg.com/@microsoft/dynamicproto-js/-/dynamicproto-js-2.0.2.tgz#e57fbec2e7067d48b7e8e1e1c1d354028ef718a6" integrity sha512-MB8trWaFREpmb037k/d0bB7T2BP7Ai24w1e1tbz3ASLB0/lwphsq3Nq8S9I5AsI5vs4zAQT+SB5nC5/dLYTiOg== ->>>>>>> main dependencies: "@nevware21/ts-utils" ">= 0.9.4 < 2.x" -<<<<<<< HEAD -"@opentelemetry/resources@1.7.0": - version "1.7.0" - resolved "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.7.0.tgz" - integrity sha512-u1M0yZotkjyKx8dj+46Sg5thwtOTBmtRieNXqdCRiWUp6SfFiIP0bI+1XK3LhuXqXkBXA1awJZaTqKduNMStRg== -======= "@nevware21/ts-async@>= 0.2.4 < 2.x": version "0.3.0" resolved "https://registry.yarnpkg.com/@nevware21/ts-async/-/ts-async-0.3.0.tgz#a8b97ba01065fc930de9a3f4dd4a05e862becc6c" integrity sha512-ZUcgUH12LN/F6nzN0cYd0F/rJaMLmXr0EHVTyYfaYmK55bdwE4338uue4UiVoRqHVqNW4KDUrJc49iGogHKeWA== ->>>>>>> main dependencies: "@nevware21/ts-utils" ">= 0.10.0 < 2.x" -<<<<<<< HEAD -"@opentelemetry/sdk-trace-base@^1.0.1": - version "1.7.0" - resolved "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.7.0.tgz" - integrity sha512-Iz84C+FVOskmauh9FNnj4+VrA+hG5o+tkMzXuoesvSfunVSioXib0syVFeNXwOm4+M5GdWCuW632LVjqEXStIg== -======= "@nevware21/ts-utils@>= 0.10.0 < 2.x", "@nevware21/ts-utils@>= 0.9.4 < 2.x", "@nevware21/ts-utils@>= 0.9.5 < 2.x": version "0.10.1" resolved "https://registry.yarnpkg.com/@nevware21/ts-utils/-/ts-utils-0.10.1.tgz#aa65abc71eba06749a396598f22263d26f796ac7" @@ -285,16 +197,9 @@ version "1.15.2" resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.15.2.tgz#5b170bf223a2333884bbc2d29d95812cdbda7c9f" integrity sha512-+gBv15ta96WqkHZaPpcDHiaz0utiiHZVfm2YOYSqFGrUaJpPkMoSuLBB58YFQGi6Rsb9EHos84X6X5+9JspmLw== ->>>>>>> main dependencies: "@opentelemetry/semantic-conventions" "1.15.2" -<<<<<<< HEAD -"@opentelemetry/semantic-conventions@1.7.0", "@opentelemetry/semantic-conventions@^1.0.1": - version "1.7.0" - resolved "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.7.0.tgz" - integrity sha512-FGBx/Qd09lMaqQcogCHyYrFEpTx4cAjeS+48lMIR12z7LdH+zofGDVQSubN59nL6IpubfKqTeIDu9rNO28iHVA== -======= "@opentelemetry/instrumentation@^0.41.2": version "0.41.2" resolved "https://registry.yarnpkg.com/@opentelemetry/instrumentation/-/instrumentation-0.41.2.tgz#cae11fa64485dcf03dae331f35b315b64bc6189f" @@ -327,36 +232,22 @@ version "1.15.2" resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.15.2.tgz#3bafb5de3e20e841dff6cb3c66f4d6e9694c4241" integrity sha512-CjbOKwk2s+3xPIMcd5UNYQzsf+v94RczbdNix9/kQh38WiQkM90sUOi3if8eyHFgiBjBjhwXrA7W3ydiSQP9mw== ->>>>>>> main "@tootallnate/once@2": version "2.0.0" - resolved "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== -<<<<<<< HEAD -"@types/node@16.x": - version "16.11.6" - resolved "https://registry.npmjs.org/@types/node/-/node-16.11.6.tgz" - integrity sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w== -======= "@types/node@18.x": - version "18.15.13" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.13.tgz#f64277c341150c979e42b00e4ac289290c9df469" - integrity sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q== ->>>>>>> main + version "18.17.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.11.tgz#c04054659d88bfeba94095f41ef99a8ddf4e1813" + integrity sha512-r3hjHPBu+3LzbGBa8DHnr/KAeTEEOrahkcL+cZc4MaBMTM+mk8LtXR+zw+nqfjuDZZzYTYgTcpHuP+BEQk069g== "@types/semver@^5.5.0": version "5.5.0" - resolved "https://registry.npmjs.org/@types/semver/-/semver-5.5.0.tgz" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.5.0.tgz#146c2a29ee7d3bae4bf2fcb274636e264c813c45" integrity sha512-41qEJgBH/TWgo5NFSvBCJ1qkoi3Q6ONSF2avrHq1LVEZfYpdHmj0y9SuTK+u9ZhG1sYQKBL1AWXKyLWP4RaUoQ== -<<<<<<< HEAD -"@vscode/extension-telemetry@0.7.5": - version "0.7.5" - resolved "https://registry.npmjs.org/@vscode/extension-telemetry/-/extension-telemetry-0.7.5.tgz" - integrity sha512-fJ5y3TcpqqkFYHneabYaoB4XAhDdVflVm+TDKshw9VOs77jkgNS4UA7LNXrWeO0eDne3Sh3JgURf+xzc1rk69w== -======= "@types/shimmer@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@types/shimmer/-/shimmer-1.0.2.tgz#93eb2c243c351f3f17d5c580c7467ae5d686b65f" @@ -366,7 +257,6 @@ version "0.8.4" resolved "https://registry.yarnpkg.com/@vscode/extension-telemetry/-/extension-telemetry-0.8.4.tgz#c078c6f55df1c9e0592de3b4ce0f685dd345bfe7" integrity sha512-UqM9+KZDDK3MyoHTsg6XNM+XO6pweQxzCpqJz33BoBEYAGsbBviRYcVpJglgay2oReuDD2pOI1Nio3BKNDLhWA== ->>>>>>> main dependencies: "@microsoft/1ds-core-js" "^3.2.13" "@microsoft/1ds-post-js" "^3.2.13" @@ -375,7 +265,7 @@ "@vscode/sync-api-client@^0.7.2": version "0.7.2" - resolved "https://registry.npmjs.org/@vscode/sync-api-client/-/sync-api-client-0.7.2.tgz" + resolved "https://registry.yarnpkg.com/@vscode/sync-api-client/-/sync-api-client-0.7.2.tgz#0644bff66a5eff636bcd8eb483d34796b9f90d2d" integrity sha512-HQHz57RVKmR8sTEen1Y/T3r6mzDX7IaUJz/O2RJkn0Qu9ThvCsakLP0N+1iiwPnPfUfmNSwQXbSw8bEQFPcpYQ== dependencies: "@vscode/sync-api-common" "0.7.2" @@ -383,17 +273,22 @@ "@vscode/sync-api-common@0.7.2", "@vscode/sync-api-common@^0.7.2": version "0.7.2" - resolved "https://registry.npmjs.org/@vscode/sync-api-common/-/sync-api-common-0.7.2.tgz" + resolved "https://registry.yarnpkg.com/@vscode/sync-api-common/-/sync-api-common-0.7.2.tgz#705060ee6a0108c24e145e687613becdb4292b33" integrity sha512-ne1XEeDIYA3mp4oo1QoF1fqFedd0Vf4ybMmLb9HixbTyXy/qwMNL2p6OjXjOsmx6w2q9eqzGA5W/OPRSJxTTIQ== "@vscode/sync-api-service@^0.7.3": version "0.7.3" - resolved "https://registry.npmjs.org/@vscode/sync-api-service/-/sync-api-service-0.7.3.tgz" + resolved "https://registry.yarnpkg.com/@vscode/sync-api-service/-/sync-api-service-0.7.3.tgz#6cb7bd23c4a7378e4b92ca3638501a9be1937152" integrity sha512-m2AmmfG4uzfjLMgWRHQ3xnBkdwCiUTO68vdw1XuzMsOb39Jwm9xr5bVVxwOFR9lPC0FfO1H6FUxBhZQvg7itPA== dependencies: "@vscode/sync-api-common" "0.7.2" vscode-uri "3.0.3" +"@vscode/ts-package-manager@*": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@vscode/ts-package-manager/-/ts-package-manager-0.0.1.tgz#0c40d4f211aea736a54b38f6b53d1f71a826ba32" + integrity sha512-Na2ZjQKs70Ij6eupw2M4w7o8d+9VZq/kpwUJpGF457PpfOlx+34RXKKXupq4HGyRfeLRdObSmUVSeWFBCtO4wA== + acorn-import-assertions@^1.9.0: version "1.9.0" resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" @@ -406,22 +301,15 @@ acorn@^8.8.2: agent-base@6: version "6.0.2" - resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== dependencies: debug "4" -<<<<<<< HEAD -applicationinsights@2.4.1: - version "2.4.1" - resolved "https://registry.npmjs.org/applicationinsights/-/applicationinsights-2.4.1.tgz" - integrity sha512-0n0Ikd0gzSm460xm+M0UTWIwXrhrH/0bqfZatcJjYObWyefxfAxapGEyNnSGd1Tg90neHz+Yhf+Ff/zgvPiQYA== -======= applicationinsights@^2.7.1: version "2.7.3" resolved "https://registry.yarnpkg.com/applicationinsights/-/applicationinsights-2.7.3.tgz#8781454d29c0b14c9773f2e892b4cf5e7468ffa5" integrity sha512-JY8+kTEkjbA+kAVNWDtpfW2lqsrDALfDXuxOs74KLPu2y13fy/9WB52V4LfYVTVcW1/jYOXjTxNS2gPZIDh1iw== ->>>>>>> main dependencies: "@azure/core-auth" "^1.5.0" "@azure/core-rest-pipeline" "1.10.1" @@ -439,14 +327,14 @@ applicationinsights@^2.7.1: async-hook-jl@^1.7.6: version "1.7.6" - resolved "https://registry.npmjs.org/async-hook-jl/-/async-hook-jl-1.7.6.tgz" + resolved "https://registry.yarnpkg.com/async-hook-jl/-/async-hook-jl-1.7.6.tgz#4fd25c2f864dbaf279c610d73bf97b1b28595e68" integrity sha512-gFaHkFfSxTjvoxDMYqDuGHlcRyUuamF8s+ZTtJdDzqjws4mCt7v0vuV79/E2Wr2/riMQgtG4/yUtXWs1gZ7JMg== dependencies: stack-chain "^1.3.7" async-listener@^0.6.0: version "0.6.10" - resolved "https://registry.npmjs.org/async-listener/-/async-listener-0.6.10.tgz" + resolved "https://registry.yarnpkg.com/async-listener/-/async-listener-0.6.10.tgz#a7c97abe570ba602d782273c0de60a51e3e17cbc" integrity sha512-gpuo6xOyF4D5DE5WvyqZdPA3NGhiT6Qf07l7DCB0wwDEsLvDIbCr6j9S5aj5Ch96dLace5tXVzWBZkxU/c5ohw== dependencies: semver "^5.3.0" @@ -454,12 +342,12 @@ async-listener@^0.6.0: asynckit@^0.4.0: version "0.4.0" - resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== axios@^0.26.1: version "0.26.1" - resolved "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9" integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== dependencies: follow-redirects "^1.14.8" @@ -471,7 +359,7 @@ cjs-module-lexer@^1.2.2: cls-hooked@^4.2.2: version "4.2.2" - resolved "https://registry.npmjs.org/cls-hooked/-/cls-hooked-4.2.2.tgz" + resolved "https://registry.yarnpkg.com/cls-hooked/-/cls-hooked-4.2.2.tgz#ad2e9a4092680cdaffeb2d3551da0e225eae1908" integrity sha512-J4Xj5f5wq/4jAvcdgoGsL3G103BtWpZrMo8NEinRltN+xpTZdI+M38pyQqhuFU/P792xkMFvnKSf+Lm81U1bxw== dependencies: async-hook-jl "^1.7.6" @@ -480,14 +368,14 @@ cls-hooked@^4.2.2: combined-stream@^1.0.8: version "1.0.8" - resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== dependencies: delayed-stream "~1.0.0" continuation-local-storage@^3.2.1: version "3.2.1" - resolved "https://registry.npmjs.org/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz" + resolved "https://registry.yarnpkg.com/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz#11f613f74e914fe9b34c92ad2d28fe6ae1db7ffb" integrity sha512-jx44cconVqkCEEyLSKWwkvUXwO561jXMa3LPjTPsm5QR22PA0/mhe33FT4Xb5y74JDvt/Cq+5lm8S8rskLv9ZA== dependencies: async-listener "^0.6.0" @@ -495,27 +383,16 @@ continuation-local-storage@^3.2.1: debug@4, debug@^4.1.1: version "4.3.4" - resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" delayed-stream@~1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -<<<<<<< HEAD -diagnostic-channel-publishers@1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/diagnostic-channel-publishers/-/diagnostic-channel-publishers-1.0.5.tgz" - integrity sha512-dJwUS0915pkjjimPJVDnS/QQHsH0aOYhnZsLJdnZIMOrB+csj8RnZhWTuwnm8R5v3Z7OZs+ksv5luC14DGB7eg== - -diagnostic-channel@1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/diagnostic-channel/-/diagnostic-channel-1.1.0.tgz" - integrity sha512-fwujyMe1gj6rk6dYi9hMZm0c8Mz8NDMVl2LB4iaYh3+LIAThZC8RKFGXWG0IML2OxAit/ZFRgZhMkhQ3d/bobQ== -======= diagnostic-channel-publishers@1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/diagnostic-channel-publishers/-/diagnostic-channel-publishers-1.0.7.tgz#9b7f8d5ee1295481aee19c827d917e96fedf2c4a" @@ -525,25 +402,24 @@ diagnostic-channel@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/diagnostic-channel/-/diagnostic-channel-1.1.1.tgz#44b60972de9ee055c16216535b0e9db3f6a0efd0" integrity sha512-r2HV5qFkUICyoaKlBEpLKHjxMXATUf/l+h8UZPGBHGLy4DDiY2sOLcIctax4eRnTw5wH2jTMExLntGPJ8eOJxw== ->>>>>>> main dependencies: semver "^7.5.3" emitter-listener@^1.0.1, emitter-listener@^1.1.1: version "1.1.2" - resolved "https://registry.npmjs.org/emitter-listener/-/emitter-listener-1.1.2.tgz" + resolved "https://registry.yarnpkg.com/emitter-listener/-/emitter-listener-1.1.2.tgz#56b140e8f6992375b3d7cb2cab1cc7432d9632e8" integrity sha512-Bt1sBAGFHY9DKY+4/2cV6izcKJUf5T7/gkdmkxzX/qv9CcGH8xSwVRW5mtX03SWJtRTWSOpzCuWN9rBFYZepZQ== dependencies: shimmer "^1.2.0" follow-redirects@^1.14.8: - version "1.15.1" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz" - integrity sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA== + version "1.15.2" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== form-data@^4.0.0: version "4.0.0" - resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== dependencies: asynckit "^0.4.0" @@ -564,7 +440,7 @@ has@^1.0.3: http-proxy-agent@^5.0.0: version "5.0.0" - resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w== dependencies: "@tootallnate/once" "2" @@ -573,7 +449,7 @@ http-proxy-agent@^5.0.0: https-proxy-agent@^5.0.0: version "5.0.1" - resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== dependencies: agent-base "6" @@ -598,7 +474,7 @@ is-core-module@^2.13.0: jsonc-parser@^3.2.0: version "3.2.0" - resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== lru-cache@^6.0.0: @@ -610,12 +486,12 @@ lru-cache@^6.0.0: mime-db@1.52.0: version "1.52.0" - resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== mime-types@^2.1.12: version "2.1.35" - resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: mime-db "1.52.0" @@ -627,7 +503,7 @@ module-details-from-path@^1.0.3: ms@2.1.2: version "2.1.2" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== path-parse@^1.0.7: @@ -674,12 +550,12 @@ semver@^7.5.1, semver@^7.5.3: shimmer@^1.1.0, shimmer@^1.2.0, shimmer@^1.2.1: version "1.2.1" - resolved "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz" + resolved "https://registry.yarnpkg.com/shimmer/-/shimmer-1.2.1.tgz#610859f7de327b587efebf501fb43117f9aff337" integrity sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw== stack-chain@^1.3.7: version "1.3.7" - resolved "https://registry.npmjs.org/stack-chain/-/stack-chain-1.3.7.tgz" + resolved "https://registry.yarnpkg.com/stack-chain/-/stack-chain-1.3.7.tgz#d192c9ff4ea6a22c94c4dd459171e3f00cea1285" integrity sha512-D8cWtWVdIe/jBA7v5p5Hwl5yOSOrmZPWDPe2KxQ5UAGD+nxbxU0lKXA4h85Ta6+qgdKVL3vUxsbIZjc1kBG7ug== supports-preserve-symlinks-flag@^1.0.0: @@ -689,33 +565,38 @@ supports-preserve-symlinks-flag@^1.0.0: tas-client@0.1.58: version "0.1.58" - resolved "https://registry.npmjs.org/tas-client/-/tas-client-0.1.58.tgz" + resolved "https://registry.yarnpkg.com/tas-client/-/tas-client-0.1.58.tgz#67d66bf0e27df5276ebc751105e6ad47791c36d8" integrity sha512-fOWii4wQXuo9Zl0oXgvjBzZWzKc5MmUR6XQWX93WU2c1SaP1plPo/zvXP8kpbZ9fvegFOHdapszYqMTRq/SRtg== dependencies: axios "^0.26.1" tslib@^2.2.0: - version "2.4.1" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" - integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== uuid@^8.3.0: version "8.3.2" - resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== vscode-tas-client@^0.1.63: version "0.1.63" - resolved "https://registry.npmjs.org/vscode-tas-client/-/vscode-tas-client-0.1.63.tgz" + resolved "https://registry.yarnpkg.com/vscode-tas-client/-/vscode-tas-client-0.1.63.tgz#df89e67e9bf7ecb46471a0fb8a4a522d2aafad65" integrity sha512-TY5TPyibzi6rNmuUB7eRVqpzLzNfQYrrIl/0/F8ukrrbzOrKVvS31hM3urE+tbaVrnT+TMYXL16GhX57vEowhA== dependencies: tas-client "0.1.58" -vscode-uri@3.0.3, vscode-uri@^3.0.3: +vscode-uri@3.0.3: version "3.0.3" - resolved "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.3.tgz" + resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.3.tgz#a95c1ce2e6f41b7549f86279d19f47951e4f4d84" integrity sha512-EcswR2S8bpR7fD0YPeS7r2xXExrScVMxg4MedACaWHEtx9ftCF/qHG1xGkolzTPcEmjTavCQgbVzHUIdTMzFGA== +vscode-uri@^3.0.3: + version "3.0.7" + resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.7.tgz#6d19fef387ee6b46c479e5fb00870e15e58c1eb8" + integrity sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA== + yallist@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"