Skip to content

Commit 303cce5

Browse files
committed
more js-sha256
Changes from node scripts/lint_ts_projects --fix
1 parent 4e79c82 commit 303cce5

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

x-pack/platform/plugins/shared/fleet/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@
135135
"@kbn/rule-data-utils",
136136
"@kbn/doc-links"
137137
]
138-
}
138+
}

x-pack/platform/plugins/shared/screenshotting/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
"target/**/*",
3434
"chromium/**/*"
3535
]
36-
}
36+
}

x-pack/solutions/security/plugins/security_solution/server/lib/siem_migrations/common/data/siem_migrations_data_resources_client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
import { sha256 } from 'js-sha256';
8+
import { createHash } from 'crypto';
99
import type {
1010
QueryDslQueryContainer,
1111
Duration,
@@ -160,7 +160,7 @@ export class SiemMigrationsDataResourcesClient extends SiemMigrationsDataBaseCli
160160

161161
private createId(resource: CreateSiemMigrationResourceInput): string {
162162
const key = `${resource.migration_id}-${resource.type}-${resource.name}`;
163-
return sha256.create().update(key).hex();
163+
return createHash('sha256').update(key).digest('hex');
164164
}
165165

166166
private getFilterQuery(

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25253,7 +25253,7 @@ js-search@1.4.3:
2525325253
resolved "https://registry.yarnpkg.com/js-search/-/js-search-1.4.3.tgz#23a86d7e064ca53a473930edc48615b6b1c1954a"
2525425254
integrity sha512-Sny5pf00kX1sM1KzvUC9nGYWXOvBfy30rmvZWeRktpg+esQKedIXrXNee/I2CAnsouCyaTjitZpRflDACx4toA==
2525525255

25256-
js-sha256@0.11.1, js-sha256@^0.11.1:
25256+
js-sha256@^0.11.1:
2525725257
version "0.11.1"
2525825258
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.11.1.tgz#712262e8fc9569d6f7f6eea72c0d8e5ccc7c976c"
2525925259
integrity sha512-o6WSo/LUvY2uC4j7mO50a2ms7E/EAdbP0swigLV+nzHKTTaYnaLIWJ02VdXrsJX0vGedDESQnLsOekr94ryfjg==

0 commit comments

Comments
 (0)