Browse Source

disable tslint for crypt methods

sanex3339 8 năm trước cách đây
mục cha
commit
d44ea8848e
3 tập tin đã thay đổi với 364 bổ sung191 xóa
  1. 358 189
      dist/index.js
  2. 4 0
      src/utils/CryptUtils.ts
  3. 2 2
      src/utils/Utils.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 358 - 189
dist/index.js


+ 4 - 0
src/utils/CryptUtils.ts

@@ -5,6 +5,7 @@ export class CryptUtils {
     /**
      * @param string
      */
+    /* tslint:disable */
     public static btoa (string: string): string {
         const chars: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
 
@@ -30,6 +31,7 @@ export class CryptUtils {
 
         return output;
     }
+    /* tslint:enable */
 
     /**
      * @param str
@@ -82,6 +84,7 @@ export class CryptUtils {
      * @param string
      * @returns {string}
      */
+    /* tslint:disable */
     public static rc4 (string: string, key: string): string {
         let s: number[] = [],
             j: number = 0,
@@ -113,4 +116,5 @@ export class CryptUtils {
 
         return result;
     }
+    /* tslint:enable */
 }

+ 2 - 2
src/utils/Utils.ts

@@ -1,6 +1,6 @@
 import { JSFuck } from '../enums/JSFuck';
 
-const isEqual = require('is-equal');
+const isEqual: any = require('is-equal');
 
 export class Utils {
     /**
@@ -84,7 +84,7 @@ export class Utils {
      * @returns {any}
      */
     public static mapGetFirstKeyOf(map: Map <any, any>, value: any): any {
-        for (var [key, storageValue] of map) {
+        for (let [key, storageValue] of map) {
             if (isEqual(value, storageValue)) {
                 return key;
             }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác