Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
coviddata /
node_modules /
any-promise /
Delete
Unzip
Name
Size
Permission
Date
Action
register
[ DIR ]
drwxr-xr-x
2021-01-22 18:49
.jshintrc
35
B
-rw-r--r--
2016-01-28 00:57
.npmignore
60
B
-rw-r--r--
2016-05-05 12:53
LICENSE
1.04
KB
-rw-r--r--
2016-05-03 14:12
README.md
6.9
KB
-rw-r--r--
2016-05-08 12:12
implementation.d.ts
62
B
-rw-r--r--
2016-05-08 12:12
index.d.ts
5.23
KB
-rw-r--r--
2016-05-08 12:12
index.js
49
B
-rw-r--r--
2016-05-05 13:16
loader.js
2.52
KB
-rw-r--r--
2016-05-03 14:12
package.json
1.7
KB
-rw-r--r--
2021-01-22 18:49
register-shim.js
545
B
-rw-r--r--
2016-05-08 12:12
register.d.ts
362
B
-rw-r--r--
2016-05-08 12:12
register.js
2.84
KB
-rw-r--r--
2016-05-08 12:12
Save
Rename
"use strict" // global key for user preferred registration var REGISTRATION_KEY = '@@any-promise/REGISTRATION', // Prior registration (preferred or detected) registered = null /** * Registers the given implementation. An implementation must * be registered prior to any call to `require("any-promise")`, * typically on application load. * * If called with no arguments, will return registration in * following priority: * * For Node.js: * * 1. Previous registration * 2. global.Promise if node.js version >= 0.12 * 3. Auto detected promise based on first sucessful require of * known promise libraries. Note this is a last resort, as the * loaded library is non-deterministic. node.js >= 0.12 will * always use global.Promise over this priority list. * 4. Throws error. * * For Browser: * * 1. Previous registration * 2. window.Promise * 3. Throws error. * * Options: * * Promise: Desired Promise constructor * global: Boolean - Should the registration be cached in a global variable to * allow cross dependency/bundle registration? (default true) */ module.exports = function(root, loadImplementation){ return function register(implementation, opts){ implementation = implementation || null opts = opts || {} // global registration unless explicitly {global: false} in options (default true) var registerGlobal = opts.global !== false; // load any previous global registration if(registered === null && registerGlobal){ registered = root[REGISTRATION_KEY] || null } if(registered !== null && implementation !== null && registered.implementation !== implementation){ // Throw error if attempting to redefine implementation throw new Error('any-promise already defined as "'+registered.implementation+ '". You can only register an implementation before the first '+ ' call to require("any-promise") and an implementation cannot be changed') } if(registered === null){ // use provided implementation if(implementation !== null && typeof opts.Promise !== 'undefined'){ registered = { Promise: opts.Promise, implementation: implementation } } else { // require implementation if implementation is specified but not provided registered = loadImplementation(implementation) } if(registerGlobal){ // register preference globally in case multiple installations root[REGISTRATION_KEY] = registered } } return registered } }