소스 검색

disable tslint for crypt methods

sanex3339 8 년 전
부모
커밋
d44ea8848e
3개의 변경된 파일364개의 추가작업 그리고 191개의 파일을 삭제
  1. 358 189
      dist/index.js
  2. 4 0
      src/utils/CryptUtils.ts
  3. 2 2
      src/utils/Utils.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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;
             }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.