Skip to content

Commit 04592b7

Browse files
authored
chore: run prettier on TS, MD and JSON files in packages folder (#227)
2 parents 48bdb32 + 6a3fd1a commit 04592b7

File tree

6,951 files changed

+223913
-215700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,951 files changed

+223913
-215700
lines changed

packages/abort-controller/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
**Note:** Version bump only for package @aws-sdk/abort-controller
99

10-
11-
12-
13-
1410
# [0.1.0-preview.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/[email protected]...@aws-sdk/[email protected]) (2019-03-27)
1511

1612
**Note:** Version bump only for package @aws-sdk/abort-controller
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
"name": "@aws-sdk/abort-controller",
3-
"version": "0.1.0-preview.3",
4-
"description": "A simple abort controller library",
5-
"main": "./build/index.js",
6-
"types": "./build/index.d.ts",
7-
"scripts": {
8-
"prepublishOnly": "tsc",
9-
"pretest": "tsc -p tsconfig.test.json",
10-
"test": "jest"
11-
},
12-
"author": {
13-
"name": "AWS SDK for JavaScript Team",
14-
"email": "[email protected]",
15-
"url": "https://aws.amazon.com/javascript/"
16-
},
17-
"license": "Apache-2.0",
18-
"dependencies": {
19-
"@aws-sdk/types": "^0.1.0-preview.3",
20-
"tslib": "^1.8.0"
21-
},
22-
"devDependencies": {
23-
"@types/jest": "^20.0.2",
24-
"jest": "^20.0.4",
25-
"typescript": "^3.0.0"
26-
}
2+
"name": "@aws-sdk/abort-controller",
3+
"version": "0.1.0-preview.3",
4+
"description": "A simple abort controller library",
5+
"main": "./build/index.js",
6+
"types": "./build/index.d.ts",
7+
"scripts": {
8+
"prepublishOnly": "tsc",
9+
"pretest": "tsc -p tsconfig.test.json",
10+
"test": "jest"
11+
},
12+
"author": {
13+
"name": "AWS SDK for JavaScript Team",
14+
"email": "[email protected]",
15+
"url": "https://aws.amazon.com/javascript/"
16+
},
17+
"license": "Apache-2.0",
18+
"dependencies": {
19+
"@aws-sdk/types": "^0.1.0-preview.3",
20+
"tslib": "^1.8.0"
21+
},
22+
"devDependencies": {
23+
"@types/jest": "^20.0.2",
24+
"jest": "^20.0.4",
25+
"typescript": "^3.0.0"
26+
}
2727
}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import {AbortController} from "./AbortController";
2-
import {AbortSignal} from "./AbortSignal";
1+
import { AbortController } from "./AbortController";
2+
import { AbortSignal } from "./AbortSignal";
33

44
jest.useFakeTimers();
55

