Skip to content

Commit

Permalink
rename to @theia/request
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed May 25, 2022
1 parent b8076ef commit e15cbce
Show file tree
Hide file tree
Showing 37 changed files with 34 additions and 35 deletions.
2 changes: 1 addition & 1 deletion dev-packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@theia/ffmpeg": "1.25.0",
"@theia/localization-manager": "1.25.0",
"@theia/ovsx-client": "1.25.0",
"@theia/request-service": "1.25.0",
"@theia/request": "1.25.0",
"@types/chai": "^4.2.7",
"@types/mocha": "^5.2.7",
"@types/node-fetch": "^2.5.7",
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/cli/src/download-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import * as decompress from 'decompress';
import { promises as fs } from 'fs';
import * as path from 'path';
import * as temp from 'temp';
import { NodeRequestService } from '@theia/request-service/lib/node-request-service';
import { NodeRequestService } from '@theia/request/lib/node-request-service';
import { DEFAULT_SUPPORTED_API_VERSION } from '@theia/application-package/lib/api';
import { RequestContext } from '@theia/request-service';
import { RequestContext } from '@theia/request';

temp.track();

Expand Down
2 changes: 1 addition & 1 deletion dev-packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"path": "../ovsx-client"
},
{
"path": "../request-service"
"path": "../request"
}
]
}
2 changes: 1 addition & 1 deletion dev-packages/ovsx-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"watch": "theiaext watch"
},
"dependencies": {
"@theia/request-service": "1.25.0",
"@theia/request": "1.25.0",
"semver": "^5.4.1"
}
}
2 changes: 1 addition & 1 deletion dev-packages/ovsx-client/src/ovsx-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import * as chai from 'chai';
import { OVSXClient } from './ovsx-client';
import { NodeRequestService } from '@theia/request-service/lib/node-request-service';
import { NodeRequestService } from '@theia/request/lib/node-request-service';
import { VSXSearchParam } from './ovsx-types';

const expect = chai.expect;
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/ovsx-client/src/ovsx-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
VSXSearchParam,
VSXSearchResult
} from './ovsx-types';
import { RequestContext, RequestService } from '@theia/request-service';
import { RequestContext, RequestService } from '@theia/request';

