This commit is contained in:
Garrett Serack 2019-08-28 12:57:56 -07:00
Родитель 1aec2910cd
Коммит b5fd1df987
21 изменённых файлов: 268 добавлений и 265 удалений

Просмотреть файл

@ -25,9 +25,13 @@ rules:
"@typescript-eslint/no-parameter-properties": 'off'
"@typescript-eslint/no-angle-bracket-type-assertion" : 'off'
"require-atomic-updates" : 'off'
'@typescript-eslint/consistent-type-assertions' :
- error
- assertionStyle: 'angle-bracket'
"@typescript-eslint/array-type":
- 1
- generic
- error
- default: generic
indent:
- warn
- 2

Просмотреть файл

@ -38,7 +38,7 @@ for( const pj of Object.getOwnPropertyNames(pjs) ){
for (const dep in each.dependencies) {
const ref = pjs[dep];
if (ref) {
each.dependencies[dep] = `^${ref.version}`;
each.dependencies[dep] = `~${ref.version}`;
}
}
}

Просмотреть файл

@ -1,7 +1,7 @@
{
"name": "@azure/library-template",
"private": true,
"version": "2.1.0",
"version": "1.0.0",
"description": "template project to copy/paste as for a new library in perks",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/async-io",
"version": "2.1.0",
"version": "3.0.0",
"description": "Asynchronous IO (for Azure Open Source Projects)",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -46,12 +46,12 @@
"@types/node": "10.12.19",
"mocha": "5.2.0",
"typescript": "~3.5.3",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0"
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2"
},
"dependencies": {
"@azure/tasks": "^2.1.0",
"proper-lockfile": "^2.0.1"
"@azure/tasks": "~3.0.0",
"proper-lockfile": "~2.0.1"
}
}

Просмотреть файл

