@theia/native-webpack-plugin 1.67.0-next.3 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/lib/index.d.ts +0 -3
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -19
- package/lib/index.js.map +0 -1
- package/lib/monaco-webpack-plugins.d.ts +0 -5
- package/lib/monaco-webpack-plugins.d.ts.map +0 -1
- package/lib/monaco-webpack-plugins.js +0 -27
- package/lib/monaco-webpack-plugins.js.map +0 -1
- package/lib/native-webpack-plugin.d.ts +0 -21
- package/lib/native-webpack-plugin.d.ts.map +0 -1
- package/lib/native-webpack-plugin.js +0 -194
- package/lib/native-webpack-plugin.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/native-webpack-plugin",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.56+d8f18cc386c",
|
|
4
4
|
"description": "Webpack Plugin for native dependencies of Theia.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"tslib": "^2.6.2",
|
|
34
34
|
"webpack": "^5.76.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
|
|
37
37
|
}
|
package/lib/index.d.ts
DELETED
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,SAAS,mBAAmB,CAAC"}
|
package/lib/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
const native_webpack_plugin_1 = require("./native-webpack-plugin");
|
|
18
|
-
module.exports = native_webpack_plugin_1.NativeWebpackPlugin;
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,mEAA8D;AAC9D,iBAAS,2CAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-webpack-plugins.d.ts","sourceRoot":"","sources":["../src/monaco-webpack-plugins.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,qBAAa,mBAAmB;IAC5B,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,GAAG,IAAI;CAM1C"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MonacoWebpackPlugin = void 0;
|
|
19
|
-
class MonacoWebpackPlugin {
|
|
20
|
-
apply(compiler) {
|
|
21
|
-
compiler.hooks.contextModuleFactory.tap('MonacoBuildPlugin', cmf => {
|
|
22
|
-
cmf.hooks.contextModuleFiles.tap('MonacoBuildPlugin', files => files.filter(file => !file.endsWith('.d.ts')));
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.MonacoWebpackPlugin = MonacoWebpackPlugin;
|
|
27
|
-
//# sourceMappingURL=monaco-webpack-plugins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-webpack-plugins.js","sourceRoot":"","sources":["../src/monaco-webpack-plugins.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAIhF,MAAa,mBAAmB;IAC5B,KAAK,CAAC,QAA0B;QAC5B,QAAQ,CAAC,KAAK,CAAC,oBAAoB,CAAC,GAAG,CAAC,mBAAmB,EAAE,GAAG,CAAC,EAAE;YAC/D,GAAG,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAElH,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAPD,kDAOC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Compiler } from 'webpack';
|
|
2
|
-
export interface NativeWebpackPluginOptions {
|
|
3
|
-
out: string;
|
|
4
|
-
trash: boolean;
|
|
5
|
-
ripgrep: boolean;
|
|
6
|
-
pty: boolean;
|
|
7
|
-
replacements?: Record<string, string>;
|
|
8
|
-
nativeBindings?: Record<string, string>;
|
|
9
|
-
}
|
|
10
|
-
export declare class NativeWebpackPlugin {
|
|
11
|
-
private bindings;
|
|
12
|
-
private options;
|
|
13
|
-
constructor(options: NativeWebpackPluginOptions);
|
|
14
|
-
nativeBinding(dependency: string, nodePath: string): void;
|
|
15
|
-
apply(compiler: Compiler): void;
|
|
16
|
-
protected copyRipgrep(issuer: string, compiler: Compiler): Promise<void>;
|
|
17
|
-
protected copyNodePtySpawnHelper(issuer: string, compiler: Compiler): Promise<void>;
|
|
18
|
-
protected copyTrashHelper(issuer: string, compiler: Compiler): Promise<void>;
|
|
19
|
-
protected copyExecutable(source: string, target: string): Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=native-webpack-plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-webpack-plugin.d.ts","sourceRoot":"","sources":["../src/native-webpack-plugin.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,MAAM,WAAW,0BAA0B;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C;AAED,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,OAAO,CAA6B;gBAEhC,OAAO,EAAE,0BAA0B;IAO/C,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIzD,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;cAsDf,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;cAO9D,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;cAgBzE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;cAelE,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAMhF"}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NativeWebpackPlugin = void 0;
|
|
19
|
-
const path = require("path");
|
|
20
|
-
const fs = require("fs");
|
|
21
|
-
const os = require("os");
|
|
22
|
-
const REQUIRE_RIPGREP = '@vscode/ripgrep';
|
|
23
|
-
const REQUIRE_BINDINGS = 'bindings';
|
|
24
|
-
const REQUIRE_PARCEL_WATCHER = './build/Release/watcher.node';
|
|
25
|
-
const REQUIRE_NODE_PTY_CONPTY = '../build/Release/conpty.node';
|
|
26
|
-
class NativeWebpackPlugin {
|
|
27
|
-
constructor(options) {
|
|
28
|
-
var _a;
|
|
29
|
-
this.bindings = new Map();
|
|
30
|
-
this.options = options;
|
|
31
|
-
for (const [name, value] of Object.entries((_a = options.nativeBindings) !== null && _a !== void 0 ? _a : {})) {
|
|
32
|
-
this.nativeBinding(name, value);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
nativeBinding(dependency, nodePath) {
|
|
36
|
-
this.bindings.set(dependency, nodePath);
|
|
37
|
-
}
|
|
38
|
-
apply(compiler) {
|
|
39
|
-
let replacements = {};
|
|
40
|
-
let nodePtyIssuer;
|
|
41
|
-
let trashHelperIssuer;
|
|
42
|
-
let ripgrepIssuer;
|
|
43
|
-
compiler.hooks.initialize.tap(NativeWebpackPlugin.name, async () => {
|
|
44
|
-
var _a;
|
|
45
|
-
const directory = path.resolve(compiler.outputPath, 'native-webpack-plugin');
|
|
46
|
-
await fs.promises.mkdir(directory, { recursive: true });
|
|
47
|
-
const bindingsFile = (issuer) => buildFile(directory, 'bindings.js', bindingsReplacement(issuer, Array.from(this.bindings.entries())));
|
|
48
|
-
const ripgrepFile = () => buildFile(directory, 'ripgrep.js', ripgrepReplacement(this.options.out));
|
|
49
|
-
replacements = {
|
|
50
|
-
...((_a = this.options.replacements) !== null && _a !== void 0 ? _a : {}),
|
|
51
|
-
[REQUIRE_RIPGREP]: ripgrepFile,
|
|
52
|
-
[REQUIRE_BINDINGS]: bindingsFile,
|
|
53
|
-
[REQUIRE_PARCEL_WATCHER]: issuer => Promise.resolve(findNativeWatcherFile(issuer))
|
|
54
|
-
};
|
|
55
|
-
if (process.platform !== 'win32') {
|
|
56
|
-
// The expected conpty.node file is not available on non-windows platforms during build.
|
|
57
|
-
// We need to provide a stub that will be replaced by the real file at runtime.
|
|
58
|
-
replacements[REQUIRE_NODE_PTY_CONPTY] = () => buildFile(directory, 'conpty.js', conhostWindowsReplacement());
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
compiler.hooks.normalModuleFactory.tap(NativeWebpackPlugin.name, nmf => {
|
|
62
|
-
nmf.hooks.beforeResolve.tapPromise(NativeWebpackPlugin.name, async (result) => {
|
|
63
|
-
if (result.request === REQUIRE_RIPGREP) {
|
|
64
|
-
ripgrepIssuer = result.contextInfo.issuer;
|
|
65
|
-
}
|
|
66
|
-
else if (result.request === 'node-pty') {
|
|
67
|
-
nodePtyIssuer = result.contextInfo.issuer;
|
|
68
|
-
}
|
|
69
|
-
else if (result.request === 'trash') {
|
|
70
|
-
trashHelperIssuer = result.contextInfo.issuer;
|
|
71
|
-
}
|
|
72
|
-
for (const [file, replacement] of Object.entries(replacements)) {
|
|
73
|
-
if (result.request === file) {
|
|
74
|
-
result.request = await replacement(result.contextInfo.issuer);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
compiler.hooks.afterEmit.tapPromise(NativeWebpackPlugin.name, async () => {
|
|
80
|
-
if (this.options.trash && trashHelperIssuer) {
|
|
81
|
-
await this.copyTrashHelper(trashHelperIssuer, compiler);
|
|
82
|
-
}
|
|
83
|
-
if (this.options.ripgrep && ripgrepIssuer) {
|
|
84
|
-
await this.copyRipgrep(ripgrepIssuer, compiler);
|
|
85
|
-
}
|
|
86
|
-
if (this.options.pty && nodePtyIssuer) {
|
|
87
|
-
await this.copyNodePtySpawnHelper(nodePtyIssuer, compiler);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
async copyRipgrep(issuer, compiler) {
|
|
92
|
-
const suffix = process.platform === 'win32' ? '.exe' : '';
|
|
93
|
-
const sourceFile = require.resolve(`@vscode/ripgrep/bin/rg${suffix}`, { paths: [issuer] });
|
|
94
|
-
const targetFile = path.join(compiler.outputPath, this.options.out, `rg${suffix}`);
|
|
95
|
-
await this.copyExecutable(sourceFile, targetFile);
|
|
96
|
-
}
|
|
97
|
-
async copyNodePtySpawnHelper(issuer, compiler) {
|
|
98
|
-
const targetDirectory = path.resolve(compiler.outputPath, '..', 'build', 'Release');
|
|
99
|
-
if (process.platform === 'win32') {
|
|
100
|
-
const agentFile = require.resolve('node-pty/build/Release/winpty-agent.exe', { paths: [issuer] });
|
|
101
|
-
const targetAgentFile = path.join(targetDirectory, 'winpty-agent.exe');
|
|
102
|
-
await this.copyExecutable(agentFile, targetAgentFile);
|
|
103
|
-
const dllFile = require.resolve('node-pty/build/Release/winpty.dll', { paths: [issuer] });
|
|
104
|
-
const targetDllFile = path.join(targetDirectory, 'winpty.dll');
|
|
105
|
-
await this.copyExecutable(dllFile, targetDllFile);
|
|
106
|
-
}
|
|
107
|
-
else if (process.platform === 'darwin') {
|
|
108
|
-
const sourceFile = require.resolve('node-pty/build/Release/spawn-helper', { paths: [issuer] });
|
|
109
|
-
const targetFile = path.join(targetDirectory, 'spawn-helper');
|
|
110
|
-
await this.copyExecutable(sourceFile, targetFile);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
async copyTrashHelper(issuer, compiler) {
|
|
114
|
-
let sourceFile;
|
|
115
|
-
let targetFile;
|
|
116
|
-
if (process.platform === 'win32') {
|
|
117
|
-
sourceFile = require.resolve('trash/lib/windows-trash.exe', { paths: [issuer] });
|
|
118
|
-
targetFile = path.join(compiler.outputPath, 'windows-trash.exe');
|
|
119
|
-
}
|
|
120
|
-
else if (process.platform === 'darwin') {
|
|
121
|
-
sourceFile = require.resolve('trash/lib/macos-trash', { paths: [issuer] });
|
|
122
|
-
targetFile = path.join(compiler.outputPath, 'macos-trash');
|
|
123
|
-
}
|
|
124
|
-
if (sourceFile && targetFile) {
|
|
125
|
-
await this.copyExecutable(sourceFile, targetFile);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
async copyExecutable(source, target) {
|
|
129
|
-
const targetDirectory = path.dirname(target);
|
|
130
|
-
await fs.promises.mkdir(targetDirectory, { recursive: true });
|
|
131
|
-
await fs.promises.copyFile(source, target);
|
|
132
|
-
await fs.promises.chmod(target, 0o777);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
exports.NativeWebpackPlugin = NativeWebpackPlugin;
|
|
136
|
-
function findNativeWatcherFile(issuer) {
|
|
137
|
-
let name = `@parcel/watcher-${process.platform}-${process.arch}`;
|
|
138
|
-
if (process.platform === 'linux') {
|
|
139
|
-
const { MUSL, family } = require('detect-libc');
|
|
140
|
-
if (family === MUSL) {
|
|
141
|
-
name += '-musl';
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
name += '-glibc';
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return require.resolve(name, {
|
|
148
|
-
paths: [issuer]
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
async function buildFile(root, name, content) {
|
|
152
|
-
const tmpFile = path.join(root, name);
|
|
153
|
-
let write = true;
|
|
154
|
-
try {
|
|
155
|
-
const existing = await fs.promises.readFile(tmpFile, 'utf8');
|
|
156
|
-
if (existing === content) {
|
|
157
|
-
// prevent writing the same content again
|
|
158
|
-
// this would trigger the watch mode repeatedly
|
|
159
|
-
write = false;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
catch {
|
|
163
|
-
// ignore
|
|
164
|
-
}
|
|
165
|
-
if (write) {
|
|
166
|
-
await fs.promises.writeFile(tmpFile, content);
|
|
167
|
-
}
|
|
168
|
-
return tmpFile;
|
|
169
|
-
}
|
|
170
|
-
const ripgrepReplacement = (nativePath = '.') => `
|
|
171
|
-
const path = require('path');
|
|
172
|
-
|
|
173
|
-
exports.rgPath = path.join(__dirname, \`./${nativePath}/rg\${process.platform === 'win32' ? '.exe' : ''}\`);
|
|
174
|
-
`;
|
|
175
|
-
const bindingsReplacement = (issuer, entries) => {
|
|
176
|
-
const cases = [];
|
|
177
|
-
for (const [module, node] of entries) {
|
|
178
|
-
const modulePath = require.resolve(node, {
|
|
179
|
-
paths: [issuer]
|
|
180
|
-
});
|
|
181
|
-
cases.push(`${' '.repeat(8)}case '${module}': return require('${modulePath.replace(/\\/g, '/')}');`);
|
|
182
|
-
}
|
|
183
|
-
return `
|
|
184
|
-
module.exports = function (jsModule) {
|
|
185
|
-
switch (jsModule) {
|
|
186
|
-
${cases.join(os.EOL)}
|
|
187
|
-
}
|
|
188
|
-
throw new Error(\`unhandled module: "\${jsModule}"\`);
|
|
189
|
-
}`.trim();
|
|
190
|
-
};
|
|
191
|
-
const conhostWindowsReplacement = (nativePath = '.') => `
|
|
192
|
-
module.exports = __non_webpack_require__('${nativePath}/native/conpty.node');
|
|
193
|
-
`;
|
|
194
|
-
//# sourceMappingURL=native-webpack-plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-webpack-plugin.js","sourceRoot":"","sources":["../src/native-webpack-plugin.ts"],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A+C;YAC/C,KAAK,GAAG,KAAK,CAAC;QAClB,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACL,SAAS;IACb,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,MAAM,kBAAkB,GAAG,CAAC,aAAqB,GAAG,EAAU,EAAE,CAAC;;;4CAGrB,UAAU;CACrD,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,MAAc,EAAE,OAA2B,EAAU,EAAE;IAChF,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,KAAK,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,OAAO,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE;YACrC,KAAK,EAAE,CAAC,MAAM,CAAC;SAClB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,sBAAsB,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACzG,CAAC;IAED,OAAO;;;EAGT,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC;;;EAGlB,CAAC,IAAI,EAAE,CAAC;AACV,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,aAAqB,GAAG,EAAU,EAAE,CAAC;4CAC5B,UAAU;CACrD,CAAC"}
|
package/lib/package.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
package/lib/package.spec.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2023 TypeFox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
/* note: this bogus test file is required so that
|
|
17
|
-
we are able to run mocha unit tests on this
|
|
18
|
-
package, without having any actual unit tests in it.
|
|
19
|
-
This way a coverage report will be generated,
|
|
20
|
-
showing 0% coverage, instead of no report.
|
|
21
|
-
This file can be removed once we have real unit
|
|
22
|
-
tests in place. */
|
|
23
|
-
describe('request package', () => {
|
|
24
|
-
it('should support code coverage statistics', () => true);
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAE7B,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC,CAAC,CAAC"}
|