export interface OVSXClientOptions {
apiVersion: string
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/ovsx-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"references": [
{
"path": "../request-service"
"path": "../request"
}
]
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@theia/request-service",
"name": "@theia/request",
"version": "1.25.0",
"description": "Theia Proxy-Aware Request Service",
"publishConfig": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export class SomeClass {
- `@theia/application-package` (from [`@theia/application-package@1.25.0`](https://www.npmjs.com/package/@theia/application-package/v/1.25.0))
- `@theia/application-package/lib/api` (from [`@theia/application-package@1.25.0`](https://www.npmjs.com/package/@theia/application-package/v/1.25.0))
- `@theia/application-package/lib/environment` (from [`@theia/application-package@1.25.0`](https://www.npmjs.com/package/@theia/application-package/v/1.25.0))
- `@theia/request-service` (from [`@theia/request-service@1.25.0`](https://www.npmjs.com/package/@theia/request-service/v/1.25.0))
- `@theia/request-service/lib/proxy` (from [`@theia/request-service@1.25.0`](https://www.npmjs.com/package/@theia/request-service/v/1.25.0))
- `@theia/request-service/lib/node-request-service` (from [`@theia/request-service@1.25.0`](https://www.npmjs.com/package/@theia/request-service/v/1.25.0))
- `@theia/request` (from [`@theia/request@1.25.0`](https://www.npmjs.com/package/@theia/request/v/1.25.0))
- `@theia/request/lib/proxy` (from [`@theia/request@1.25.0`](https://www.npmjs.com/package/@theia/request/v/1.25.0))
- `@theia/request/lib/node-request-service` (from [`@theia/request@1.25.0`](https://www.npmjs.com/package/@theia/request/v/1.25.0))
- `fs-extra` (from [`fs-extra@^4.0.2`](https://www.npmjs.com/package/fs-extra))
- `fuzzy` (from [`fuzzy@^0.1.3`](https://www.npmjs.com/package/fuzzy))
- `inversify` (from [`inversify@^5.1.1`](https://www.npmjs.com/package/inversify))
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@phosphor/virtualdom": "1",
"@phosphor/widgets": "1",
"@theia/application-package": "1.25.0",
"@theia/request-service": "1.25.0",
"@theia/request": "1.25.0",
"@types/body-parser": "^1.16.4",
"@types/cookie": "^0.3.3",
"@types/dompurify": "^2.2.2",
Expand Down Expand Up @@ -103,9 +103,9 @@
"@theia/application-package",
"@theia/application-package/lib/api",
"@theia/application-package/lib/environment",
"@theia/request-service",
"@theia/request-service/lib/proxy",
"@theia/request-service/lib/node-request-service",
"@theia/request",
"@theia/request/lib/proxy",
"@theia/request/lib/node-request-service",
"fs-extra",
"fuzzy",
"inversify",
Expand Down
1 change: 0 additions & 1 deletion packages/core/shared/@theia/request-service/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/shared/@theia/request-service/index.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/core/shared/@theia/request/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@theia/request';
1 change: 1 addition & 0 deletions packages/core/shared/@theia/request/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@theia/request');
2 changes: 1 addition & 1 deletion packages/core/src/browser/frontend-application-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ import {
} from './breadcrumbs';
import { RendererHost } from './widgets';
import { TooltipService, TooltipServiceImpl } from './tooltip-service';
import { BackendRequestService, RequestService, REQUEST_SERVICE_PATH } from '@theia/request-service';
import { BackendRequestService, RequestService, REQUEST_SERVICE_PATH } from '@theia/request';
import { bindFrontendStopwatch, bindBackendStopwatch } from './performance';
import { SaveResourceService } from './save-resource-service';
import { UserWorkingDirectoryProvider } from './user-working-directory-provider';
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/browser/json-schema-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { FrontendApplicationContribution } from './frontend-application';
import { MaybePromise } from '../common';
import { Endpoint } from './endpoint';
import { timeout, Deferred } from '../common/promise-util';
import { RequestContext, RequestService } from '@theia/request-service';
import { RequestContext, RequestService } from '@theia/request';

export interface JsonSchemaConfiguration {
fileMatch: string | string[];
Expand Down Expand Up @@ -124,4 +124,3 @@ export namespace DefaultJsonSchemaContribution {
schema: any;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import { ContainerModule } from 'inversify';
import { RequestService } from '@theia/request-service';
import { RequestService } from '@theia/request';
import { XHRBrowserRequestService } from './browser-request-service';

export default new ContainerModule(bind => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import { inject, injectable, postConstruct } from 'inversify';
import { BackendRequestService, RequestConfiguration, RequestContext, RequestOptions, RequestService, CancellationToken } from '@theia/request-service';
import { BackendRequestService, RequestConfiguration, RequestContext, RequestOptions, RequestService, CancellationToken } from '@theia/request';
import { PreferenceService } from '../preferences/preference-service';

@injectable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { ContainerModule } from 'inversify';
import { ProxyingBrowserRequestService } from '../../browser/request/browser-request-service';
import { RequestService } from '@theia/request-service';
import { RequestService } from '@theia/request';

export default new ContainerModule(bind => {
// This version of the request service will always proxy every request through the backend.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import { ContainerModule } from 'inversify';
import { RequestService } from '@theia/request-service';
import { RequestService } from '@theia/request';
import { ElectronBackendRequestService } from './electron-backend-request-service';

export default new ContainerModule(bind => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import { decorate, injectable } from 'inversify';
import { NodeRequestService } from '@theia/request-service/lib/node-request-service';
import { NodeRequestService } from '@theia/request/lib/node-request-service';

decorate(injectable(), NodeRequestService);

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/node/backend-application-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { ContainerModule, decorate, injectable } from 'inversify';
import { ApplicationPackage } from '@theia/application-package';
import { REQUEST_SERVICE_PATH } from '@theia/request-service';
import { REQUEST_SERVICE_PATH } from '@theia/request';
import {
bindContributionProvider, MessageService, MessageClient, ConnectionHandler, JsonRpcConnectionHandler,
CommandService, commandServicePath, messageServicePath
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/node/request/backend-request-facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
********************************************************************************/

import { inject, injectable } from 'inversify';
import { RequestConfiguration, RequestContext, RequestOptions, RequestService } from '@theia/request-service';
import { RequestConfiguration, RequestContext, RequestOptions, RequestService } from '@theia/request';

@injectable()
export class BackendRequestFacade implements RequestService {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/node/request/backend-request-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
********************************************************************************/

import { ContainerModule, decorate, injectable } from 'inversify';
import { RequestService } from '@theia/request-service';
import { NodeRequestService } from '@theia/request-service/lib/node-request-service';
import { RequestService } from '@theia/request';
import { NodeRequestService } from '@theia/request/lib/node-request-service';

decorate(injectable(), NodeRequestService);

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/node/request/proxy-cli-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { inject, injectable } from 'inversify';
import { MaybePromise } from '../../common/types';
import { RequestConfiguration, RequestService } from '@theia/request-service';
import { RequestConfiguration, RequestService } from '@theia/request';
import { Argv, Arguments } from 'yargs';
import { CliContribution } from '../cli';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { bindExtensionPreferences } from './recommended-extensions/recommended-e
import { bindPreferenceProviderOverrides } from './recommended-extensions/preference-provider-overrides';
import { OVSXClientProvider, createOVSXClient } from '../common/ovsx-client-provider';
import { VSXEnvironment, VSX_ENVIRONMENT_PATH } from '../common/vsx-environment';
import { RequestService } from '@theia/core/shared/@theia/request-service';
import { RequestService } from '@theia/core/shared/@theia/request';

export default new ContainerModule((bind, unbind) => {
bind<OVSXClientProvider>(OVSXClientProvider).toDynamicValue(ctx => {
Expand Down
2 changes: 1 addition & 1 deletion packages/vsx-registry/src/common/ovsx-client-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
// *****************************************************************************

import { RequestService } from '@theia/core/shared/@theia/request-service';
import { RequestService } from '@theia/core/shared/@theia/request';
import { OVSXClient } from '@theia/ovsx-client';
import { VSXEnvironment } from './vsx-environment';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { OVSXClientProvider, createOVSXClient } from '../common/ovsx-client-prov
import { VSXEnvironment, VSX_ENVIRONMENT_PATH } from '../common/vsx-environment';
import { VSXEnvironmentImpl } from './vsx-environment-impl';
import { ConnectionHandler, JsonRpcConnectionHandler } from '@theia/core';
import { RequestService } from '@theia/core/shared/@theia/request-service';
import { RequestService } from '@theia/core/shared/@theia/request';

export default new ContainerModule(bind => {
bind<OVSXClientProvider>(OVSXClientProvider).toDynamicValue(ctx => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"path": "dev-packages/private-re-exports"
},
{
"path": "dev-packages/request-service"
"path": "dev-packages/request"
},
{
"path": "examples/api-samples"
Expand Down

0 comments on commit e15cbce

Please sign in to comment.