ソースを参照

Make node crypto module the default import

Painor 2 年 前
コミット
6f7568c8ff
3 ファイル変更3 行追加5 行削除
  1. 1 3
      gramjs/CryptoFile.ts
  2. 1 1
      gramjs/Version.ts
  3. 1 1
      package.json

+ 1 - 3
gramjs/CryptoFile.ts

@@ -1,5 +1,3 @@
-import { isNode } from "./platform";
-
-const crypto = require(isNode ? "crypto" : "./crypto/crypto");
+import * as crypto from "crypto";
 
 export default crypto;

+ 1 - 1
gramjs/Version.ts

@@ -1 +1 @@
-export const version = "2.12.7";
+export const version = "2.13.0";

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "telegram",
-  "version": "2.12.6",
+  "version": "2.13.0",
   "description": "NodeJS/Browser MTProto API Telegram client library,",
   "main": "index.js",
   "types": "index.d.ts",