6-
describe('AbortController', () => {
7-
it('should communicate cancellation via its signal', () => {
8-
const source = new AbortController();
9-
const {signal} = source;
10-
expect(signal).toBeInstanceOf(AbortSignal);
11-
expect(signal.aborted).toBe(false);
6+
describe("AbortController", () => {
7+
it("should communicate cancellation via its signal", () => {
8+
const source = new AbortController();
9+
const { signal } = source;
10+
expect(signal).toBeInstanceOf(AbortSignal);
11+
expect(signal.aborted).toBe(false);
1212

13-
source.abort();
14-
expect(signal.aborted).toBe(true);
15-
});
13+
source.abort();
14+
expect(signal.aborted).toBe(true);
15+
});
1616
});
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {AbortController as IAbortController} from "@aws-sdk/types";
2-
import {AbortSignal} from "./AbortSignal";
1+
import { AbortController as IAbortController } from "@aws-sdk/types";
2+
import { AbortSignal } from "./AbortSignal";
33

44
export class AbortController implements IAbortController {
5-
public readonly signal: AbortSignal = new AbortSignal();
5+
public readonly signal: AbortSignal = new AbortSignal();
66

7-
abort(): void {
8-
this.signal.abort();
9-
}
7+
abort(): void {
8+
this.signal.abort();
9+
}
1010
}
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
import {AbortController} from "./AbortController";
2-
import {AbortSignal} from "./AbortSignal";
1+
import { AbortController } from "./AbortController";
2+
import { AbortSignal } from "./AbortSignal";
33

4-
describe('AbortSignal', () => {
5-
it('should report aborted to be false until the signal is aborted', () => {
6-
const controller = new AbortController();
7-
const {signal} = controller;
8-
expect(signal.aborted).toBe(false);
4+
describe("AbortSignal", () => {
5+
it("should report aborted to be false until the signal is aborted", () => {
6+
const controller = new AbortController();
7+
const { signal } = controller;
8+
expect(signal.aborted).toBe(false);
99

10-
controller.abort();
11-
expect(signal.aborted).toBe(true);
12-
});
10+
controller.abort();
11+
expect(signal.aborted).toBe(true);
12+
});
1313

14-
it('should invoke the onabort handler when the signal is aborted', () => {
15-
const controller = new AbortController();
16-
const {signal} = controller;
17-
const abortHandler = jest.fn();
18-
signal.onabort = abortHandler;
19-
expect(abortHandler.mock.calls.length).toBe(0);
20-
controller.abort();
21-
expect(abortHandler.mock.calls.length).toBe(1);
22-
});
14+
it("should invoke the onabort handler when the signal is aborted", () => {
15+
const controller = new AbortController();
16+
const { signal } = controller;
17+
const abortHandler = jest.fn();
18+
signal.onabort = abortHandler;
19+
expect(abortHandler.mock.calls.length).toBe(0);
20+
controller.abort();
21+
expect(abortHandler.mock.calls.length).toBe(1);
22+
});
2323

24-
it('should not invoke the onabort handler multiple time', () => {
25-
const controller = new AbortController();
26-
const {signal} = controller;
27-
const abortHandler = jest.fn();
28-
signal.onabort = abortHandler;
29-
expect(abortHandler.mock.calls.length).toBe(0);
30-
controller.abort();
31-
expect(abortHandler.mock.calls.length).toBe(1);
32-
controller.abort();
33-
expect(abortHandler.mock.calls.length).toBe(1);
34-
});
24+
it("should not invoke the onabort handler multiple time", () => {
25+
const controller = new AbortController();
26+
const { signal } = controller;
27+
const abortHandler = jest.fn();
28+
signal.onabort = abortHandler;
29+
expect(abortHandler.mock.calls.length).toBe(0);
30+
controller.abort();
31+
expect(abortHandler.mock.calls.length).toBe(1);
32+
controller.abort();
33+
expect(abortHandler.mock.calls.length).toBe(1);
34+
});
3535
});
Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
1-
import {
2-
AbortSignal as IAbortSignal,
3-
AbortHandler,
4-
} from '@aws-sdk/types';
1+
import { AbortSignal as IAbortSignal, AbortHandler } from "@aws-sdk/types";
52

63
export class AbortSignal implements IAbortSignal {
7-
public onabort?: AbortHandler;
8-
private _aborted!: boolean;
4+
public onabort?: AbortHandler;
5+
private _aborted!: boolean;
96

10-
constructor() {
11-
Object.defineProperty(this, '_aborted', {
12-
value: false,
13-
writable: true,
14-
});
15-
}
7+
constructor() {
8+
Object.defineProperty(this, "_aborted", {
9+
value: false,
10+
writable: true
11+
});
12+
}
1613

17-
/**
18-
* Whether the associated operation has already been cancelled.
19-
*/
20-
get aborted(): boolean {
21-
return this._aborted;
22-
}
14+
/**
15+
* Whether the associated operation has already been cancelled.
16+
*/
17+
get aborted(): boolean {
18+
return this._aborted;
19+
}
2320

24-
/**
25-
* @internal
26-
*/
27-
abort(): void {
28-
this._aborted = true;
29-
if (this.onabort) {
30-
this.onabort();
31-
this.onabort = undefined;
32-
}
21+
/**
22+
* @internal
23+
*/
24+
abort(): void {
25+
this._aborted = true;
26+
if (this.onabort) {
27+
this.onabort();
28+
this.onabort = undefined;
3329
}
30+
}
3431
}
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es5",
5-
"lib": [
6-
"es5",
7-
"es2015.collection"
8-
],
9-
"strict": true,
10-
"sourceMap": true,
11-
"declaration": true,
12-
"stripInternal": true,
13-
"rootDir": "./src",
14-
"outDir": "./build",
15-
"importHelpers": true,
16-
"noEmitHelpers": true
17-
}
18-
}
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es5",
5+
"lib": ["es5", "es2015.collection"],
6+
"strict": true,
7+
"sourceMap": true,
8+
"declaration": true,
9+
"stripInternal": true,
10+
"rootDir": "./src",
11+
"outDir": "./build",
12+
"importHelpers": true,
13+
"noEmitHelpers": true
14+
}
15+
}

packages/add-glacier-checksum-headers-browser/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
**Note:** Version bump only for package @aws-sdk/add-glacier-checksum-headers-browser
99

10-
11-
12-
13-
1410
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/[email protected]...@aws-sdk/[email protected]) (2019-03-27)
1511

