Skip to content

Commit 421b0b5

Browse files
committed
Linting.
1 parent 0349691 commit 421b0b5

File tree

4 files changed

+9
-30
lines changed

4 files changed

+9
-30
lines changed

packages/sdk/browser/__tests__/platform/BrowserEncoding.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import BrowserEncoding from '../../src/platform/BrowserEncoding';
22

3-
43
it('can base64 a basic ASCII string', () => {
54
const encoding = new BrowserEncoding();
65
expect(encoding.btoa('toaster')).toEqual('dG9hc3Rlcg==');
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
{
22
"verbose": true,
33
"testEnvironment": "jest-environment-jsdom",
4-
"testPathIgnorePatterns": [
5-
"./dist",
6-
"./src"
7-
],
8-
"testMatch": [
9-
"**.test.ts"
10-
],
11-
"setupFiles": [
12-
"./setup-jest.js"
13-
],
4+
"testPathIgnorePatterns": ["./dist", "./src"],
5+
"testMatch": ["**.test.ts"],
6+
"setupFiles": ["./setup-jest.js"],
147
"transform": {
158
"^.+\\.ts$": [
169
"ts-jest",
1710
{
1811
"tsConfig": "tsconfig.test.json"
1912
}
2013
],
21-
"^.+.tsx?$": [
22-
"ts-jest",
23-
{}
24-
]
14+
"^.+.tsx?$": ["ts-jest", {}]
2515
}
2616
}

packages/sdk/browser/setup-jest.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ Object.assign(window, { TextDecoder, TextEncoder });
88
// Based on:
99
// https://stackoverflow.com/a/71750830
1010

11-
Object.defineProperty(global.self, "crypto", {
11+
Object.defineProperty(global.self, 'crypto', {
1212
value: {
1313
getRandomValues: (arr) => crypto.randomBytes(arr.length),
1414
subtle: {
1515
digest: (algorithm, data) => {
1616
return new Promise((resolve) =>
1717
resolve(
18-
crypto.createHash(algorithm.toLowerCase().replace("-", ""))
19-
.update(data)
20-
.digest()
21-
)
18+
crypto.createHash(algorithm.toLowerCase().replace('-', '')).update(data).digest(),
19+
),
2220
);
2321
},
2422
},

packages/sdk/cloudflare/jsr.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
"version": "2.6.0",
44
"exports": "./src/index.ts",
55
"publish": {
6-
"include": [
7-
"LICENSE",
8-
"README.md",
9-
"package.json",
10-
"jsr.json",
11-
"src/**/*.ts"
12-
],
13-
"exclude": [
14-
"src/**/*.test.ts"
15-
]
6+
"include": ["LICENSE", "README.md", "package.json", "jsr.json", "src/**/*.ts"],
7+
"exclude": ["src/**/*.test.ts"]
168
}
179
}

0 commit comments

Comments
 (0)