Skip to content

Commit

Permalink
resolve esm for react native
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed May 10, 2024
1 parent b26d67e commit 95da47f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"main": "build/webcrypto.js",
"module": "build/webcrypto.es.js",
"react-native": "build/webcrypto.es.js",
"types": "index.d.ts",
"scripts": {
"test": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion src/mechs/aes/aes_cmac.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Buffer } from "buffer";
import * as crypto from "crypto";
import crypto from "crypto";
import * as core from "webcrypto-core";
import { AesCrypto } from "./crypto";
import { AesCryptoKey } from "./key";
Expand Down
2 changes: 1 addition & 1 deletion src/mechs/rsa/rsa_es.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as crypto from "crypto";
import crypto from "crypto";
import { Convert } from "pvtsutils";
import * as core from "webcrypto-core";
import { RsaCrypto } from "./crypto";
Expand Down
2 changes: 1 addition & 1 deletion src/subtle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as crypto from "crypto";
import crypto from "crypto";
import * as process from "process";
import * as core from "webcrypto-core";
import {
Expand Down

0 comments on commit 95da47f

Please sign in to comment.