@theia/userstorage 1.67.0-next.13 → 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/README.md CHANGED
@@ -16,7 +16,7 @@ The `@theia/userstorage` extension provides an API for accessing user storage fi
16
16
 
17
17
  ## Additional Information
18
18
 
19
- - [API documentation for `@theia/userstorage`](https://eclipse-theia.github.io/theia/docs/next/modules/userstorage.html)
19
+ - [API documentation for `@theia/userstorage`](https://eclipse-theia.github.io/theia/docs/next/modules/_theia_userstorage.html)
20
20
  - [Theia - GitHub](https://github.com/eclipse-theia/theia)
21
21
  - [Theia - Website](https://theia-ide.org/)
22
22
 
@@ -29,10 +29,3 @@ The `@theia/userstorage` extension provides an API for accessing user storage fi
29
29
 
30
30
  "Theia" is a trademark of the Eclipse Foundation
31
31
  <https://www.eclipse.org/theia>
32
-
33
- # Theia - User Storage Extension
34
-
35
- ## License
36
-
37
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
38
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@theia/userstorage",
3
- "version": "1.67.0-next.13+c409d5d18",
3
+ "version": "1.67.0-next.56+d8f18cc386c",
4
4
  "description": "Theia - User Storage Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.67.0-next.13+c409d5d18",
7
- "@theia/filesystem": "1.67.0-next.13+c409d5d18",
6
+ "@theia/core": "1.67.0-next.56+d8f18cc386c",
7
+ "@theia/filesystem": "1.67.0-next.56+d8f18cc386c",
8
8
  "tslib": "^2.6.2"
9
9
  },
10
10
  "publishConfig": {
@@ -45,5 +45,5 @@
45
45
  "nyc": {
46
46
  "extends": "../../configs/nyc.json"
47
47
  },
48
- "gitHead": "c409d5d18d8c4f5a722f87b37ea9d6fd5af47ea8"
48
+ "gitHead": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
49
49
  }
@@ -1,3 +0,0 @@
1
- export * from './user-storage-uri';
2
- export * from './user-storage-frontend-module';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2017 Ericsson 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
- const tslib_1 = require("tslib");
19
- tslib_1.__exportStar(require("./user-storage-uri"), exports);
20
- tslib_1.__exportStar(require("./user-storage-frontend-module"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,6DAAmC;AACnC,yEAA+C"}
@@ -1,13 +0,0 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
3
- import { FileSystemProvider } from '@theia/filesystem/lib/common/files';
4
- import { FileService, FileServiceContribution } from '@theia/filesystem/lib/browser/file-service';
5
- import { MaybePromise } from '@theia/core';
6
- export declare class UserStorageContribution implements FileServiceContribution {
7
- protected readonly environments: EnvVariablesServer;
8
- registerFileSystemProviders(service: FileService): void;
9
- protected getDelegate(service: FileService): MaybePromise<FileSystemProvider>;
10
- protected getCongigDirUri(): Promise<URI>;
11
- protected createProvider(service: FileService): Promise<FileSystemProvider>;
12
- }
13
- //# sourceMappingURL=user-storage-contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-storage-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/user-storage-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAGlG,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qBACa,uBAAwB,YAAW,uBAAuB;IAGnE,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAEpD,2BAA2B,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAWvD,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAAC,kBAAkB,CAAC;cAI7D,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;cAI/B,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAyBpF"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 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.UserStorageContribution = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const uri_1 = require("@theia/core/lib/common/uri");
22
- const disposable_1 = require("@theia/core/lib/common/disposable");
23
- const env_variables_1 = require("@theia/core/lib/common/env-variables");
24
- const delegating_file_system_provider_1 = require("@theia/filesystem/lib/common/delegating-file-system-provider");
25
- const user_storage_uri_1 = require("./user-storage-uri");
26
- let UserStorageContribution = class UserStorageContribution {
27
- registerFileSystemProviders(service) {
28
- service.onWillActivateFileSystemProvider(event => {
29
- if (event.scheme === user_storage_uri_1.UserStorageUri.scheme) {
30
- event.waitUntil((async () => {
31
- const provider = await this.createProvider(service);
32
- service.registerProvider(user_storage_uri_1.UserStorageUri.scheme, provider);
33
- })());
34
- }
35
- });
36
- }
37
- getDelegate(service) {
38
- return service.activateProvider('file');
39
- }
40
- async getCongigDirUri() {
41
- return new uri_1.default(await this.environments.getConfigDirUri());
42
- }
43
- async createProvider(service) {
44
- const delegate = await this.getDelegate(service);
45
- const configDirUri = await this.getCongigDirUri();
46
- return new delegating_file_system_provider_1.DelegatingFileSystemProvider(delegate, {
47
- uriConverter: {
48
- to: resource => {
49
- const relativePath = user_storage_uri_1.UserStorageUri.relative(resource);
50
- if (relativePath) {
51
- return configDirUri.resolve(relativePath).normalizePath();
52
- }
53
- return undefined;
54
- },
55
- from: resource => {
56
- const relativePath = configDirUri.relative(resource);
57
- if (relativePath) {
58
- return user_storage_uri_1.UserStorageUri.resolve(relativePath);
59
- }
60
- return undefined;
61
- }
62
- }
63
- }, new disposable_1.DisposableCollection(delegate.watch(configDirUri, { excludes: [], recursive: true })));
64
- }
65
- };
66
- exports.UserStorageContribution = UserStorageContribution;
67
- tslib_1.__decorate([
68
- (0, inversify_1.inject)(env_variables_1.EnvVariablesServer),
69
- tslib_1.__metadata("design:type", Object)
70
- ], UserStorageContribution.prototype, "environments", void 0);
71
- exports.UserStorageContribution = UserStorageContribution = tslib_1.__decorate([
72
- (0, inversify_1.injectable)()
73
- ], UserStorageContribution);
74
- //# sourceMappingURL=user-storage-contribution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-storage-contribution.js","sourceRoot":"","sources":["../../src/browser/user-storage-contribution.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,4DAAkE;AAClE,oDAA6C;AAC7C,kEAAyE;AACzE,wEAA0E;AAG1E,kHAA4G;AAC5G,yDAAoD;AAI7C,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAKhC,2BAA2B,CAAC,OAAoB;QAC5C,OAAO,CAAC,gCAAgC,CAAC,KAAK,CAAC,EAAE;YAC7C,IAAI,KAAK,CAAC,MAAM,KAAK,iCAAc,CAAC,MAAM,EAAE,CAAC;gBACzC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,IAAI,EAAE;oBACxB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;oBACpD,OAAO,CAAC,gBAAgB,CAAC,iCAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBAC9D,CAAC,CAAC,EAAE,CAAC,CAAC;YACV,CAAC;QACL,CAA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CAH3C,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CAiDnC"}
@@ -1,4 +0,0 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
4
- //# sourceMappingURL=user-storage-frontend-module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-storage-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/user-storage-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAI/D,wBAGG"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2017 Ericsson 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
- const inversify_1 = require("@theia/core/shared/inversify");
19
- const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
20
- const user_storage_contribution_1 = require("./user-storage-contribution");
21
- exports.default = new inversify_1.ContainerModule(bind => {
22
- bind(user_storage_contribution_1.UserStorageContribution).toSelf().inSingletonScope();
23
- bind(file_service_1.FileServiceContribution).toService(user_storage_contribution_1.UserStorageContribution);
24
- });
25
- //# sourceMappingURL=user-storage-frontend-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-storage-frontend-module.js","sourceRoot":"","sources":["../../src/browser/user-storage-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,4DAA+D;AAC/D,6EAAqF;AACrF,2EAAsE;AAEtE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,mDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,sCAAuB,CAAC,CAAC,SAAS,CAAC,mDAAuB,CAAC,CAAC;AACrE,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- export declare const UserStorageUri: URI;
3
- //# sourceMappingURL=user-storage-uri.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-storage-uri.d.ts","sourceRoot":"","sources":["../../src/browser/user-storage-uri.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,eAAO,MAAM,cAAc,KAAgC,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2017 Ericsson 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.UserStorageUri = void 0;
19
- const uri_1 = require("@theia/core/lib/common/uri");
20
- exports.UserStorageUri = new uri_1.default('user-storage:/user');
21
- //# sourceMappingURL=user-storage-uri.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-storage-uri.js","sourceRoot":"","sources":["../../src/browser/user-storage-uri.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,oDAA6C;AAEhC,QAAA,cAAc,GAAG,IAAI,aAAG,CAAC,oBAAoB,CAAC,CAAC"}
@@ -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":""}
@@ -1,26 +0,0 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 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('userstorage package', () => {
24
- it('support code coverage statistics', () => true);
25
- });
26
- //# sourceMappingURL=package.spec.js.map
@@ -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,qBAAqB,EAAE,GAAG,EAAE;IAEjC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}