feat: start nemesis #1227
@ -16,12 +16,12 @@ import mongoose from "mongoose";
 | 
			
		||||
    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
 | 
			
		||||
    (BigInt.prototype as any).toJSON = function (): string {
 | 
			
		||||
        // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
 | 
			
		||||
        return "<JS_SUCKS>" + this.toString() + "</JS_SUCKS>";
 | 
			
		||||
        return "<BIGINT>" + this.toString() + "</BIGINT>";
 | 
			
		||||
| 
					
	
	
	
	
	
	
	
	 
					
					Sainan marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				 | 
			||||
    };
 | 
			
		||||
    const og_stringify = JSON.stringify;
 | 
			
		||||
    // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
 | 
			
		||||
    (JSON as any).stringify = (obj: any): string => {
 | 
			
		||||
        return og_stringify(obj).split(`"<JS_SUCKS>`).join(``).split(`</JS_SUCKS>"`).join(``);
 | 
			
		||||
        return og_stringify(obj).split(`"<BIGINT>`).join(``).split(`</BIGINT>"`).join(``);
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
lets keep this out tho, the lack of support there is uncomfortable, but lets keep our code.. noice