1612
**Note:** Version bump only for package @aws-sdk/add-glacier-checksum-headers-browser
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# add-glacier-checksum-headers-browser
1+
# add-glacier-checksum-headers-browser
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"name": "@aws-sdk/add-glacier-checksum-headers-browser",
3-
"version": "0.1.0-preview.4",
4-
"scripts": {
5-
"prepublishOnly": "tsc",
6-
"pretest": "tsc -p tsconfig.test.json",
7-
"test": "karma start karma.conf.js"
8-
},
9-
"main": "./build/index.js",
10-
"types": "./build/index.d.ts",
11-
"author": {
12-
"name": "AWS SDK for JavaScript Team",
13-
"email": "[email protected]",
14-
"url": "https://aws.amazon.com/javascript/"
15-
},
16-
"license": "Apache-2.0",
17-
"dependencies": {
18-
"@aws-sdk/chunked-blob-reader": "^0.1.0-preview.1",
19-
"@aws-sdk/is-array-buffer": "^0.1.0-preview.1",
20-
"@aws-sdk/sha256-tree-hash": "^0.1.0-preview.4",
21-
"@aws-sdk/stream-collector-browser": "^0.1.0-preview.3",
22-
"@aws-sdk/types": "^0.1.0-preview.3",
23-
"@aws-sdk/util-hex-encoding": "^0.1.0-preview.1",
24-
"tslib": "^1.8.0"
25-
},
26-
"devDependencies": {
27-
"@aws-crypto/sha256-browser": "^0.1.0-preview.1",
28-
"@aws-sdk/util-utf8-browser": "^0.1.0-preview.1",
29-
"@types/jest": "^20.0.2",
30-
"jasmine-core": "^2.8.0",
31-
"jest": "^20.0.4",
32-
"karma": "^2.0.0",
33-
"karma-chrome-launcher": "^2.2.0",
34-
"karma-jasmine": "^1.1.1",
35-
"karma-typescript": "3.0.8",
36-
"puppeteer": "^1.0.0",
37-
"typescript": "^3.0.0"
38-
}
2+
"name": "@aws-sdk/add-glacier-checksum-headers-browser",
3+
"version": "0.1.0-preview.4",
4+
"scripts": {
5+
"prepublishOnly": "tsc",
6+
"pretest": "tsc -p tsconfig.test.json",
7+
"test": "karma start karma.conf.js"
8+
},
9+
"main": "./build/index.js",
10+
"types": "./build/index.d.ts",
11+
"author": {
12+
"name": "AWS SDK for JavaScript Team",
13+
"email": "[email protected]",
14+
"url": "https://aws.amazon.com/javascript/"
15+
},
16+
"license": "Apache-2.0",
17+
"dependencies": {
18+
"@aws-sdk/chunked-blob-reader": "^0.1.0-preview.1",
19+
"@aws-sdk/is-array-buffer": "^0.1.0-preview.1",
20+
"@aws-sdk/sha256-tree-hash": "^0.1.0-preview.4",
21+
"@aws-sdk/stream-collector-browser": "^0.1.0-preview.3",
22+
"@aws-sdk/types": "^0.1.0-preview.3",
23+
"@aws-sdk/util-hex-encoding": "^0.1.0-preview.1",
24+
"tslib": "^1.8.0"
25+
},
26+
"devDependencies": {
27+
"@aws-crypto/sha256-browser": "^0.1.0-preview.1",
28+
"@aws-sdk/util-utf8-browser": "^0.1.0-preview.1",
29+
"@types/jest": "^20.0.2",
30+
"jasmine-core": "^2.8.0",
31+
"jest": "^20.0.4",
32+
"karma": "^2.0.0",
33+
"karma-chrome-launcher": "^2.2.0",
34+
"karma-jasmine": "^1.1.1",
35+
"karma-typescript": "3.0.8",
36+
"puppeteer": "^1.0.0",
37+
"typescript": "^3.0.0"
38+
}
3939
}

0 commit comments

Comments
 (0)