@ -7,7 +7,7 @@ import { Readable } from 'stream';
import { Mapping, Message, RawSourceMap, Channel } from './types';
import { basename, dirname } from 'path';
namespace IAutoRestPluginTarget_Types {
namespace IAutoRestPluginTargetTypes {
export const GetPluginNames = new RequestType0<Array<string>, Error, void>('GetPluginNames');
export const Process = new RequestType2<string, string, boolean, Error, void>('Process');
}
@ -16,7 +16,7 @@ interface IAutoRestPluginTarget {
Process(pluginName: string, sessionId: string): Promise<boolean>;
}
namespace IAutoRestPluginInitiator_Types {
namespace IAutoRestPluginInitiatorTypes {
export const ReadFile = new RequestType2<string, string, string, Error, void>('ReadFile');
export const GetValue = new RequestType2<string, string, any, Error, void>('GetValue');
export const ListInputs = new RequestType2<string, string | undefined, Array<string>, Error, void>('ListInputs');
@ -58,8 +58,8 @@ export class AutoRestExtension {
}
);
channel.onRequest(IAutoRestPluginTarget_Types.GetPluginNames, async () => Object.keys(this.plugins));
channel.onRequest(IAutoRestPluginTarget_Types.Process, async (pluginName: string, sessionId: string) => {
channel.onRequest(IAutoRestPluginTargetTypes.GetPluginNames, async () => Object.keys(this.plugins));
channel.onRequest(IAutoRestPluginTargetTypes.Process, async (pluginName: string, sessionId: string) => {
try {
const handler = this.plugins[pluginName];
if (!handler) {
@ -67,13 +67,13 @@ export class AutoRestExtension {
}
await handler({
async ProtectFiles(path: string): Promise<void> {
channel.sendNotification(IAutoRestPluginInitiator_Types.ProtectFiles, sessionId, path);
channel.sendNotification(IAutoRestPluginInitiatorTypes.ProtectFiles, sessionId, path);
},
UpdateConfigurationFile(filename: string, content: string): void {
channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, { Channel: Channel.Configuration, Key: [filename], Text: content });
channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, { Channel: Channel.Configuration, Key: [filename], Text: content });
},
async GetConfigurationFile(filename: string): Promise<string> {
const configurations = await channel.sendRequest(IAutoRestPluginInitiator_Types.GetValue, sessionId, 'configurationFiles');
const configurations = await channel.sendRequest(IAutoRestPluginInitiatorTypes.GetValue, sessionId, 'configurationFiles');
const filenames = Object.getOwnPropertyNames(configurations);
if (filenames.length > 0) {
@ -87,17 +87,17 @@ export class AutoRestExtension {
return '';
},
async ReadFile(filename: string): Promise<string> {
return await channel.sendRequest(IAutoRestPluginInitiator_Types.ReadFile, sessionId, filename);
return await channel.sendRequest(IAutoRestPluginInitiatorTypes.ReadFile, sessionId, filename);
},
async GetValue(key: string): Promise<any> {
return await channel.sendRequest(IAutoRestPluginInitiator_Types.GetValue, sessionId, key);
return await channel.sendRequest(IAutoRestPluginInitiatorTypes.GetValue, sessionId, key);
},
async ListInputs(artifactType?: string): Promise<Array<string>> {
return await channel.sendRequest(IAutoRestPluginInitiator_Types.ListInputs, sessionId, artifactType);
return await channel.sendRequest(IAutoRestPluginInitiatorTypes.ListInputs, sessionId, artifactType);
},
WriteFile(filename: string, content: string, sourceMap?: Array<Mapping> | RawSourceMap, artifactType?: string): void {
if (artifactType) {
channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, {
channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, {
Channel: Channel.File,
Details: {
content: content,
@ -109,19 +109,19 @@ export class AutoRestExtension {
Key: [artifactType, filename]
});
} else {
channel.sendNotification(IAutoRestPluginInitiator_Types.WriteFile, sessionId, filename, content, sourceMap);
channel.sendNotification(IAutoRestPluginInitiatorTypes.WriteFile, sessionId, filename, content, sourceMap);
}
},
Message(message: Message): void {
channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, message);
channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, message);
}
});
return true;
} catch (e) {
console.error(`PLUGIN FAILURE: ${e.message}, ${e.stack}, ${JSON.stringify(e, null, 2)}`);
channel.sendNotification(IAutoRestPluginInitiator_Types.Message, sessionId, <Message>{
Channel: 'fatal' as any,
channel.sendNotification(IAutoRestPluginInitiatorTypes.Message, sessionId, <Message>{
Channel: <any>'fatal',
Text: '' + e,
Details: e
});

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/autorest-extension-base",
"version": "2.0.0",
"version": "3.0.0",
"description": "Library for creating AutoRest extensions",
"main": "dist/exports.js",
"scripts": {
@ -30,9 +30,9 @@
"devDependencies": {
"@types/node": "10.12.19",
"typescript": "~3.5.3",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0"
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2"
},
"dependencies": {
"vscode-jsonrpc": "^3.5.0"

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/codegen-csharp",
"version": "2.0.0",
"version": "3.0.0",
"description": "AutoRest code generator base classes for CSharp#",
"directories": {
"doc": "docs"
@ -36,13 +36,13 @@
"@types/node": "10.12.19",
"mocha": "5.2.0",
"mocha-typescript": "1.1.17",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"@azure/codegen": "^1.0.0",
"@azure/linq": "^2.1.0"
"@azure/codegen": "~2.0.0",
"@azure/linq": "~3.0.0"
}
}

Просмотреть файл

@ -8,7 +8,6 @@ import { Expression } from '../expression';
import { Parameter } from '../parameter';
import { StatementPossibilities, Statements } from './statement';
export class CatchStatement extends Statements {
public when?: Expression;

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/codegen",
"version": "1.0.0",
"version": "2.0.0",
"description": "Autorest Code generator common and base classes",
"directories": {
"doc": "docs"
@ -37,14 +37,14 @@
"mocha": "5.2.0",
"mocha-typescript": "1.1.17",
"typescript": "~3.5.3",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"@types/semver": "5.5.0"
},
"dependencies": {
"@azure/async-io": "^2.1.0",
"@azure/linq": "^2.1.0",
"@azure/async-io": "~3.0.0",
"@azure/linq": "~3.0.0",
"js-yaml": "3.13.1",
"semver": "^5.5.1",
"safe-eval": "^0.3.0"

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/autorest.codemodel-v3",
"version": "2.0.0",
"version": "3.0.0",
"description": "AutoRest code model library",
"directories": {
"doc": "docs"
@ -36,14 +36,14 @@
"@types/node": "10.12.19",
"mocha": "5.2.0",
"mocha-typescript": "1.1.17",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"@azure/autorest-extension-base": "^2.0.0",
"@azure/codegen": "^1.0.0",
"@azure/linq": "^2.1.0"
"@azure/autorest-extension-base": "~3.0.0",
"@azure/codegen": "~2.0.0",
"@azure/linq": "~3.0.0"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/datastore",
"version": "3.0.0",
"version": "4.0.0",
"description": "Virtualized Filesystem with parsing and sourcemaps (AutoRest)",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -47,16 +47,16 @@
"@types/jsonpath": "^0.2.0",
"@types/source-map": "0.5.0",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"@azure/tasks": "^2.1.0",
"@azure/uri": "^2.1.0",
"@azure/linq": "^2.1.0",
"@azure/codegen": "^1.0.0",
"@azure/tasks": "~3.0.0",
"@azure/uri": "~3.0.0",
"@azure/linq": "~3.0.0",
"@azure/codegen": "~2.0.0",
"jsonpath": "1.0.0",
"safe-eval": "^0.3.0",
"source-map": "0.5.6",

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/deduplication",
"version": "2.0.0",
"version": "3.0.0",
"description": "Deduplication of elements in OpenAPI 3 documents",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -46,18 +46,18 @@
"@types/node": "10.12.19",
"mocha": "5.2.0",
"typescript": "~3.5.3",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@azure/async-io": "^2.1.0"
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"@azure/async-io": "~3.0.0"
},
"dependencies": {
"@azure/datastore": "^3.0.0",
"@azure/linq": "^2.1.0",
"@azure/tasks": "^2.1.0",
"@azure/object-comparison": "^2.1.0",
"@azure/openapi": "^2.1.0",
"@azure/codegen": "^1.0.0",
"@azure/datastore": "~4.0.0",
"@azure/linq": "~3.0.0",
"@azure/tasks": "~3.0.0",
"@azure/object-comparison": "~3.0.0",
"@azure/openapi": "~3.0.0",
"@azure/codegen": "~2.0.0",
"compare-versions": "^3.4.0"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/eventing",
"version": "2.1.0",
"version": "3.0.0",
"description": "Typescript-based eventing framework (for Azure Open Source Projects)",
"engines": {
"node": ">=7.10.0"
@ -44,12 +44,12 @@
"@types/node": "10.12.19",
"@types/mocha": "5.2.5",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"@azure/tasks": "^2.1.0"
"@azure/tasks": "~3.0.0"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/extension",
"version": "2.2.0",
"version": "3.0.0",
"description": "Yarn-Based extension aquisition (for Azure Open Source Projects)",
"engines": {
"node": ">=7.10.0"
@ -49,15 +49,15 @@
"@types/mocha": "5.2.5",
"@types/semver": "5.5.0",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"@azure/async-io": "^2.1.0",
"@azure/eventing": "^2.1.0",
"@azure/tasks": "^2.1.0",
"@azure/async-io": "~3.0.0",
"@azure/eventing": "~3.0.0",
"@azure/tasks": "~3.0.0",
"npm-package-arg": "6.1.0",
"semver": "^5.5.1",
"pacote": "9.2.3"

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/linq",
"version": "2.1.0",
"version": "3.0.0",
"description": "LINQ-like functionality for Typescript.",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -45,9 +45,9 @@
"@types/mocha": "5.2.5",
"@types/node": "10.12.19",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/oai2-to-oai3",
"version": "3.0.0",
"version": "4.0.0",
"description": "OpenAPI2 to OpenAPI3 conversion library that maintains souremaps for use with AutoRest",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -47,16 +47,16 @@
"@types/js-yaml": "3.12.1",
"mocha": "5.2.0",
"typescript": "~3.5.3",
"@azure/async-io": "^2.1.0",
"@azure/async-io": "~3.0.0",
"source-map-support": "0.5.9",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"@types/source-map": "0.5.0"
},
"dependencies": {
"@azure/datastore": "^3.0.0",
"@azure/openapi": "^2.1.0",
"@azure/datastore": "~4.0.0",
"@azure/openapi": "~3.0.0",
"source-map": "0.5.6"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/object-comparison",
"version": "2.1.0",
"version": "3.0.0",
"description": "Library to compare objects",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -45,9 +45,9 @@
"@types/mocha": "5.2.5",
"@types/node": "10.12.19",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/openapi",
"version": "2.1.0",
"version": "3.0.0",
"description": "OpenAPI common code for Azure Tools.",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -45,12 +45,12 @@
"@types/mocha": "5.2.5",
"@types/node": "10.12.19",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"@azure/linq": "^2.1.0"
"@azure/linq": "~3.0.0"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/tasks",
"version": "2.1.0",
"version": "3.0.0",
"description": "Async tasks for Azure Open Source Projects",
"engines": {
"node": ">=7.10.0"
@ -45,9 +45,9 @@
"mocha": "5.2.0",
"mocha-typescript": "1.1.17",
"typescript": "~3.5.3",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"source-map-support": "0.5.9"
},
"dependencies": {}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/uri",
"version": "2.1.0",
"version": "3.0.0",
"description": "Common URI handling code.",
"main": "./dist/main.js",
"typings": "./dist/main.d.ts",
@ -45,15 +45,15 @@
"@types/mocha": "5.2.5",
"@types/node": "10.12.19",
"mocha": "5.2.0",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"eslint": "^6.1.0",
"@typescript-eslint/eslint-plugin": "~2.0.0",
"@typescript-eslint/parser": "~2.0.0",
"eslint": "~6.2.2",
"typescript": "~3.5.3"
},
"dependencies": {
"get-uri": "^2.0.2",
"urijs": "^1.19.1",
"get-uri": "~2.0.2",
"urijs": "~1.19.1",
"file-url": "2.0.2",
"@azure/async-io": "^2.1.0"
"@azure/async-io": "~3.0.0"
}
}