ソースを参照

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

+ 2 - 2
src/utils/Utils.ts

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

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません