Init. Map does not function and only working on backend at the moment.
This commit is contained in:
10
node_modules/sleep/.travis.yml
generated
vendored
Normal file
10
node_modules/sleep/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
sudo: false
|
||||
dist: bionic
|
||||
osx_image: xcode11.3
|
||||
|
||||
language: node_js
|
||||
node_js:
|
||||
- "stable"
|
21
node_modules/sleep/LICENSE.txt
generated
vendored
Normal file
21
node_modules/sleep/LICENSE.txt
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Erik Dubbelboer
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
48
node_modules/sleep/README.md
generated
vendored
Normal file
48
node_modules/sleep/README.md
generated
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
[](https://travis-ci.org/erikdubbelboer/node-sleep)
|
||||
[](https://ci.appveyor.com/project/erikdubbelboer/node-sleep)
|
||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Ferikdubbelboer%2Fnode-sleep?ref=badge_shield)
|
||||
|
||||
sleep
|
||||
=====
|
||||
|
||||
Add [`sleep()`][1], `msleep()` and [`usleep()`][2] to Node.js, via a C++ binding.
|
||||
|
||||
This is mainly useful for debugging.
|
||||
|
||||
Note that because this is a C++ module, it will need to be built on the system you are going to use it on.
|
||||
|
||||
These calls will block execution of all JavaScript by halting Node.js' event loop!
|
||||
==================================================================================
|
||||
|
||||
Alternative
|
||||
-----------
|
||||
|
||||
When using nodejs `9.3` or higher it's better to use [Atomics.wait](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait) which doesn't require compiling this C++
|
||||
module.
|
||||
The `sleep` and `msleep` functions can be implemented like this:
|
||||
```js
|
||||
function msleep(n) {
|
||||
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, n);
|
||||
}
|
||||
function sleep(n) {
|
||||
msleep(n*1000);
|
||||
}
|
||||
```
|
||||
If you require `usleep` this module is still required.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
var sleep = require('sleep');
|
||||
|
||||
* `sleep.sleep(n)`: sleep for `n` seconds
|
||||
* `sleep.msleep(n)`: sleep for `n` miliseconds
|
||||
* `sleep.usleep(n)`: sleep for `n` microseconds (1 second is 1000000 microseconds)
|
||||
|
||||
|
||||
[1]: http://linux.die.net/man/3/sleep
|
||||
[2]: http://linux.die.net/man/3/usleep
|
||||
|
||||
|
||||
## License
|
||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Ferikdubbelboer%2Fnode-sleep?ref=badge_large)
|
33
node_modules/sleep/appveyor.yml
generated
vendored
Normal file
33
node_modules/sleep/appveyor.yml
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
platform:
|
||||
- x64
|
||||
|
||||
# Test against these versions of Node.js.
|
||||
environment:
|
||||
matrix:
|
||||
- nodejs_version: "8"
|
||||
- nodejs_version: "10"
|
||||
|
||||
# Install scripts. (runs after repo cloning)
|
||||
install:
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
- set CI=true
|
||||
- set PATH=%APPDATA%\npm;c:\MinGW\bin;%PATH%
|
||||
- npm install npm@latest -g
|
||||
- npm ci
|
||||
|
||||
# Post-install test scripts.
|
||||
test_script:
|
||||
# Output useful info for debugging.
|
||||
- node --version
|
||||
- npm --version
|
||||
# run tests
|
||||
- npm test
|
||||
|
||||
# Don't actually build.
|
||||
build: off
|
||||
|
||||
# Set build version format here instead of in the admin panel.
|
||||
version: "{build}"
|
||||
|
||||
shallow_clone: true
|
||||
clone_depth: 1
|
15
node_modules/sleep/binding.gyp
generated
vendored
Normal file
15
node_modules/sleep/binding.gyp
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'node_sleep',
|
||||
'sources': [
|
||||
'module_init.cc',
|
||||
'sleep.h',
|
||||
'sleep_cpp11.cc', # All implementation files should be enabled in all OS/archtectures,
|
||||
'sleep_posix.cc', # appropriate implementation is selected by preprocessor macros,
|
||||
'sleep_win.cc',
|
||||
],
|
||||
"include_dirs": ["<!(node -e \"require('nan')\")"]
|
||||
}
|
||||
]
|
||||
}
|
BIN
node_modules/sleep/build/Release/node_sleep.iobj
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/node_sleep.iobj
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/node_sleep.ipdb
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/node_sleep.ipdb
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/node_sleep.node
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/node_sleep.node
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/node_sleep.pdb
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/node_sleep.pdb
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/module_init.obj
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/module_init.obj
generated
vendored
Normal file
Binary file not shown.
11
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.node.recipe
generated
vendored
Normal file
11
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.node.recipe
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>I:\tlt-bus-map\node_modules\sleep\build\Release\node_sleep.node</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/CL.command.1.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/CL.command.1.tlog
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/CL.read.1.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/CL.read.1.tlog
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/CL.write.1.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/CL.write.1.tlog
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/link.command.1.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/link.command.1.tlog
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/link.read.1.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/link.read.1.tlog
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/link.write.1.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/link.write.1.tlog
generated
vendored
Normal file
Binary file not shown.
2
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/node_sleep.lastbuildstate
generated
vendored
Normal file
2
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/node_sleep.lastbuildstate
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0:
|
||||
Release|x64|I:\tlt-bus-map\node_modules\sleep\build\|
|
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/node_sleep.write.1u.tlog
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/node_sleep.tlog/node_sleep.write.1u.tlog
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/sleep_cpp11.obj
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/sleep_cpp11.obj
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/sleep_posix.obj
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/sleep_posix.obj
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/sleep_win.obj
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/sleep_win.obj
generated
vendored
Normal file
Binary file not shown.
BIN
node_modules/sleep/build/Release/obj/node_sleep/win_delay_load_hook.obj
generated
vendored
Normal file
BIN
node_modules/sleep/build/Release/obj/node_sleep/win_delay_load_hook.obj
generated
vendored
Normal file
Binary file not shown.
19
node_modules/sleep/build/binding.sln
generated
vendored
Normal file
19
node_modules/sleep/build/binding.sln
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2015
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "node_sleep", "node_sleep.vcxproj", "{98C73D92-0D78-1630-2F95-F33FAFD12B38}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Release|x64 = Release|x64
|
||||
Debug|x64 = Debug|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Release|x64.ActiveCfg = Release|x64
|
||||
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Release|x64.Build.0 = Release|x64
|
||||
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{98C73D92-0D78-1630-2F95-F33FAFD12B38}.Debug|x64.Build.0 = Debug|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
382
node_modules/sleep/build/config.gypi
generated
vendored
Normal file
382
node_modules/sleep/build/config.gypi
generated
vendored
Normal file
@ -0,0 +1,382 @@
|
||||
# Do not edit. File was generated by node-gyp's "configure" step
|
||||
{
|
||||
"target_defaults": {
|
||||
"cflags": [],
|
||||
"default_configuration": "Release",
|
||||
"defines": [],
|
||||
"include_dirs": [],
|
||||
"libraries": [],
|
||||
"msbuild_toolset": "v143",
|
||||
"msvs_windows_target_platform_version": "10.0.19041.0"
|
||||
},
|
||||
"variables": {
|
||||
"asan": 0,
|
||||
"coverage": "false",
|
||||
"dcheck_always_on": 0,
|
||||
"debug_nghttp2": "false",
|
||||
"debug_node": "false",
|
||||
"enable_lto": "false",
|
||||
"enable_pgo_generate": "false",
|
||||
"enable_pgo_use": "false",
|
||||
"error_on_warn": "false",
|
||||
"force_dynamic_crt": 0,
|
||||
"host_arch": "x64",
|
||||
"icu_data_in": "..\\..\\deps\\icu-tmp\\icudt71l.dat",
|
||||
"icu_endianness": "l",
|
||||
"icu_gyp_path": "tools/icu/icu-generic.gyp",
|
||||
"icu_path": "deps/icu-small",
|
||||
"icu_small": "false",
|
||||
"icu_ver_major": "71",
|
||||
"is_debug": 0,
|
||||
"llvm_version": "0.0",
|
||||
"napi_build_version": "8",
|
||||
"nasm_version": "2.15",
|
||||
"node_byteorder": "little",
|
||||
"node_debug_lib": "false",
|
||||
"node_enable_d8": "false",
|
||||
"node_install_corepack": "true",
|
||||
"node_install_npm": "true",
|
||||
"node_library_files": [
|
||||
"lib/assert.js",
|
||||
"lib/async_hooks.js",
|
||||
"lib/buffer.js",
|
||||
"lib/child_process.js",
|
||||
"lib/cluster.js",
|
||||
"lib/console.js",
|
||||
"lib/constants.js",
|
||||
"lib/crypto.js",
|
||||
"lib/dgram.js",
|
||||
"lib/diagnostics_channel.js",
|
||||
"lib/dns.js",
|
||||
"lib/domain.js",
|
||||
"lib/events.js",
|
||||
"lib/fs.js",
|
||||
"lib/http.js",
|
||||
"lib/http2.js",
|
||||
"lib/https.js",
|
||||
"lib/inspector.js",
|
||||
"lib/module.js",
|
||||
"lib/net.js",
|
||||
"lib/os.js",
|
||||
"lib/path.js",
|
||||
"lib/perf_hooks.js",
|
||||
"lib/process.js",
|
||||
"lib/punycode.js",
|
||||
"lib/querystring.js",
|
||||
"lib/readline.js",
|
||||
"lib/repl.js",
|
||||
"lib/stream.js",
|
||||
"lib/string_decoder.js",
|
||||
"lib/sys.js",
|
||||
"lib/test.js",
|
||||
"lib/timers.js",
|
||||
"lib/tls.js",
|
||||
"lib/trace_events.js",
|
||||
"lib/tty.js",
|
||||
"lib/url.js",
|
||||
"lib/util.js",
|
||||
"lib/v8.js",
|
||||
"lib/vm.js",
|
||||
"lib/wasi.js",
|
||||
"lib/worker_threads.js",
|
||||
"lib/zlib.js",
|
||||
"lib/_http_agent.js",
|
||||
"lib/_http_client.js",
|
||||
"lib/_http_common.js",
|
||||
"lib/_http_incoming.js",
|
||||
"lib/_http_outgoing.js",
|
||||
"lib/_http_server.js",
|
||||
"lib/_stream_duplex.js",
|
||||
"lib/_stream_passthrough.js",
|
||||
"lib/_stream_readable.js",
|
||||
"lib/_stream_transform.js",
|
||||
"lib/_stream_wrap.js",
|
||||
"lib/_stream_writable.js",
|
||||
"lib/_tls_common.js",
|
||||
"lib/_tls_wrap.js",
|
||||
"lib/assert/strict.js",
|
||||
"lib/dns/promises.js",
|
||||
"lib/fs/promises.js",
|
||||
"lib/internal/abort_controller.js",
|
||||
"lib/internal/assert.js",
|
||||
"lib/internal/async_hooks.js",
|
||||
"lib/internal/blob.js",
|
||||
"lib/internal/blocklist.js",
|
||||
"lib/internal/buffer.js",
|
||||
"lib/internal/child_process.js",
|
||||
"lib/internal/cli_table.js",
|
||||
"lib/internal/constants.js",
|
||||
"lib/internal/dgram.js",
|
||||
"lib/internal/dtrace.js",
|
||||
"lib/internal/encoding.js",
|
||||
"lib/internal/errors.js",
|
||||
"lib/internal/error_serdes.js",
|
||||
"lib/internal/event_target.js",
|
||||
"lib/internal/fixed_queue.js",
|
||||
"lib/internal/freelist.js",
|
||||
"lib/internal/freeze_intrinsics.js",
|
||||
"lib/internal/heap_utils.js",
|
||||
"lib/internal/histogram.js",
|
||||
"lib/internal/http.js",
|
||||
"lib/internal/idna.js",
|
||||
"lib/internal/inspector_async_hook.js",
|
||||
"lib/internal/js_stream_socket.js",
|
||||
"lib/internal/linkedlist.js",
|
||||
"lib/internal/net.js",
|
||||
"lib/internal/options.js",
|
||||
"lib/internal/priority_queue.js",
|
||||
"lib/internal/promise_hooks.js",
|
||||
"lib/internal/querystring.js",
|
||||
"lib/internal/repl.js",
|
||||
"lib/internal/socketaddress.js",
|
||||
"lib/internal/socket_list.js",
|
||||
"lib/internal/stream_base_commons.js",
|
||||
"lib/internal/timers.js",
|
||||
"lib/internal/trace_events_async_hooks.js",
|
||||
"lib/internal/tty.js",
|
||||
"lib/internal/url.js",
|
||||
"lib/internal/util.js",
|
||||
"lib/internal/v8_prof_polyfill.js",
|
||||
"lib/internal/v8_prof_processor.js",
|
||||
"lib/internal/validators.js",
|
||||
"lib/internal/watchdog.js",
|
||||
"lib/internal/worker.js",
|
||||
"lib/internal/assert/assertion_error.js",
|
||||
"lib/internal/assert/calltracker.js",
|
||||
"lib/internal/bootstrap/environment.js",
|
||||
"lib/internal/bootstrap/loaders.js",
|
||||
"lib/internal/bootstrap/node.js",
|
||||
"lib/internal/bootstrap/pre_execution.js",
|
||||
"lib/internal/bootstrap/switches/does_not_own_process_state.js",
|
||||
"lib/internal/bootstrap/switches/does_own_process_state.js",
|
||||
"lib/internal/bootstrap/switches/is_main_thread.js",
|
||||
"lib/internal/bootstrap/switches/is_not_main_thread.js",
|
||||
"lib/internal/child_process/serialization.js",
|
||||
"lib/internal/cluster/child.js",
|
||||
"lib/internal/cluster/primary.js",
|
||||
"lib/internal/cluster/round_robin_handle.js",
|
||||
"lib/internal/cluster/shared_handle.js",
|
||||
"lib/internal/cluster/utils.js",
|
||||
"lib/internal/cluster/worker.js",
|
||||
"lib/internal/console/constructor.js",
|
||||
"lib/internal/console/global.js",
|
||||
"lib/internal/crypto/aes.js",
|
||||
"lib/internal/crypto/certificate.js",
|
||||
"lib/internal/crypto/cfrg.js",
|
||||
"lib/internal/crypto/cipher.js",
|
||||
"lib/internal/crypto/diffiehellman.js",
|
||||
"lib/internal/crypto/ec.js",
|
||||
"lib/internal/crypto/hash.js",
|
||||
"lib/internal/crypto/hashnames.js",
|
||||
"lib/internal/crypto/hkdf.js",
|
||||
"lib/internal/crypto/keygen.js",
|
||||
"lib/internal/crypto/keys.js",
|
||||
"lib/internal/crypto/mac.js",
|
||||
"lib/internal/crypto/pbkdf2.js",
|
||||
"lib/internal/crypto/random.js",
|
||||
"lib/internal/crypto/rsa.js",
|
||||
"lib/internal/crypto/scrypt.js",
|
||||
"lib/internal/crypto/sig.js",
|
||||
"lib/internal/crypto/util.js",
|
||||
"lib/internal/crypto/webcrypto.js",
|
||||
"lib/internal/crypto/x509.js",
|
||||
"lib/internal/debugger/inspect.js",
|
||||
"lib/internal/debugger/inspect_client.js",
|
||||
"lib/internal/debugger/inspect_repl.js",
|
||||
"lib/internal/dns/promises.js",
|
||||
"lib/internal/dns/utils.js",
|
||||
"lib/internal/fs/dir.js",
|
||||
"lib/internal/fs/promises.js",
|
||||
"lib/internal/fs/read_file_context.js",
|
||||
"lib/internal/fs/rimraf.js",
|
||||
"lib/internal/fs/streams.js",
|
||||
"lib/internal/fs/sync_write_stream.js",
|
||||
"lib/internal/fs/utils.js",
|
||||
"lib/internal/fs/watchers.js",
|
||||
"lib/internal/fs/cp/cp-sync.js",
|
||||
"lib/internal/fs/cp/cp.js",
|
||||
"lib/internal/http2/compat.js",
|
||||
"lib/internal/http2/core.js",
|
||||
"lib/internal/http2/util.js",
|
||||
"lib/internal/legacy/processbinding.js",
|
||||
"lib/internal/main/check_syntax.js",
|
||||
"lib/internal/main/eval_stdin.js",
|
||||
"lib/internal/main/eval_string.js",
|
||||
"lib/internal/main/inspect.js",
|
||||
"lib/internal/main/mksnapshot.js",
|
||||
"lib/internal/main/print_help.js",
|
||||
"lib/internal/main/prof_process.js",
|
||||
"lib/internal/main/repl.js",
|
||||
"lib/internal/main/run_main_module.js",
|
||||
"lib/internal/main/test_runner.js",
|
||||
"lib/internal/main/worker_thread.js",
|
||||
"lib/internal/modules/package_json_reader.js",
|
||||
"lib/internal/modules/run_main.js",
|
||||
"lib/internal/modules/cjs/helpers.js",
|
||||
"lib/internal/modules/cjs/loader.js",
|
||||
"lib/internal/modules/esm/assert.js",
|
||||
"lib/internal/modules/esm/create_dynamic_module.js",
|
||||
"lib/internal/modules/esm/fetch_module.js",
|
||||
"lib/internal/modules/esm/formats.js",
|
||||
"lib/internal/modules/esm/get_format.js",
|
||||
"lib/internal/modules/esm/handle_process_exit.js",
|
||||
"lib/internal/modules/esm/initialize_import_meta.js",
|
||||
"lib/internal/modules/esm/load.js",
|
||||
"lib/internal/modules/esm/loader.js",
|
||||
"lib/internal/modules/esm/module_job.js",
|
||||
"lib/internal/modules/esm/module_map.js",
|
||||
"lib/internal/modules/esm/resolve.js",
|
||||
"lib/internal/modules/esm/translators.js",
|
||||
"lib/internal/perf/event_loop_delay.js",
|
||||
"lib/internal/perf/event_loop_utilization.js",
|
||||
"lib/internal/perf/nodetiming.js",
|
||||
"lib/internal/perf/observe.js",
|
||||
"lib/internal/perf/performance.js",
|
||||
"lib/internal/perf/performance_entry.js",
|
||||
"lib/internal/perf/resource_timing.js",
|
||||
"lib/internal/perf/timerify.js",
|
||||
"lib/internal/perf/usertiming.js",
|
||||
"lib/internal/perf/utils.js",
|
||||
"lib/internal/per_context/domexception.js",
|
||||
"lib/internal/per_context/messageport.js",
|
||||
"lib/internal/per_context/primordials.js",
|
||||
"lib/internal/policy/manifest.js",
|
||||
"lib/internal/policy/sri.js",
|
||||
"lib/internal/process/esm_loader.js",
|
||||
"lib/internal/process/execution.js",
|
||||
"lib/internal/process/per_thread.js",
|
||||
"lib/internal/process/policy.js",
|
||||
"lib/internal/process/promises.js",
|
||||
"lib/internal/process/report.js",
|
||||
"lib/internal/process/signal.js",
|
||||
"lib/internal/process/task_queues.js",
|
||||
"lib/internal/process/warning.js",
|
||||
"lib/internal/process/worker_thread_only.js",
|
||||
"lib/internal/readline/callbacks.js",
|
||||
"lib/internal/readline/emitKeypressEvents.js",
|
||||
"lib/internal/readline/interface.js",
|
||||
"lib/internal/readline/utils.js",
|
||||
"lib/internal/repl/await.js",
|
||||
"lib/internal/repl/history.js",
|
||||
"lib/internal/repl/utils.js",
|
||||
"lib/internal/source_map/prepare_stack_trace.js",
|
||||
"lib/internal/source_map/source_map.js",
|
||||
"lib/internal/source_map/source_map_cache.js",
|
||||
"lib/internal/streams/add-abort-signal.js",
|
||||
"lib/internal/streams/buffer_list.js",
|
||||
"lib/internal/streams/compose.js",
|
||||
"lib/internal/streams/destroy.js",
|
||||
"lib/internal/streams/duplex.js",
|
||||
"lib/internal/streams/duplexify.js",
|
||||
"lib/internal/streams/end-of-stream.js",
|
||||
"lib/internal/streams/from.js",
|
||||
"lib/internal/streams/lazy_transform.js",
|
||||
"lib/internal/streams/legacy.js",
|
||||
"lib/internal/streams/operators.js",
|
||||
"lib/internal/streams/passthrough.js",
|
||||
"lib/internal/streams/pipeline.js",
|
||||
"lib/internal/streams/readable.js",
|
||||
"lib/internal/streams/state.js",
|
||||
"lib/internal/streams/transform.js",
|
||||
"lib/internal/streams/utils.js",
|
||||
"lib/internal/streams/writable.js",
|
||||
"lib/internal/test/binding.js",
|
||||
"lib/internal/test/transfer.js",
|
||||
"lib/internal/test_runner/harness.js",
|
||||
"lib/internal/test_runner/tap_stream.js",
|
||||
"lib/internal/test_runner/test.js",
|
||||
"lib/internal/test_runner/utils.js",
|
||||
"lib/internal/tls/parse-cert-string.js",
|
||||
"lib/internal/tls/secure-context.js",
|
||||
"lib/internal/tls/secure-pair.js",
|
||||
"lib/internal/util/comparisons.js",
|
||||
"lib/internal/util/debuglog.js",
|
||||
"lib/internal/util/inspect.js",
|
||||
"lib/internal/util/inspector.js",
|
||||
"lib/internal/util/iterable_weak_map.js",
|
||||
"lib/internal/util/types.js",
|
||||
"lib/internal/util/parse_args/parse_args.js",
|
||||
"lib/internal/util/parse_args/utils.js",
|
||||
"lib/internal/v8/startup_snapshot.js",
|
||||
"lib/internal/vm/module.js",
|
||||
"lib/internal/webstreams/adapters.js",
|
||||
"lib/internal/webstreams/compression.js",
|
||||
"lib/internal/webstreams/encoding.js",
|
||||
"lib/internal/webstreams/queuingstrategies.js",
|
||||
"lib/internal/webstreams/readablestream.js",
|
||||
"lib/internal/webstreams/transfer.js",
|
||||
"lib/internal/webstreams/transformstream.js",
|
||||
"lib/internal/webstreams/util.js",
|
||||
"lib/internal/webstreams/writablestream.js",
|
||||
"lib/internal/worker/io.js",
|
||||
"lib/internal/worker/js_transferable.js",
|
||||
"lib/path/posix.js",
|
||||
"lib/path/win32.js",
|
||||
"lib/stream/consumers.js",
|
||||
"lib/stream/promises.js",
|
||||
"lib/stream/web.js",
|
||||
"lib/timers/promises.js",
|
||||
"lib/util/types.js"
|
||||
],
|
||||
"node_module_version": 93,
|
||||
"node_no_browser_globals": "false",
|
||||
"node_prefix": "/usr/local",
|
||||
"node_release_urlbase": "https://nodejs.org/download/release/",
|
||||
"node_shared": "false",
|
||||
"node_shared_brotli": "false",
|
||||
"node_shared_cares": "false",
|
||||
"node_shared_http_parser": "false",
|
||||
"node_shared_libuv": "false",
|
||||
"node_shared_nghttp2": "false",
|
||||
"node_shared_nghttp3": "false",
|
||||
"node_shared_ngtcp2": "false",
|
||||
"node_shared_openssl": "false",
|
||||
"node_shared_zlib": "false",
|
||||
"node_tag": "",
|
||||
"node_target_type": "executable",
|
||||
"node_use_bundled_v8": "true",
|
||||
"node_use_dtrace": "false",
|
||||
"node_use_etw": "true",
|
||||
"node_use_node_code_cache": "true",
|
||||
"node_use_node_snapshot": "true",
|
||||
"node_use_openssl": "true",
|
||||
"node_use_v8_platform": "true",
|
||||
"node_with_ltcg": "true",
|
||||
"node_without_node_options": "false",
|
||||
"openssl_fips": "",
|
||||
"openssl_is_fips": "false",
|
||||
"openssl_quic": "true",
|
||||
"ossfuzz": "false",
|
||||
"shlib_suffix": "so.93",
|
||||
"target_arch": "x64",
|
||||
"v8_enable_31bit_smis_on_64bit_arch": 0,
|
||||
"v8_enable_gdbjit": 0,
|
||||
"v8_enable_hugepage": 0,
|
||||
"v8_enable_i18n_support": 1,
|
||||
"v8_enable_inspector": 1,
|
||||
"v8_enable_lite_mode": 0,
|
||||
"v8_enable_object_print": 1,
|
||||
"v8_enable_pointer_compression": 0,
|
||||
"v8_enable_webassembly": 1,
|
||||
"v8_no_strict_aliasing": 1,
|
||||
"v8_optimized_debug": 1,
|
||||
"v8_promise_internal_field_count": 1,
|
||||
"v8_random_seed": 0,
|
||||
"v8_trace_maps": 0,
|
||||
"v8_use_siphash": 1,
|
||||
"want_separate_host_toolset": 0,
|
||||
"nodedir": "C:\\Users\\renha\\AppData\\Local\\node-gyp\\Cache\\16.17.0",
|
||||
"standalone_static_library": 1,
|
||||
"msbuild_path": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe",
|
||||
"cache": "C:\\Users\\renha\\AppData\\Local\\npm-cache",
|
||||
"globalconfig": "C:\\Users\\renha\\AppData\\Roaming\\npm\\etc\\npmrc",
|
||||
"global_prefix": "C:\\Users\\renha\\AppData\\Roaming\\npm",
|
||||
"init_module": "C:\\Users\\renha\\.npm-init.js",
|
||||
"local_prefix": "I:\\tlt-bus-map",
|
||||
"metrics_registry": "https://registry.npmjs.org/",
|
||||
"node_gyp": "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",
|
||||
"prefix": "C:\\Users\\renha\\AppData\\Roaming\\npm",
|
||||
"userconfig": "C:\\Users\\renha\\.npmrc",
|
||||
"user_agent": "npm/8.15.0 node/v16.17.0 win32 x64 workspaces/false"
|
||||
}
|
||||
}
|
160
node_modules/sleep/build/node_sleep.vcxproj
generated
vendored
Normal file
160
node_modules/sleep/build/node_sleep.vcxproj
generated
vendored
Normal file
@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{98C73D92-0D78-1630-2F95-F33FAFD12B38}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>node_sleep</RootNamespace>
|
||||
<IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename>
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Locals">
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props"/>
|
||||
<ImportGroup Label="ExtensionSettings"/>
|
||||
<ImportGroup Label="PropertySheets">
|
||||
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros"/>
|
||||
<PropertyGroup>
|
||||
<ExecutablePath>$(ExecutablePath);$(MSBuildProjectDirectory)\..\bin\;$(MSBuildProjectDirectory)\..\bin\</ExecutablePath>
|
||||
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
||||
<IntDir>$(Configuration)\obj\$(ProjectName)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.node</TargetExt>
|
||||
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.node</TargetExt>
|
||||
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.node</TargetExt>
|
||||
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.node</TargetExt>
|
||||
<TargetName>$(ProjectName)</TargetName>
|
||||
<TargetPath>$(OutDir)\$(ProjectName).node</TargetPath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\include\node;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\src;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\config;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\openssl\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\uv\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\zlib;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\v8\include;..\..\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<OmitFramePointers>false</OmitFramePointers>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_sleep;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<StringPooling>true</StringPooling>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWarningAsError>false</TreatWarningAsError>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
|
||||
</Lib>
|
||||
<Link>
|
||||
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\renha\\AppData\\Local\\node-gyp\\Cache\\16.17.0\\x64\\node.lib"</AdditionalDependencies>
|
||||
<AdditionalOptions>/LTCG:INCREMENTAL /ignore:4199 %(AdditionalOptions)</AdditionalOptions>
|
||||
<DelayLoadDLLs>node.exe;%(DelayLoadDLLs)</DelayLoadDLLs>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>$(OutDir)$(ProjectName).node</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetExt>.node</TargetExt>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
<ResourceCompile>
|
||||
<AdditionalIncludeDirectories>C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\include\node;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\src;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\config;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\openssl\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\uv\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\zlib;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\v8\include;..\..\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_sleep;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";DEBUG;_DEBUG;V8_ENABLE_CHECKS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\include\node;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\src;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\config;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\openssl\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\uv\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\zlib;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\v8\include;..\..\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4351;4355;4800;4251;4275;4244;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<Optimization>Full</Optimization>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_sleep;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<StringPooling>true</StringPooling>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TreatWarningAsError>false</TreatWarningAsError>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<AdditionalOptions>/LTCG:INCREMENTAL %(AdditionalOptions)</AdditionalOptions>
|
||||
</Lib>
|
||||
<Link>
|
||||
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;DelayImp.lib;"C:\\Users\\renha\\AppData\\Local\\node-gyp\\Cache\\16.17.0\\x64\\node.lib"</AdditionalDependencies>
|
||||
<AdditionalOptions>/LTCG:INCREMENTAL /ignore:4199 %(AdditionalOptions)</AdditionalOptions>
|
||||
<DelayLoadDLLs>node.exe;%(DelayLoadDLLs)</DelayLoadDLLs>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>$(OutDir)$(ProjectName).node</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetExt>.node</TargetExt>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
<ResourceCompile>
|
||||
<AdditionalIncludeDirectories>C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\include\node;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\src;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\config;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\openssl\openssl\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\uv\include;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\zlib;C:\Users\renha\AppData\Local\node-gyp\Cache\16.17.0\deps\v8\include;..\..\nan;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>NODE_GYP_MODULE_NAME=node_sleep;USING_UV_SHARED=1;USING_V8_SHARED=1;V8_DEPRECATION_WARNINGS=1;V8_DEPRECATION_WARNINGS;V8_IMMINENT_DEPRECATION_WARNINGS;_GLIBCXX_USE_CXX11_ABI=1;WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_HAS_EXCEPTIONS=0;OPENSSL_NO_PINSHARED;OPENSSL_THREADS;BUILDING_NODE_EXTENSION;HOST_BINARY="node.exe";%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\binding.gyp"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\sleep.h"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\module_init.cc">
|
||||
<ObjectFileName>$(IntDir)\module_init.obj</ObjectFileName>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sleep_cpp11.cc">
|
||||
<ObjectFileName>$(IntDir)\sleep_cpp11.obj</ObjectFileName>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sleep_posix.cc">
|
||||
<ObjectFileName>$(IntDir)\sleep_posix.obj</ObjectFileName>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sleep_win.cc">
|
||||
<ObjectFileName>$(IntDir)\sleep_win.obj</ObjectFileName>
|
||||
</ClCompile>
|
||||
<ClCompile Include="C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc"/>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets"/>
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets"/>
|
||||
<ImportGroup Label="ExtensionTargets"/>
|
||||
</Project>
|
70
node_modules/sleep/build/node_sleep.vcxproj.filters
generated
vendored
Normal file
70
node_modules/sleep/build/node_sleep.vcxproj.filters
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="..">
|
||||
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="..">
|
||||
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="..">
|
||||
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="..">
|
||||
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="..">
|
||||
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:">
|
||||
<UniqueIdentifier>{7B735499-E5DD-1C2B-6C26-70023832A1CF}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files">
|
||||
<UniqueIdentifier>{92EF4BA8-6BC2-65D1-451F-28EBD4AE726A}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files\nodejs">
|
||||
<UniqueIdentifier>{A3C8E949-BCF6-0C67-6656-340A2A097708}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files\nodejs\node_modules">
|
||||
<UniqueIdentifier>{56DF7A98-063D-FB9D-485C-089023B4C16A}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files\nodejs\node_modules\npm">
|
||||
<UniqueIdentifier>{741E0E76-39B2-B1AB-9FA1-F1A20B16F295}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files\nodejs\node_modules\npm\node_modules">
|
||||
<UniqueIdentifier>{56DF7A98-063D-FB9D-485C-089023B4C16A}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp">
|
||||
<UniqueIdentifier>{77348C0E-2034-7791-74D5-63C077DF5A3B}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src">
|
||||
<UniqueIdentifier>{8CDEE807-BC53-E450-C8B8-4DEBB66742D4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="..">
|
||||
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\module_init.cc">
|
||||
<Filter>..</Filter>
|
||||
</ClCompile>
|
||||
<ClInclude Include="..\sleep.h">
|
||||
<Filter>..</Filter>
|
||||
</ClInclude>
|
||||
<ClCompile Include="..\sleep_cpp11.cc">
|
||||
<Filter>..</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sleep_posix.cc">
|
||||
<Filter>..</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sleep_win.cc">
|
||||
<Filter>..</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc">
|
||||
<Filter>C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src</Filter>
|
||||
</ClCompile>
|
||||
<None Include="..\binding.gyp">
|
||||
<Filter>..</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
19
node_modules/sleep/index.js
generated
vendored
Normal file
19
node_modules/sleep/index.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
var sleep = require('./build/Release/node_sleep.node');
|
||||
|
||||
sleep.sleep = function(seconds) {
|
||||
if (seconds < 0 || seconds % 1 != 0) {
|
||||
throw new Error('Expected number of seconds');
|
||||
}
|
||||
sleep.usleep(seconds * 1000000);
|
||||
}
|
||||
|
||||
|
||||
sleep.msleep = function(miliseconds) {
|
||||
if (miliseconds < 0 || miliseconds % 1 != 0) {
|
||||
throw new Error('Expected number of miliseconds');
|
||||
}
|
||||
sleep.usleep(miliseconds * 1000);
|
||||
}
|
||||
|
||||
module.exports = sleep;
|
||||
|
24
node_modules/sleep/module_init.cc
generated
vendored
Normal file
24
node_modules/sleep/module_init.cc
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#include "sleep.h"
|
||||
|
||||
using v8::FunctionTemplate;
|
||||
using v8::String;
|
||||
|
||||
NAN_METHOD(MUSleep) {
|
||||
Nan::HandleScope scope;
|
||||
|
||||
if (info.Length() < 1 || !info[0]->IsUint32()) {
|
||||
Nan::ThrowError("Expected number of microseconds");
|
||||
return;
|
||||
}
|
||||
|
||||
node_usleep(Nan::To<uint32_t>(info[0]).FromJust());
|
||||
|
||||
info.GetReturnValue().SetUndefined();
|
||||
}
|
||||
|
||||
NAN_MODULE_INIT(init) {
|
||||
Nan::Set(target, Nan::New<String>("usleep").ToLocalChecked(),
|
||||
Nan::GetFunction(Nan::New<FunctionTemplate>(MUSleep)).ToLocalChecked());
|
||||
}
|
||||
|
||||
NODE_MODULE(node_sleep, init)
|
30
node_modules/sleep/package.json
generated
vendored
Normal file
30
node_modules/sleep/package.json
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "sleep",
|
||||
"version": "6.3.0",
|
||||
"main": "index.js",
|
||||
"description": "Add sleep() and usleep() to nodejs",
|
||||
"homepage": "http://github.com/erikdubbelboer/node-sleep",
|
||||
"author": "Erik Dubbelboer <erik@dubbelboer.com>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
},
|
||||
"keywords": [
|
||||
"sleep",
|
||||
"usleep"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/erikdubbelboer/node-sleep.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"nan": "^2.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "^8.0.1"
|
||||
},
|
||||
"gypfile": true
|
||||
}
|
8
node_modules/sleep/sleep.h
generated
vendored
Normal file
8
node_modules/sleep/sleep.h
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef SLEEP_H
|
||||
#define SLEEP_H
|
||||
|
||||
#include <nan.h>
|
||||
|
||||
void node_usleep(uint32_t usec);
|
||||
|
||||
#endif // SLEEP_H
|
20
node_modules/sleep/sleep_cpp11.cc
generated
vendored
Normal file
20
node_modules/sleep/sleep_cpp11.cc
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
#include "sleep.h"
|
||||
|
||||
#if NAN_HAS_CPLUSPLUS_11
|
||||
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
|
||||
void node_usleep(uint32_t usec) {
|
||||
auto end = std::chrono::steady_clock::now() + std::chrono::microseconds(usec);
|
||||
|
||||
while (true) {
|
||||
auto now = std::chrono::steady_clock::now();
|
||||
if (now >= end) {
|
||||
break;
|
||||
}
|
||||
std::this_thread::sleep_for(end - now);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
25
node_modules/sleep/sleep_posix.cc
generated
vendored
Normal file
25
node_modules/sleep/sleep_posix.cc
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
#include "sleep.h"
|
||||
|
||||
#if ( _POSIX_C_SOURCE >= 200112L ) && ( !NAN_HAS_CPLUSPLUS_11 )
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
void node_usleep(uint32_t usec) {
|
||||
useconds_t done;
|
||||
struct timeval start, end;
|
||||
|
||||
while (usec > 0) {
|
||||
gettimeofday(&start, NULL);
|
||||
usleep(usec);
|
||||
gettimeofday(&end, NULL);
|
||||
|
||||
done = (end.tv_sec - start.tv_sec) * 1000000 + (end.tv_usec - start.tv_usec);
|
||||
if (done > usec) {
|
||||
usec = 0;
|
||||
} else {
|
||||
usec -= done;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
19
node_modules/sleep/sleep_win.cc
generated
vendored
Normal file
19
node_modules/sleep/sleep_win.cc
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#include "sleep.h"
|
||||
|
||||
#if ( defined _WIN32 || defined _WIN64 ) && ( !NAN_HAS_CPLUSPLUS_11 )
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
void node_usleep(uint32_t usec) {
|
||||
LARGE_INTEGER li;
|
||||
li.QuadPart = -10LL * usec; // negative values for relative time
|
||||
|
||||
HANDLE timer = CreateWaitableTimer(NULL, TRUE, NULL);
|
||||
if(!timer) return;
|
||||
|
||||
SetWaitableTimer(timer, &li, 0, NULL, NULL, 0);
|
||||
WaitForSingleObject(timer, INFINITE);
|
||||
CloseHandle(timer);
|
||||
}
|
||||
#endif
|
||||
|
123
node_modules/sleep/test.js
generated
vendored
Normal file
123
node_modules/sleep/test.js
generated
vendored
Normal file
@ -0,0 +1,123 @@
|
||||
/* globals describe, it */
|
||||
var sleep = require('./');
|
||||
var assert = require('assert');
|
||||
var child_process = require('child_process');
|
||||
|
||||
function assertApproxEqual(val1, val2) {
|
||||
// We require accuracy to the nearest N millisecond.
|
||||
// Windows Sleep is not super accurate (depends on scheduling policy) so use a high value.
|
||||
var epsilon = 100;
|
||||
var diff = val1 - val2;
|
||||
if (diff > epsilon) {
|
||||
assert.fail('wait was too long: ' + diff + ' > ' + epsilon);
|
||||
} else if (diff < -epsilon) {
|
||||
assert.fail('wait was too long: ' + diff + ' < ' + -epsilon);
|
||||
}
|
||||
}
|
||||
|
||||
describe('sleep', function () {
|
||||
it('works for normal input', function () {
|
||||
var sleepTime = 1;
|
||||
var start = new Date();
|
||||
sleep.sleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime * 1000);
|
||||
});
|
||||
|
||||
it('works for zero', function () {
|
||||
var sleepTime = 0;
|
||||
var start = new Date();
|
||||
sleep.sleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime * 1000);
|
||||
});
|
||||
|
||||
it('does not allow negative numbers', function () {
|
||||
assert.throws(function () {
|
||||
sleep.sleep(-1);
|
||||
});
|
||||
});
|
||||
|
||||
it('works with child_process', function () {
|
||||
var sleepTime = 1;
|
||||
child_process.exec('echo', function (err, stdout, stderr) { });
|
||||
var start = new Date();
|
||||
sleep.sleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime * 1000);
|
||||
});
|
||||
});
|
||||
|
||||
describe('usleep', function () {
|
||||
it('works for values smaller than a second', function () {
|
||||
var sleepTime = 250;
|
||||
var start = new Date();
|
||||
sleep.usleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime / 1000);
|
||||
});
|
||||
|
||||
it('works for zero', function () {
|
||||
var sleepTime = 0;
|
||||
var start = new Date();
|
||||
sleep.usleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime / 1000);
|
||||
});
|
||||
|
||||
it('works for values larger than a second', function () {
|
||||
this.timeout(4000); // necessary for mocha to not complain
|
||||
var sleepTime = 3000000;
|
||||
var start = new Date();
|
||||
sleep.usleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime / 1000);
|
||||
});
|
||||
|
||||
it('does not allow negative numbers', function () {
|
||||
assert.throws(function () {
|
||||
sleep.usleep(-100);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('msleep', function () {
|
||||
it('works for normal input', function() {
|
||||
var sleepTime = 1;
|
||||
var start = new Date();
|
||||
sleep.msleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime);
|
||||
});
|
||||
|
||||
it('works for zero', function () {
|
||||
var sleepTime = 0;
|
||||
var start = new Date();
|
||||
sleep.msleep(sleepTime);
|
||||
var end = new Date();
|
||||
assertApproxEqual(end - start, sleepTime);
|
||||
});
|
||||
|
||||
it('does not allow negative numbers', function () {
|
||||
assert.throws(function () {
|
||||
sleep.msleep(-100);
|
||||
});
|
||||
});
|
||||
|
||||
it('does not allow decimal numbers', function () {
|
||||
assert.throws(function () {
|
||||
sleep.msleep(1.5);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('error', function () {
|
||||
it('should throw a valid error', function () {
|
||||
try {
|
||||
sleep.msleep(Infinity);
|
||||
}
|
||||
catch (e) {
|
||||
assert.equal(e.message, 'Expected number of miliseconds');
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user