waves_lib 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +22 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE.txt +19 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/js/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- data/js/node_modules/@protobufjs/aspromise/README.md +13 -0
- data/js/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- data/js/node_modules/@protobufjs/aspromise/index.js +52 -0
- data/js/node_modules/@protobufjs/aspromise/package.json +21 -0
- data/js/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- data/js/node_modules/@protobufjs/base64/LICENSE +26 -0
- data/js/node_modules/@protobufjs/base64/README.md +19 -0
- data/js/node_modules/@protobufjs/base64/index.d.ts +32 -0
- data/js/node_modules/@protobufjs/base64/index.js +139 -0
- data/js/node_modules/@protobufjs/base64/package.json +21 -0
- data/js/node_modules/@protobufjs/base64/tests/index.js +46 -0
- data/js/node_modules/@protobufjs/codegen/LICENSE +26 -0
- data/js/node_modules/@protobufjs/codegen/README.md +49 -0
- data/js/node_modules/@protobufjs/codegen/index.d.ts +31 -0
- data/js/node_modules/@protobufjs/codegen/index.js +99 -0
- data/js/node_modules/@protobufjs/codegen/package.json +13 -0
- data/js/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- data/js/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- data/js/node_modules/@protobufjs/eventemitter/README.md +22 -0
- data/js/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
- data/js/node_modules/@protobufjs/eventemitter/index.js +76 -0
- data/js/node_modules/@protobufjs/eventemitter/package.json +21 -0
- data/js/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
- data/js/node_modules/@protobufjs/fetch/LICENSE +26 -0
- data/js/node_modules/@protobufjs/fetch/README.md +13 -0
- data/js/node_modules/@protobufjs/fetch/index.d.ts +56 -0
- data/js/node_modules/@protobufjs/fetch/index.js +115 -0
- data/js/node_modules/@protobufjs/fetch/package.json +25 -0
- data/js/node_modules/@protobufjs/fetch/tests/index.js +16 -0
- data/js/node_modules/@protobufjs/float/LICENSE +26 -0
- data/js/node_modules/@protobufjs/float/README.md +102 -0
- data/js/node_modules/@protobufjs/float/bench/index.js +87 -0
- data/js/node_modules/@protobufjs/float/bench/suite.js +46 -0
- data/js/node_modules/@protobufjs/float/index.d.ts +83 -0
- data/js/node_modules/@protobufjs/float/index.js +335 -0
- data/js/node_modules/@protobufjs/float/package.json +26 -0
- data/js/node_modules/@protobufjs/float/tests/index.js +100 -0
- data/js/node_modules/@protobufjs/inquire/LICENSE +26 -0
- data/js/node_modules/@protobufjs/inquire/README.md +13 -0
- data/js/node_modules/@protobufjs/inquire/index.d.ts +9 -0
- data/js/node_modules/@protobufjs/inquire/index.js +17 -0
- data/js/node_modules/@protobufjs/inquire/package.json +21 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/index.js +20 -0
- data/js/node_modules/@protobufjs/path/LICENSE +26 -0
- data/js/node_modules/@protobufjs/path/README.md +19 -0
- data/js/node_modules/@protobufjs/path/index.d.ts +22 -0
- data/js/node_modules/@protobufjs/path/index.js +65 -0
- data/js/node_modules/@protobufjs/path/package.json +21 -0
- data/js/node_modules/@protobufjs/path/tests/index.js +60 -0
- data/js/node_modules/@protobufjs/pool/LICENSE +26 -0
- data/js/node_modules/@protobufjs/pool/README.md +13 -0
- data/js/node_modules/@protobufjs/pool/index.d.ts +32 -0
- data/js/node_modules/@protobufjs/pool/index.js +48 -0
- data/js/node_modules/@protobufjs/pool/package.json +21 -0
- data/js/node_modules/@protobufjs/pool/tests/index.js +33 -0
- data/js/node_modules/@protobufjs/utf8/LICENSE +26 -0
- data/js/node_modules/@protobufjs/utf8/README.md +20 -0
- data/js/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- data/js/node_modules/@protobufjs/utf8/index.js +105 -0
- data/js/node_modules/@protobufjs/utf8/package.json +21 -0
- data/js/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- data/js/node_modules/@protobufjs/utf8/tests/index.js +57 -0
- data/js/node_modules/@types/base64-js/LICENSE +21 -0
- data/js/node_modules/@types/base64-js/README.md +16 -0
- data/js/node_modules/@types/base64-js/index.d.ts +23 -0
- data/js/node_modules/@types/base64-js/package.json +29 -0
- data/js/node_modules/@types/long/LICENSE +21 -0
- data/js/node_modules/@types/long/README.md +16 -0
- data/js/node_modules/@types/long/index.d.ts +389 -0
- data/js/node_modules/@types/long/package.json +25 -0
- data/js/node_modules/@types/node/LICENSE +21 -0
- data/js/node_modules/@types/node/README.md +16 -0
- data/js/node_modules/@types/node/assert/strict.d.ts +8 -0
- data/js/node_modules/@types/node/assert.d.ts +972 -0
- data/js/node_modules/@types/node/async_hooks.d.ts +530 -0
- data/js/node_modules/@types/node/buffer.d.ts +2354 -0
- data/js/node_modules/@types/node/child_process.d.ts +1395 -0
- data/js/node_modules/@types/node/cluster.d.ts +414 -0
- data/js/node_modules/@types/node/console.d.ts +412 -0
- data/js/node_modules/@types/node/constants.d.ts +18 -0
- data/js/node_modules/@types/node/crypto.d.ts +3978 -0
- data/js/node_modules/@types/node/dgram.d.ts +545 -0
- data/js/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- data/js/node_modules/@types/node/dns/promises.d.ts +414 -0
- data/js/node_modules/@types/node/dns.d.ts +668 -0
- data/js/node_modules/@types/node/dom-events.d.ts +126 -0
- data/js/node_modules/@types/node/domain.d.ts +170 -0
- data/js/node_modules/@types/node/events.d.ts +724 -0
- data/js/node_modules/@types/node/fs/promises.d.ts +1190 -0
- data/js/node_modules/@types/node/fs.d.ts +4044 -0
- data/js/node_modules/@types/node/globals.d.ts +303 -0
- data/js/node_modules/@types/node/globals.global.d.ts +1 -0
- data/js/node_modules/@types/node/http.d.ts +1724 -0
- data/js/node_modules/@types/node/http2.d.ts +2129 -0
- data/js/node_modules/@types/node/https.d.ts +441 -0
- data/js/node_modules/@types/node/index.d.ts +134 -0
- data/js/node_modules/@types/node/inspector.d.ts +2748 -0
- data/js/node_modules/@types/node/module.d.ts +129 -0
- data/js/node_modules/@types/node/net.d.ts +888 -0
- data/js/node_modules/@types/node/os.d.ts +477 -0
- data/js/node_modules/@types/node/package.json +237 -0
- data/js/node_modules/@types/node/path.d.ts +191 -0
- data/js/node_modules/@types/node/perf_hooks.d.ts +638 -0
- data/js/node_modules/@types/node/process.d.ts +1494 -0
- data/js/node_modules/@types/node/punycode.d.ts +117 -0
- data/js/node_modules/@types/node/querystring.d.ts +131 -0
- data/js/node_modules/@types/node/readline/promises.d.ts +145 -0
- data/js/node_modules/@types/node/readline.d.ts +526 -0
- data/js/node_modules/@types/node/repl.d.ts +424 -0
- data/js/node_modules/@types/node/stream/consumers.d.ts +12 -0
- data/js/node_modules/@types/node/stream/promises.d.ts +42 -0
- data/js/node_modules/@types/node/stream/web.d.ts +330 -0
- data/js/node_modules/@types/node/stream.d.ts +1421 -0
- data/js/node_modules/@types/node/string_decoder.d.ts +67 -0
- data/js/node_modules/@types/node/test.d.ts +1383 -0
- data/js/node_modules/@types/node/timers/promises.d.ts +93 -0
- data/js/node_modules/@types/node/timers.d.ts +215 -0
- data/js/node_modules/@types/node/tls.d.ts +1130 -0
- data/js/node_modules/@types/node/trace_events.d.ts +182 -0
- data/js/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- data/js/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- data/js/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- data/js/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
- data/js/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- data/js/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- data/js/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- data/js/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- data/js/node_modules/@types/node/ts4.8/crypto.d.ts +3977 -0
- data/js/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- data/js/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- data/js/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- data/js/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- data/js/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- data/js/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- data/js/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- data/js/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- data/js/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
- data/js/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- data/js/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- data/js/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- data/js/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- data/js/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- data/js/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- data/js/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- data/js/node_modules/@types/node/ts4.8/module.d.ts +129 -0
- data/js/node_modules/@types/node/ts4.8/net.d.ts +888 -0
- data/js/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- data/js/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- data/js/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- data/js/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
- data/js/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- data/js/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- data/js/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- data/js/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- data/js/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- data/js/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- data/js/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- data/js/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- data/js/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- data/js/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- data/js/node_modules/@types/node/ts4.8/test.d.ts +1365 -0
- data/js/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- data/js/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- data/js/node_modules/@types/node/ts4.8/tls.d.ts +1130 -0
- data/js/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- data/js/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- data/js/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- data/js/node_modules/@types/node/ts4.8/util.d.ts +2116 -0
- data/js/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- data/js/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- data/js/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- data/js/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- data/js/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- data/js/node_modules/@types/node/tty.d.ts +208 -0
- data/js/node_modules/@types/node/url.d.ts +901 -0
- data/js/node_modules/@types/node/util.d.ts +2116 -0
- data/js/node_modules/@types/node/v8.d.ts +635 -0
- data/js/node_modules/@types/node/vm.d.ts +894 -0
- data/js/node_modules/@types/node/wasi.d.ts +152 -0
- data/js/node_modules/@types/node/worker_threads.d.ts +693 -0
- data/js/node_modules/@types/node/zlib.d.ts +517 -0
- data/js/node_modules/@types/node-fetch/LICENSE +21 -0
- data/js/node_modules/@types/node-fetch/README.md +16 -0
- data/js/node_modules/@types/node-fetch/externals.d.ts +24 -0
- data/js/node_modules/@types/node-fetch/index.d.ts +224 -0
- data/js/node_modules/@types/node-fetch/package.json +83 -0
- data/js/node_modules/@waves/bignumber/dist/BigNumber.d.ts +74 -0
- data/js/node_modules/@waves/bignumber/dist/BigNumber.js +252 -0
- data/js/node_modules/@waves/bignumber/dist/BigNumber.js.map +1 -0
- data/js/node_modules/@waves/bignumber/dist/Config.d.ts +22 -0
- data/js/node_modules/@waves/bignumber/dist/Config.js +43 -0
- data/js/node_modules/@waves/bignumber/dist/Config.js.map +1 -0
- data/js/node_modules/@waves/bignumber/dist/bignumber.umd.js +3194 -0
- data/js/node_modules/@waves/bignumber/dist/bignumber.umd.min.js +1 -0
- data/js/node_modules/@waves/bignumber/dist/index.d.ts +3 -0
- data/js/node_modules/@waves/bignumber/dist/index.js +9 -0
- data/js/node_modules/@waves/bignumber/dist/index.js.map +1 -0
- data/js/node_modules/@waves/bignumber/package.json +64 -0
- data/js/node_modules/@waves/bignumber/readme.md +285 -0
- data/js/node_modules/@waves/marshall/LICENSE +9 -0
- data/js/node_modules/@waves/marshall/README.md +39 -0
- data/js/node_modules/@waves/marshall/dist/index.d.ts +26 -0
- data/js/node_modules/@waves/marshall/dist/index.js +45 -0
- data/js/node_modules/@waves/marshall/dist/index.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/jsonMethods.d.ts +36 -0
- data/js/node_modules/@waves/marshall/dist/jsonMethods.js +194 -0
- data/js/node_modules/@waves/marshall/dist/jsonMethods.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.d.ts +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js +35 -0
- data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/base58.d.ts +5 -0
- data/js/node_modules/@waves/marshall/dist/libs/base58.js +66 -0
- data/js/node_modules/@waves/marshall/dist/libs/base58.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/utils.d.ts +2 -0
- data/js/node_modules/@waves/marshall/dist/libs/utils.js +6 -0
- data/js/node_modules/@waves/marshall/dist/libs/utils.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/min/waves-marshall.min.js +1 -0
- data/js/node_modules/@waves/marshall/dist/parse.d.ts +21 -0
- data/js/node_modules/@waves/marshall/dist/parse.js +142 -0
- data/js/node_modules/@waves/marshall/dist/parse.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/parsePrimitives.d.ts +57 -0
- data/js/node_modules/@waves/marshall/dist/parsePrimitives.js +96 -0
- data/js/node_modules/@waves/marshall/dist/parsePrimitives.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/schemaTypes.d.ts +62 -0
- data/js/node_modules/@waves/marshall/dist/schemaTypes.js +41 -0
- data/js/node_modules/@waves/marshall/dist/schemaTypes.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/schemas.d.ts +128 -0
- data/js/node_modules/@waves/marshall/dist/schemas.js +542 -0
- data/js/node_modules/@waves/marshall/dist/schemas.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/serialize.d.ts +11 -0
- data/js/node_modules/@waves/marshall/dist/serialize.js +102 -0
- data/js/node_modules/@waves/marshall/dist/serialize.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/serializePrimitives.d.ts +21 -0
- data/js/node_modules/@waves/marshall/dist/serializePrimitives.js +63 -0
- data/js/node_modules/@waves/marshall/dist/serializePrimitives.js.map +1 -0
- data/js/node_modules/@waves/marshall/package.json +45 -0
- data/js/node_modules/@waves/marshall/src/index.ts +51 -0
- data/js/node_modules/@waves/marshall/src/jsonMethods.ts +231 -0
- data/js/node_modules/@waves/marshall/src/libs/Utf8ArrayToStr.ts +35 -0
- data/js/node_modules/@waves/marshall/src/libs/base58.ts +88 -0
- data/js/node_modules/@waves/marshall/src/libs/utils.ts +6 -0
- data/js/node_modules/@waves/marshall/src/parse.ts +157 -0
- data/js/node_modules/@waves/marshall/src/parsePrimitives.ts +118 -0
- data/js/node_modules/@waves/marshall/src/schemaTypes.ts +91 -0
- data/js/node_modules/@waves/marshall/src/schemas.ts +630 -0
- data/js/node_modules/@waves/marshall/src/serialize.ts +110 -0
- data/js/node_modules/@waves/marshall/src/serializePrimitives.ts +80 -0
- data/js/node_modules/@waves/node-api-js/README.md +2 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js +20 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.d.ts +81 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js +174 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js +22 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.d.ts +79 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js +172 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.d.ts +131 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js +210 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.d.ts +39 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js +37 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.d.ts +189 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js +245 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js +15 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.d.ts +22 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js +42 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.d.ts +11 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js +20 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.d.ts +46 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js +60 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.d.ts +73 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js +193 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.d.ts +110 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js +211 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.d.ts +5 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js +7 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/constants.d.ts +40 -0
- data/js/node_modules/@waves/node-api-js/cjs/constants.js +43 -0
- data/js/node_modules/@waves/node-api-js/cjs/constants.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/create.d.ts +1240 -0
- data/js/node_modules/@waves/node-api-js/cjs/create.js +119 -0
- data/js/node_modules/@waves/node-api-js/cjs/create.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/index.d.ts +9 -0
- data/js/node_modules/@waves/node-api-js/cjs/index.js +18 -0
- data/js/node_modules/@waves/node-api-js/cjs/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/interface.d.ts +44 -0
- data/js/node_modules/@waves/node-api-js/cjs/interface.js +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/interface.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js +30 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js +47 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js +48 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js +14 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js +13 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.d.ts +24 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js +168 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js +12 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js +54 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js +11 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js +65 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/parse.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js +8 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/query.d.ts +4 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/query.js +41 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/query.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/request.d.ts +64 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/request.js +42 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/request.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js +7 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.d.ts +14 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js +60 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js +11 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.d.ts +0 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js +2 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.d.ts +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js +42 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/utils.d.ts +32 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js +118 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/dist/0.node-api.js +467 -0
- data/js/node_modules/@waves/node-api-js/dist/node-api.js +30544 -0
- data/js/node_modules/@waves/node-api-js/dist/node-api.min.js +26 -0
- data/js/node_modules/@waves/node-api-js/dist/node-api.min.js.LICENSE.txt +17 -0
- data/js/node_modules/@waves/node-api-js/dist/node_fs-node_path.node-api.js +23 -0
- data/js/node_modules/@waves/node-api-js/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js +13 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.d.ts +81 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js +111 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js +14 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.d.ts +79 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js +103 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.d.ts +131 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js +179 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.d.ts +39 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js +27 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.d.ts +189 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js +201 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js +8 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.d.ts +22 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js +22 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/node/index.d.ts +11 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js +10 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.d.ts +46 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js +46 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js +13 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.d.ts +73 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js +137 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.d.ts +110 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js +193 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.d.ts +5 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/constants.d.ts +40 -0
- data/js/node_modules/@waves/node-api-js/es/constants.js +40 -0
- data/js/node_modules/@waves/node-api-js/es/constants.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/create.d.ts +1240 -0
- data/js/node_modules/@waves/node-api-js/es/create.js +93 -0
- data/js/node_modules/@waves/node-api-js/es/create.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/index.d.ts +9 -0
- data/js/node_modules/@waves/node-api-js/es/index.js +9 -0
- data/js/node_modules/@waves/node-api-js/es/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/interface.d.ts +44 -0
- data/js/node_modules/@waves/node-api-js/es/interface.js +3 -0
- data/js/node_modules/@waves/node-api-js/es/interface.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.d.ts +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js +27 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js +31 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.d.ts +2 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js +24 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js +8 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.d.ts +24 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js +134 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js +9 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js +51 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js +5 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js +36 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/parse.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/parse.js +5 -0
- data/js/node_modules/@waves/node-api-js/es/tools/parse.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/query.d.ts +4 -0
- data/js/node_modules/@waves/node-api-js/es/tools/query.js +12 -0
- data/js/node_modules/@waves/node-api-js/es/tools/query.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/request.d.ts +64 -0
- data/js/node_modules/@waves/node-api-js/es/tools/request.js +22 -0
- data/js/node_modules/@waves/node-api-js/es/tools/request.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/resolve.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/resolve.js +4 -0
- data/js/node_modules/@waves/node-api-js/es/tools/resolve.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/stringify.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/stringify.js +18 -0
- data/js/node_modules/@waves/node-api-js/es/tools/stringify.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.d.ts +14 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js +43 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js +8 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.d.ts +0 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js +2 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.d.ts +10 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js +39 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/utils.d.ts +32 -0
- data/js/node_modules/@waves/node-api-js/es/tools/utils.js +73 -0
- data/js/node_modules/@waves/node-api-js/es/tools/utils.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/package.json +66 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/clover.xml +225 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/coverage-final.json +2 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/base.css +212 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/index.html +93 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/parse-json-bignumber.ts.html +1598 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.css +1 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.js +1 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sorter.js +158 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov.info +415 -0
- data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.d.ts +11 -0
- data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.js +412 -0
- data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.min.js +1 -0
- data/js/node_modules/@waves/parse-json-bignumber/package.json +40 -0
- data/js/node_modules/@waves/parse-json-bignumber/src/parse-json-bignumber.ts +511 -0
- data/js/node_modules/@waves/parse-json-bignumber/test/index.ts +130 -0
- data/js/node_modules/@waves/parse-json-bignumber/test/tsconfig.json +14 -0
- data/js/node_modules/@waves/parse-json-bignumber/tsconfig.json +15 -0
- data/js/node_modules/@waves/protobuf-serialization/README.MD +116 -0
- data/js/node_modules/@waves/protobuf-serialization/dist/index.d.ts +2005 -0
- data/js/node_modules/@waves/protobuf-serialization/dist/index.js +6636 -0
- data/js/node_modules/@waves/protobuf-serialization/package.json +30 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/amount.proto +10 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/block.proto +40 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/events.proto +213 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/grpc/blockchain_updates.proto +42 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/invoke_script_result.proto +98 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/lang/dapp_meta.proto +21 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/accounts_api.proto +68 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/assets_api.proto +41 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blockchain_api.proto +54 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blocks_api.proto +41 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/transactions_api.proto +73 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/order.proto +43 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/recipient.proto +13 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/transaction.proto +156 -0
- data/js/node_modules/@waves/ts-lib-crypto/README.md +492 -0
- data/js/node_modules/@waves/ts-lib-crypto/bytes.d.ts +10 -0
- data/js/node_modules/@waves/ts-lib-crypto/bytes.js +21 -0
- data/js/node_modules/@waves/ts-lib-crypto/bytes.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js +27 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/param.d.ts +3 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js +24 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.d.ts +11 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js +65 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js +58 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.d.ts +3 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js +39 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.d.ts +13 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js +117 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.d.ts +6 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js +89 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js +39 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.d.ts +98 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js +9 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js +51 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/random.d.ts +4 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js +51 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js +159 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.d.ts +9 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js +62 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.d.ts +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js +189 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.d.ts +2 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js +16 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/util.d.ts +3 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js +9 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js +49 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.d.ts +5 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js +16 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.d.ts +6 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js +18 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/index.d.ts +10 -0
- data/js/node_modules/@waves/ts-lib-crypto/index.js +21 -0
- data/js/node_modules/@waves/ts-lib-crypto/index.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.d.ts +2 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js +61 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/axlsign.js +1374 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/base58.d.ts +5 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js +66 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/blake2b.js +308 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/sha3.js +441 -0
- data/js/node_modules/@waves/ts-lib-crypto/min/waves-lib-crypto.js +33 -0
- data/js/node_modules/@waves/ts-lib-crypto/package.json +31 -0
- data/js/node_modules/@waves/ts-types/dist/src/common.d.ts +59 -0
- data/js/node_modules/@waves/ts-types/dist/src/common.js +53 -0
- data/js/node_modules/@waves/ts-types/dist/src/exchange.d.ts +47 -0
- data/js/node_modules/@waves/ts-types/dist/src/exchange.js +2 -0
- data/js/node_modules/@waves/ts-types/dist/src/index.d.ts +52 -0
- data/js/node_modules/@waves/ts-types/dist/src/index.js +63 -0
- data/js/node_modules/@waves/ts-types/dist/src/invoke.d.ts +22 -0
- data/js/node_modules/@waves/ts-types/dist/src/invoke.js +2 -0
- data/js/node_modules/@waves/ts-types/dist/src/network.d.ts +6 -0
- data/js/node_modules/@waves/ts-types/dist/src/network.js +10 -0
- data/js/node_modules/@waves/ts-types/dist/src/parts.d.ts +159 -0
- data/js/node_modules/@waves/ts-types/dist/src/parts.js +2 -0
- data/js/node_modules/@waves/ts-types/dist/transactions/index.d.ts +363 -0
- data/js/node_modules/@waves/ts-types/dist/transactions/index.js +3 -0
- data/js/node_modules/@waves/ts-types/index.ts +1 -0
- data/js/node_modules/@waves/ts-types/package.json +41 -0
- data/js/node_modules/@waves/ts-types/src/index.ts +57 -0
- data/js/node_modules/@waves/ts-types/src/parts.ts +247 -0
- data/js/node_modules/@waves/ts-types/transactions/index.ts +789 -0
- data/js/node_modules/@waves/ts-types/tsconfig.json +16 -0
- data/js/node_modules/@waves/waves-transactions/README.md +432 -0
- data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.d.ts +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js +22 -0
- data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/general.d.ts +68 -0
- data/js/node_modules/@waves/waves-transactions/dist/general.js +135 -0
- data/js/node_modules/@waves/waves-transactions/dist/general.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/generic.d.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/dist/generic.js +88 -0
- data/js/node_modules/@waves/waves-transactions/dist/generic.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/index.d.ts +37 -0
- data/js/node_modules/@waves/waves-transactions/dist/index.js +98 -0
- data/js/node_modules/@waves/waves-transactions/dist/index.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/make-tx.d.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/dist/make-tx.js +106 -0
- data/js/node_modules/@waves/waves-transactions/dist/make-tx.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/min/waves-transactions.min.js +26 -0
- data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.d.ts +116 -0
- data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js +277 -0
- data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.d.ts +62 -0
- data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js +514 -0
- data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/auth.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js +31 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js +29 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.d.ts +40 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js +37 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/order.d.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/order.js +62 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js +31 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.d.ts +21 -0
- data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js +85 -0
- data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js +34 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/data.d.ts +5 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js +112 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js +39 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.d.ts +0 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js +52 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js +43 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js +42 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js +39 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js +36 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js +37 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js +38 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js +38 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions.d.ts +277 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions.js +3 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/types.d.ts +11 -0
- data/js/node_modules/@waves/waves-transactions/dist/types.js +6 -0
- data/js/node_modules/@waves/waves-transactions/dist/types.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/alias.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/auth.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js +10 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/burn.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js +12 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js +16 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/data.d.ts +2 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/data.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js +22 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/index.d.ts +24 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/index.js +60 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/index.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.d.ts +0 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js +33 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js +20 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/issue.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js +22 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/lease.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/order.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/order.js +34 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js +19 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js +20 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/validators.d.ts +52 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js +160 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js +10 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/package.json +83 -0
- data/js/node_modules/@waves/waves-transactions/src/defaultVersions.ts +18 -0
- data/js/node_modules/@waves/waves-transactions/src/general.ts +165 -0
- data/js/node_modules/@waves/waves-transactions/src/generic.ts +88 -0
- data/js/node_modules/@waves/waves-transactions/src/index.ts +87 -0
- data/js/node_modules/@waves/waves-transactions/src/make-tx.ts +179 -0
- data/js/node_modules/@waves/waves-transactions/src/nodeInteraction.ts +297 -0
- data/js/node_modules/@waves/waves-transactions/src/proto-serialize.ts +571 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/auth.ts +42 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/cancel-order.ts +37 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/custom-data.ts +73 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/order.ts +121 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/wavesAuth.ts +40 -0
- data/js/node_modules/@waves/waves-transactions/src/seedUtils/index.ts +124 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/alias.ts +46 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/burn.ts +45 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/cancel-lease.ts +44 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/data.ts +122 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/exchange.ts +47 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-expression.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-script.ts +54 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/issue.ts +52 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/lease.ts +45 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/mass-transfer.ts +55 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/reissue.ts +46 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/set-asset-script.ts +57 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/set-script.ts +54 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/sponsorship.ts +45 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/transfer.ts +55 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/update-asset-info.ts +44 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions.ts +352 -0
- data/js/node_modules/@waves/waves-transactions/src/types.ts +12 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/alias.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/auth.ts +14 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/burn.ts +29 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/cancel-lease.ts +27 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/cancel-order.ts +17 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/custom-data.ts +40 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/data.ts +33 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/exchange.ts +36 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/index.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/invoke-expression.ts +31 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/invoke-script.ts +64 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/issue.ts +41 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/lease.ts +29 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/mass-transfer.ts +47 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/order.ts +68 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/reissue.ts +31 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/set-asset-script.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/set-script.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/sponsorship.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/transfer.ts +32 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/update-asset-info.ts +32 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/validators.ts +306 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/wavesAuth.ts +15 -0
- data/js/node_modules/asynckit/LICENSE +21 -0
- data/js/node_modules/asynckit/README.md +233 -0
- data/js/node_modules/asynckit/bench.js +76 -0
- data/js/node_modules/asynckit/index.js +6 -0
- data/js/node_modules/asynckit/lib/abort.js +29 -0
- data/js/node_modules/asynckit/lib/async.js +34 -0
- data/js/node_modules/asynckit/lib/defer.js +26 -0
- data/js/node_modules/asynckit/lib/iterate.js +75 -0
- data/js/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- data/js/node_modules/asynckit/lib/readable_parallel.js +25 -0
- data/js/node_modules/asynckit/lib/readable_serial.js +25 -0
- data/js/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- data/js/node_modules/asynckit/lib/state.js +37 -0
- data/js/node_modules/asynckit/lib/streamify.js +141 -0
- data/js/node_modules/asynckit/lib/terminator.js +29 -0
- data/js/node_modules/asynckit/package.json +63 -0
- data/js/node_modules/asynckit/parallel.js +43 -0
- data/js/node_modules/asynckit/serial.js +17 -0
- data/js/node_modules/asynckit/serialOrdered.js +75 -0
- data/js/node_modules/asynckit/stream.js +21 -0
- data/js/node_modules/axios/CHANGELOG.md +413 -0
- data/js/node_modules/axios/LICENSE +19 -0
- data/js/node_modules/axios/README.md +709 -0
- data/js/node_modules/axios/UPGRADE_GUIDE.md +162 -0
- data/js/node_modules/axios/dist/axios.js +1715 -0
- data/js/node_modules/axios/dist/axios.map +1 -0
- data/js/node_modules/axios/dist/axios.min.js +3 -0
- data/js/node_modules/axios/dist/axios.min.map +1 -0
- data/js/node_modules/axios/index.d.ts +157 -0
- data/js/node_modules/axios/index.js +1 -0
- data/js/node_modules/axios/lib/adapters/README.md +37 -0
- data/js/node_modules/axios/lib/adapters/http.js +279 -0
- data/js/node_modules/axios/lib/adapters/xhr.js +180 -0
- data/js/node_modules/axios/lib/axios.js +53 -0
- data/js/node_modules/axios/lib/cancel/Cancel.js +19 -0
- data/js/node_modules/axios/lib/cancel/CancelToken.js +57 -0
- data/js/node_modules/axios/lib/cancel/isCancel.js +5 -0
- data/js/node_modules/axios/lib/core/Axios.js +94 -0
- data/js/node_modules/axios/lib/core/InterceptorManager.js +52 -0
- data/js/node_modules/axios/lib/core/README.md +7 -0
- data/js/node_modules/axios/lib/core/buildFullPath.js +20 -0
- data/js/node_modules/axios/lib/core/createError.js +18 -0
- data/js/node_modules/axios/lib/core/dispatchRequest.js +79 -0
- data/js/node_modules/axios/lib/core/enhanceError.js +42 -0
- data/js/node_modules/axios/lib/core/mergeConfig.js +73 -0
- data/js/node_modules/axios/lib/core/settle.js +25 -0
- data/js/node_modules/axios/lib/core/transformData.js +20 -0
- data/js/node_modules/axios/lib/defaults.js +97 -0
- data/js/node_modules/axios/lib/helpers/README.md +7 -0
- data/js/node_modules/axios/lib/helpers/bind.js +11 -0
- data/js/node_modules/axios/lib/helpers/buildURL.js +71 -0
- data/js/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- data/js/node_modules/axios/lib/helpers/cookies.js +53 -0
- data/js/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- data/js/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- data/js/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- data/js/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- data/js/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- data/js/node_modules/axios/lib/helpers/spread.js +27 -0
- data/js/node_modules/axios/lib/utils.js +344 -0
- data/js/node_modules/axios/package.json +84 -0
- data/js/node_modules/base64-js/LICENSE +21 -0
- data/js/node_modules/base64-js/README.md +34 -0
- data/js/node_modules/base64-js/base64js.min.js +1 -0
- data/js/node_modules/base64-js/index.d.ts +3 -0
- data/js/node_modules/base64-js/index.js +150 -0
- data/js/node_modules/base64-js/package.json +47 -0
- data/js/node_modules/bignumber.js/CHANGELOG.md +290 -0
- data/js/node_modules/bignumber.js/LICENCE.md +26 -0
- data/js/node_modules/bignumber.js/README.md +286 -0
- data/js/node_modules/bignumber.js/bignumber.d.ts +1831 -0
- data/js/node_modules/bignumber.js/bignumber.js +2926 -0
- data/js/node_modules/bignumber.js/bignumber.mjs +2889 -0
- data/js/node_modules/bignumber.js/doc/API.html +2249 -0
- data/js/node_modules/bignumber.js/package.json +50 -0
- data/js/node_modules/combined-stream/License +19 -0
- data/js/node_modules/combined-stream/Readme.md +138 -0
- data/js/node_modules/combined-stream/lib/combined_stream.js +208 -0
- data/js/node_modules/combined-stream/package.json +25 -0
- data/js/node_modules/combined-stream/yarn.lock +17 -0
- data/js/node_modules/debug/CHANGELOG.md +395 -0
- data/js/node_modules/debug/LICENSE +19 -0
- data/js/node_modules/debug/Makefile +58 -0
- data/js/node_modules/debug/README.md +368 -0
- data/js/node_modules/debug/karma.conf.js +70 -0
- data/js/node_modules/debug/node.js +1 -0
- data/js/node_modules/debug/package.json +43 -0
- data/js/node_modules/debug/src/browser.js +195 -0
- data/js/node_modules/debug/src/debug.js +225 -0
- data/js/node_modules/debug/src/index.js +10 -0
- data/js/node_modules/debug/src/node.js +186 -0
- data/js/node_modules/delayed-stream/License +19 -0
- data/js/node_modules/delayed-stream/Makefile +7 -0
- data/js/node_modules/delayed-stream/Readme.md +141 -0
- data/js/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- data/js/node_modules/delayed-stream/package.json +27 -0
- data/js/node_modules/follow-redirects/LICENSE +18 -0
- data/js/node_modules/follow-redirects/README.md +155 -0
- data/js/node_modules/follow-redirects/http.js +1 -0
- data/js/node_modules/follow-redirects/https.js +1 -0
- data/js/node_modules/follow-redirects/index.js +322 -0
- data/js/node_modules/follow-redirects/package.json +60 -0
- data/js/node_modules/form-data/License +19 -0
- data/js/node_modules/form-data/README.md.bak +356 -0
- data/js/node_modules/form-data/Readme.md +356 -0
- data/js/node_modules/form-data/index.d.ts +62 -0
- data/js/node_modules/form-data/lib/browser.js +2 -0
- data/js/node_modules/form-data/lib/form_data.js +498 -0
- data/js/node_modules/form-data/lib/populate.js +10 -0
- data/js/node_modules/form-data/package.json +68 -0
- data/js/node_modules/js-sha3/CHANGELOG.md +106 -0
- data/js/node_modules/js-sha3/LICENSE.txt +20 -0
- data/js/node_modules/js-sha3/README.md +241 -0
- data/js/node_modules/js-sha3/build/sha3.min.js +9 -0
- data/js/node_modules/js-sha3/index.d.ts +317 -0
- data/js/node_modules/js-sha3/package.json +45 -0
- data/js/node_modules/js-sha3/src/sha3.js +656 -0
- data/js/node_modules/long/LICENSE +202 -0
- data/js/node_modules/long/README.md +246 -0
- data/js/node_modules/long/dist/long.js +2 -0
- data/js/node_modules/long/dist/long.js.map +1 -0
- data/js/node_modules/long/index.js +1 -0
- data/js/node_modules/long/package.json +34 -0
- data/js/node_modules/long/src/long.js +1323 -0
- data/js/node_modules/mime-db/HISTORY.md +507 -0
- data/js/node_modules/mime-db/LICENSE +23 -0
- data/js/node_modules/mime-db/README.md +100 -0
- data/js/node_modules/mime-db/db.json +8519 -0
- data/js/node_modules/mime-db/index.js +12 -0
- data/js/node_modules/mime-db/package.json +60 -0
- data/js/node_modules/mime-types/HISTORY.md +397 -0
- data/js/node_modules/mime-types/LICENSE +23 -0
- data/js/node_modules/mime-types/README.md +113 -0
- data/js/node_modules/mime-types/index.js +188 -0
- data/js/node_modules/mime-types/package.json +44 -0
- data/js/node_modules/ms/index.js +152 -0
- data/js/node_modules/ms/license.md +21 -0
- data/js/node_modules/ms/package.json +37 -0
- data/js/node_modules/ms/readme.md +51 -0
- data/js/node_modules/node-fetch/LICENSE.md +22 -0
- data/js/node_modules/node-fetch/README.md +633 -0
- data/js/node_modules/node-fetch/browser.js +25 -0
- data/js/node_modules/node-fetch/lib/index.es.js +1781 -0
- data/js/node_modules/node-fetch/lib/index.js +1790 -0
- data/js/node_modules/node-fetch/lib/index.mjs +1779 -0
- data/js/node_modules/node-fetch/package.json +89 -0
- data/js/node_modules/node-forge/CHANGELOG.md +211 -0
- data/js/node_modules/node-forge/LICENSE +331 -0
- data/js/node_modules/node-forge/README.md +2097 -0
- data/js/node_modules/node-forge/dist/forge.all.min.js +2 -0
- data/js/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
- data/js/node_modules/node-forge/dist/forge.min.js +2 -0
- data/js/node_modules/node-forge/dist/forge.min.js.map +1 -0
- data/js/node_modules/node-forge/dist/prime.worker.min.js +2 -0
- data/js/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
- data/js/node_modules/node-forge/flash/README.md +48 -0
- data/js/node_modules/node-forge/flash/package.json +28 -0
- data/js/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- data/js/node_modules/node-forge/lib/aes.js +1091 -0
- data/js/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
- data/js/node_modules/node-forge/lib/asn1.js +1408 -0
- data/js/node_modules/node-forge/lib/baseN.js +186 -0
- data/js/node_modules/node-forge/lib/cipher.js +230 -0
- data/js/node_modules/node-forge/lib/cipherModes.js +987 -0
- data/js/node_modules/node-forge/lib/debug.js +78 -0
- data/js/node_modules/node-forge/lib/des.js +496 -0
- data/js/node_modules/node-forge/lib/ed25519.js +996 -0
- data/js/node_modules/node-forge/lib/forge.js +13 -0
- data/js/node_modules/node-forge/lib/form.js +149 -0
- data/js/node_modules/node-forge/lib/hmac.js +146 -0
- data/js/node_modules/node-forge/lib/http.js +1364 -0
- data/js/node_modules/node-forge/lib/index.all.js +16 -0
- data/js/node_modules/node-forge/lib/index.js +35 -0
- data/js/node_modules/node-forge/lib/jsbn.js +1264 -0
- data/js/node_modules/node-forge/lib/kem.js +168 -0
- data/js/node_modules/node-forge/lib/log.js +317 -0
- data/js/node_modules/node-forge/lib/md.all.js +13 -0
- data/js/node_modules/node-forge/lib/md.js +11 -0
- data/js/node_modules/node-forge/lib/md5.js +289 -0
- data/js/node_modules/node-forge/lib/mgf.js +12 -0
- data/js/node_modules/node-forge/lib/mgf1.js +57 -0
- data/js/node_modules/node-forge/lib/oids.js +163 -0
- data/js/node_modules/node-forge/lib/pbe.js +1023 -0
- data/js/node_modules/node-forge/lib/pbkdf2.js +211 -0
- data/js/node_modules/node-forge/lib/pem.js +230 -0
- data/js/node_modules/node-forge/lib/pkcs1.js +276 -0
- data/js/node_modules/node-forge/lib/pkcs12.js +1074 -0
- data/js/node_modules/node-forge/lib/pkcs7.js +1257 -0
- data/js/node_modules/node-forge/lib/pkcs7asn1.js +409 -0
- data/js/node_modules/node-forge/lib/pki.js +102 -0
- data/js/node_modules/node-forge/lib/prime.js +297 -0
- data/js/node_modules/node-forge/lib/prime.worker.js +168 -0
- data/js/node_modules/node-forge/lib/prng.js +419 -0
- data/js/node_modules/node-forge/lib/pss.js +241 -0
- data/js/node_modules/node-forge/lib/random.js +191 -0
- data/js/node_modules/node-forge/lib/rc2.js +410 -0
- data/js/node_modules/node-forge/lib/rsa.js +1858 -0
- data/js/node_modules/node-forge/lib/sha1.js +319 -0
- data/js/node_modules/node-forge/lib/sha256.js +327 -0
- data/js/node_modules/node-forge/lib/sha512.js +561 -0
- data/js/node_modules/node-forge/lib/socket.js +287 -0
- data/js/node_modules/node-forge/lib/ssh.js +236 -0
- data/js/node_modules/node-forge/lib/task.js +725 -0
- data/js/node_modules/node-forge/lib/tls.js +4282 -0
- data/js/node_modules/node-forge/lib/tlssocket.js +249 -0
- data/js/node_modules/node-forge/lib/util.js +2993 -0
- data/js/node_modules/node-forge/lib/x509.js +3333 -0
- data/js/node_modules/node-forge/lib/xhr.js +736 -0
- data/js/node_modules/node-forge/package.json +120 -0
- data/js/node_modules/protobufjs/CHANGELOG.md +1027 -0
- data/js/node_modules/protobufjs/LICENSE +39 -0
- data/js/node_modules/protobufjs/README.md +905 -0
- data/js/node_modules/protobufjs/bin/pbjs +6 -0
- data/js/node_modules/protobufjs/bin/pbts +6 -0
- data/js/node_modules/protobufjs/cli/LICENSE +33 -0
- data/js/node_modules/protobufjs/cli/README.md +174 -0
- data/js/node_modules/protobufjs/cli/bin/pbjs +6 -0
- data/js/node_modules/protobufjs/cli/bin/pbts +6 -0
- data/js/node_modules/protobufjs/cli/index.d.ts +3 -0
- data/js/node_modules/protobufjs/cli/index.js +3 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +21 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +23 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +21 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +705 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +18 -0
- data/js/node_modules/protobufjs/cli/package.json +8 -0
- data/js/node_modules/protobufjs/cli/package.standalone.json +32 -0
- data/js/node_modules/protobufjs/cli/pbjs.d.ts +9 -0
- data/js/node_modules/protobufjs/cli/pbjs.js +330 -0
- data/js/node_modules/protobufjs/cli/pbts.d.ts +9 -0
- data/js/node_modules/protobufjs/cli/pbts.js +197 -0
- data/js/node_modules/protobufjs/cli/targets/json-module.js +38 -0
- data/js/node_modules/protobufjs/cli/targets/json.js +8 -0
- data/js/node_modules/protobufjs/cli/targets/proto.js +326 -0
- data/js/node_modules/protobufjs/cli/targets/proto2.js +10 -0
- data/js/node_modules/protobufjs/cli/targets/proto3.js +10 -0
- data/js/node_modules/protobufjs/cli/targets/static-module.js +29 -0
- data/js/node_modules/protobufjs/cli/targets/static.js +711 -0
- data/js/node_modules/protobufjs/cli/util.js +183 -0
- data/js/node_modules/protobufjs/cli/wrappers/amd.js +7 -0
- data/js/node_modules/protobufjs/cli/wrappers/closure.js +7 -0
- data/js/node_modules/protobufjs/cli/wrappers/commonjs.js +7 -0
- data/js/node_modules/protobufjs/cli/wrappers/default.js +15 -0
- data/js/node_modules/protobufjs/cli/wrappers/es6.js +5 -0
- data/js/node_modules/protobufjs/dist/README.md +31 -0
- data/js/node_modules/protobufjs/dist/light/README.md +31 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.js +7322 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
- data/js/node_modules/protobufjs/dist/minimal/README.md +31 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.js +2714 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
- data/js/node_modules/protobufjs/dist/protobuf.js +8964 -0
- data/js/node_modules/protobufjs/dist/protobuf.js.map +1 -0
- data/js/node_modules/protobufjs/dist/protobuf.min.js +8 -0
- data/js/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
- data/js/node_modules/protobufjs/ext/debug/README.md +4 -0
- data/js/node_modules/protobufjs/ext/debug/index.js +71 -0
- data/js/node_modules/protobufjs/ext/descriptor/README.md +72 -0
- data/js/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -0
- data/js/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
- data/js/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- data/js/node_modules/protobufjs/google/LICENSE +27 -0
- data/js/node_modules/protobufjs/google/README.md +1 -0
- data/js/node_modules/protobufjs/google/api/annotations.json +83 -0
- data/js/node_modules/protobufjs/google/api/annotations.proto +11 -0
- data/js/node_modules/protobufjs/google/api/http.json +86 -0
- data/js/node_modules/protobufjs/google/api/http.proto +31 -0
- data/js/node_modules/protobufjs/google/protobuf/api.json +118 -0
- data/js/node_modules/protobufjs/google/protobuf/api.proto +34 -0
- data/js/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
- data/js/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -0
- data/js/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- data/js/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
- data/js/node_modules/protobufjs/google/protobuf/type.json +202 -0
- data/js/node_modules/protobufjs/google/protobuf/type.proto +89 -0
- data/js/node_modules/protobufjs/index.d.ts +2739 -0
- data/js/node_modules/protobufjs/index.js +4 -0
- data/js/node_modules/protobufjs/light.d.ts +2 -0
- data/js/node_modules/protobufjs/light.js +4 -0
- data/js/node_modules/protobufjs/minimal.d.ts +2 -0
- data/js/node_modules/protobufjs/minimal.js +4 -0
- data/js/node_modules/protobufjs/package-lock.json +7870 -0
- data/js/node_modules/protobufjs/package.json +122 -0
- data/js/node_modules/protobufjs/scripts/changelog.js +150 -0
- data/js/node_modules/protobufjs/scripts/postinstall.js +35 -0
- data/js/node_modules/protobufjs/src/common.js +399 -0
- data/js/node_modules/protobufjs/src/converter.js +293 -0
- data/js/node_modules/protobufjs/src/decoder.js +128 -0
- data/js/node_modules/protobufjs/src/encoder.js +100 -0
- data/js/node_modules/protobufjs/src/enum.js +181 -0
- data/js/node_modules/protobufjs/src/field.js +374 -0
- data/js/node_modules/protobufjs/src/index-light.js +104 -0
- data/js/node_modules/protobufjs/src/index-minimal.js +36 -0
- data/js/node_modules/protobufjs/src/index.js +12 -0
- data/js/node_modules/protobufjs/src/mapfield.js +126 -0
- data/js/node_modules/protobufjs/src/message.js +139 -0
- data/js/node_modules/protobufjs/src/method.js +160 -0
- data/js/node_modules/protobufjs/src/namespace.js +434 -0
- data/js/node_modules/protobufjs/src/object.js +243 -0
- data/js/node_modules/protobufjs/src/oneof.js +203 -0
- data/js/node_modules/protobufjs/src/parse.js +820 -0
- data/js/node_modules/protobufjs/src/reader.js +411 -0
- data/js/node_modules/protobufjs/src/reader_buffer.js +51 -0
- data/js/node_modules/protobufjs/src/root.js +363 -0
- data/js/node_modules/protobufjs/src/roots.js +18 -0
- data/js/node_modules/protobufjs/src/rpc/service.js +142 -0
- data/js/node_modules/protobufjs/src/rpc.js +36 -0
- data/js/node_modules/protobufjs/src/service.js +167 -0
- data/js/node_modules/protobufjs/src/tokenize.js +403 -0
- data/js/node_modules/protobufjs/src/type.js +589 -0
- data/js/node_modules/protobufjs/src/types.js +196 -0
- data/js/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- data/js/node_modules/protobufjs/src/util/longbits.js +200 -0
- data/js/node_modules/protobufjs/src/util/minimal.js +421 -0
- data/js/node_modules/protobufjs/src/util.js +212 -0
- data/js/node_modules/protobufjs/src/verifier.js +177 -0
- data/js/node_modules/protobufjs/src/wrappers.js +102 -0
- data/js/node_modules/protobufjs/src/writer.js +465 -0
- data/js/node_modules/protobufjs/src/writer_buffer.js +85 -0
- data/js/node_modules/protobufjs/tsconfig.json +7 -0
- data/js/node_modules/tr46/index.js +193 -0
- data/js/node_modules/tr46/lib/mappingTable.json +1 -0
- data/js/node_modules/tr46/package.json +31 -0
- data/js/node_modules/typed-ts-events/dist/EventEmitter.d.ts +23 -0
- data/js/node_modules/typed-ts-events/dist/events.js +145 -0
- data/js/node_modules/typed-ts-events/dist/events.js.map +1 -0
- data/js/node_modules/typed-ts-events/dist/events.min.js +2 -0
- data/js/node_modules/typed-ts-events/dist/events.min.js.map +1 -0
- data/js/node_modules/typed-ts-events/dist/index.d.ts +3 -0
- data/js/node_modules/typed-ts-events/package.json +64 -0
- data/js/node_modules/typed-ts-events/readme.md +77 -0
- data/js/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/js/node_modules/webidl-conversions/README.md +53 -0
- data/js/node_modules/webidl-conversions/lib/index.js +189 -0
- data/js/node_modules/webidl-conversions/package.json +23 -0
- data/js/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/js/node_modules/whatwg-url/README.md +67 -0
- data/js/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- data/js/node_modules/whatwg-url/lib/URL.js +196 -0
- data/js/node_modules/whatwg-url/lib/public-api.js +11 -0
- data/js/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- data/js/node_modules/whatwg-url/lib/utils.js +20 -0
- data/js/node_modules/whatwg-url/package.json +32 -0
- data/js/package-lock.json +706 -0
- data/js/package.json +15 -0
- data/js/worker.js +109 -0
- data/js/yarn.lock +285 -0
- data/lib/waves_lib/map.rb +211 -0
- data/lib/waves_lib/root_wrapper.rb +85 -0
- data/lib/waves_lib/version.rb +6 -0
- data/lib/waves_lib/wrapped_buffer.rb +26 -0
- data/lib/waves_lib/wrapper.rb +82 -0
- data/lib/waves_lib.rb +10 -0
- metadata +1264 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "tr46",
|
3
|
+
"version": "0.0.3",
|
4
|
+
"description": "An implementation of the Unicode TR46 spec",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "mocha",
|
8
|
+
"pretest": "node scripts/getLatestUnicodeTests.js",
|
9
|
+
"prepublish": "node scripts/generateMappingTable.js"
|
10
|
+
},
|
11
|
+
"repository": {
|
12
|
+
"type": "git",
|
13
|
+
"url": "git+https://github.com/Sebmaster/tr46.js.git"
|
14
|
+
},
|
15
|
+
"keywords": [
|
16
|
+
"unicode",
|
17
|
+
"tr46",
|
18
|
+
"url",
|
19
|
+
"whatwg"
|
20
|
+
],
|
21
|
+
"author": "Sebastian Mayr <npm@smayr.name>",
|
22
|
+
"license": "MIT",
|
23
|
+
"bugs": {
|
24
|
+
"url": "https://github.com/Sebmaster/tr46.js/issues"
|
25
|
+
},
|
26
|
+
"homepage": "https://github.com/Sebmaster/tr46.js#readme",
|
27
|
+
"devDependencies": {
|
28
|
+
"mocha": "^2.2.5",
|
29
|
+
"request": "^2.57.0"
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export declare class EventEmitter<T extends Record<keyof any, any>> {
|
2
|
+
protected readonly catchHandler: (e: Error) => void;
|
3
|
+
private _events;
|
4
|
+
constructor(catchHandler?: (e: Error) => void);
|
5
|
+
hasListeners<K extends keyof T>(eventName: K): boolean;
|
6
|
+
getActiveEvents(): Array<keyof T>;
|
7
|
+
trigger<K extends keyof T>(eventName: K, params: T[K]): void;
|
8
|
+
on<K extends keyof T, SELF = undefined>(eventName: K, handler: EventEmitter.IHandler<T[K], SELF>, context?: SELF): void;
|
9
|
+
once<K extends keyof T, SELF = undefined>(eventName: K, handler: EventEmitter.IHandler<T[K], SELF>, context?: SELF): void;
|
10
|
+
off(): void;
|
11
|
+
off(eventName: keyof T): void;
|
12
|
+
off(handler: EventEmitter.IHandler<T[keyof T], any>): void;
|
13
|
+
off(eventName: TOrEmpty<keyof T>, handler: TOrEmpty<EventEmitter.IHandler<T[keyof T], any>>): void;
|
14
|
+
off<K extends keyof T>(eventName: K, handler: TOrEmpty<EventEmitter.IHandler<T[K], any>>): void;
|
15
|
+
private _on;
|
16
|
+
}
|
17
|
+
declare type TOrEmpty<T> = T | null | undefined;
|
18
|
+
export declare namespace EventEmitter {
|
19
|
+
interface IHandler<T, SELF> {
|
20
|
+
(this: SELF, data: T): any;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
export {};
|
@@ -0,0 +1,145 @@
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory();
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define([], factory);
|
6
|
+
else if(typeof exports === 'object')
|
7
|
+
exports["EventEmitter"] = factory();
|
8
|
+
else
|
9
|
+
root["EventEmitter"] = factory();
|
10
|
+
})(this, function() {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
14
|
+
|
15
|
+
/***/ 660:
|
16
|
+
/***/ ((__unused_webpack_module, exports) => {
|
17
|
+
|
18
|
+
|
19
|
+
exports.__esModule = true;
|
20
|
+
exports.EventEmitter = void 0;
|
21
|
+
var EventEmitter = /** @class */ (function () {
|
22
|
+
function EventEmitter(catchHandler) {
|
23
|
+
this._events = Object.create(null);
|
24
|
+
this.catchHandler = catchHandler || (function () { return undefined; });
|
25
|
+
}
|
26
|
+
EventEmitter.prototype.hasListeners = function (eventName) {
|
27
|
+
return !!(this._events[eventName] && this._events[eventName].length);
|
28
|
+
};
|
29
|
+
EventEmitter.prototype.getActiveEvents = function () {
|
30
|
+
var _this = this;
|
31
|
+
return Object.keys(this._events).filter(function (name) { return _this.hasListeners(name); });
|
32
|
+
};
|
33
|
+
EventEmitter.prototype.trigger = function (eventName, params) {
|
34
|
+
var _this = this;
|
35
|
+
if (this._events[eventName]) {
|
36
|
+
this._events[eventName].slice().forEach(function (data) {
|
37
|
+
try {
|
38
|
+
data.handler.call(data.context, params);
|
39
|
+
}
|
40
|
+
catch (e) {
|
41
|
+
_this.catchHandler(e);
|
42
|
+
}
|
43
|
+
if (data.once) {
|
44
|
+
_this.off(eventName, data.handler);
|
45
|
+
}
|
46
|
+
});
|
47
|
+
if (!this._events[eventName].length) {
|
48
|
+
delete this._events[eventName];
|
49
|
+
}
|
50
|
+
}
|
51
|
+
};
|
52
|
+
EventEmitter.prototype.on = function (eventName, handler, context) {
|
53
|
+
this._on(eventName, handler, context, false);
|
54
|
+
};
|
55
|
+
EventEmitter.prototype.once = function (eventName, handler, context) {
|
56
|
+
this._on(eventName, handler, context, true);
|
57
|
+
};
|
58
|
+
EventEmitter.prototype.off = function (arg1, arg2) {
|
59
|
+
var _this = this;
|
60
|
+
var eventName = typeof arg1 === 'string' ? arg1 : null;
|
61
|
+
var handler = typeof arg2 === 'function' ? arg2 : typeof arg1 === 'function' ? arg1 : null;
|
62
|
+
if (!eventName) {
|
63
|
+
Object.keys(this._events).forEach(function (eventName) {
|
64
|
+
_this.off(eventName, handler);
|
65
|
+
});
|
66
|
+
return void 0;
|
67
|
+
}
|
68
|
+
if (!handler) {
|
69
|
+
delete this._events[eventName];
|
70
|
+
return void 0;
|
71
|
+
}
|
72
|
+
if (eventName in this._events) {
|
73
|
+
var index = this._events[eventName].map(function (item) { return item.handler; }).indexOf(handler);
|
74
|
+
this._events[eventName].splice(index, 1);
|
75
|
+
}
|
76
|
+
};
|
77
|
+
EventEmitter.prototype._on = function (eventName, handler, context, once) {
|
78
|
+
if (!this._events[eventName]) {
|
79
|
+
this._events[eventName] = [];
|
80
|
+
}
|
81
|
+
this._events[eventName].push({ handler: handler, context: context, once: once });
|
82
|
+
};
|
83
|
+
return EventEmitter;
|
84
|
+
}());
|
85
|
+
exports.EventEmitter = EventEmitter;
|
86
|
+
|
87
|
+
|
88
|
+
/***/ }),
|
89
|
+
|
90
|
+
/***/ 607:
|
91
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
92
|
+
|
93
|
+
|
94
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
95
|
+
if (k2 === undefined) k2 = k;
|
96
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
97
|
+
}) : (function(o, m, k, k2) {
|
98
|
+
if (k2 === undefined) k2 = k;
|
99
|
+
o[k2] = m[k];
|
100
|
+
}));
|
101
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
102
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
103
|
+
};
|
104
|
+
exports.__esModule = true;
|
105
|
+
var EventEmitter_1 = __webpack_require__(660);
|
106
|
+
__exportStar(__webpack_require__(660), exports);
|
107
|
+
exports.default = EventEmitter_1.EventEmitter;
|
108
|
+
|
109
|
+
|
110
|
+
/***/ })
|
111
|
+
|
112
|
+
/******/ });
|
113
|
+
/************************************************************************/
|
114
|
+
/******/ // The module cache
|
115
|
+
/******/ var __webpack_module_cache__ = {};
|
116
|
+
/******/
|
117
|
+
/******/ // The require function
|
118
|
+
/******/ function __webpack_require__(moduleId) {
|
119
|
+
/******/ // Check if module is in cache
|
120
|
+
/******/ if(__webpack_module_cache__[moduleId]) {
|
121
|
+
/******/ return __webpack_module_cache__[moduleId].exports;
|
122
|
+
/******/ }
|
123
|
+
/******/ // Create a new module (and put it into the cache)
|
124
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
125
|
+
/******/ // no module.id needed
|
126
|
+
/******/ // no module.loaded needed
|
127
|
+
/******/ exports: {}
|
128
|
+
/******/ };
|
129
|
+
/******/
|
130
|
+
/******/ // Execute the module function
|
131
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
132
|
+
/******/
|
133
|
+
/******/ // Return the exports of the module
|
134
|
+
/******/ return module.exports;
|
135
|
+
/******/ }
|
136
|
+
/******/
|
137
|
+
/************************************************************************/
|
138
|
+
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
139
|
+
/******/ // startup
|
140
|
+
/******/ // Load entry module and return exports
|
141
|
+
/******/ return __webpack_require__(607);
|
142
|
+
/******/ })()
|
143
|
+
;
|
144
|
+
});
|
145
|
+
//# sourceMappingURL=events.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["webpack://EventEmitter/webpack/universalModuleDefinition","webpack://EventEmitter/./src/EventEmitter.ts","webpack://EventEmitter/./src/index.ts","webpack://EventEmitter/webpack/bootstrap","webpack://EventEmitter/webpack/startup"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;ACVa;AACb,kBAAkB;AAClB,oBAAoB;AACpB;AACA;AACA;AACA,0DAA0D,kBAAkB,EAAE;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE,iCAAiC,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,qBAAqB,EAAE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,iDAAiD;AACvF;AACA;AACA,CAAC;AACD,oBAAoB;;;;;;;;ACnEP;AACb;AACA;AACA,kCAAkC,oCAAoC,aAAa,EAAE,EAAE;AACvF,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,kBAAkB;AAClB,qBAAqB,mBAAO,CAAC,GAAgB;AAC7C,aAAa,mBAAO,CAAC,GAAgB;AACrC,eAAkB;;;;;;;UCdlB;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;UCrBA;UACA;UACA;UACA","file":"events.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventEmitter\"] = factory();\n\telse\n\t\troot[\"EventEmitter\"] = factory();\n})(this, function() {\nreturn ","\"use strict\";\nexports.__esModule = true;\nexports.EventEmitter = void 0;\nvar EventEmitter = /** @class */ (function () {\n function EventEmitter(catchHandler) {\n this._events = Object.create(null);\n this.catchHandler = catchHandler || (function () { return undefined; });\n }\n EventEmitter.prototype.hasListeners = function (eventName) {\n return !!(this._events[eventName] && this._events[eventName].length);\n };\n EventEmitter.prototype.getActiveEvents = function () {\n var _this = this;\n return Object.keys(this._events).filter(function (name) { return _this.hasListeners(name); });\n };\n EventEmitter.prototype.trigger = function (eventName, params) {\n var _this = this;\n if (this._events[eventName]) {\n this._events[eventName].slice().forEach(function (data) {\n try {\n data.handler.call(data.context, params);\n }\n catch (e) {\n _this.catchHandler(e);\n }\n if (data.once) {\n _this.off(eventName, data.handler);\n }\n });\n if (!this._events[eventName].length) {\n delete this._events[eventName];\n }\n }\n };\n EventEmitter.prototype.on = function (eventName, handler, context) {\n this._on(eventName, handler, context, false);\n };\n EventEmitter.prototype.once = function (eventName, handler, context) {\n this._on(eventName, handler, context, true);\n };\n EventEmitter.prototype.off = function (arg1, arg2) {\n var _this = this;\n var eventName = typeof arg1 === 'string' ? arg1 : null;\n var handler = typeof arg2 === 'function' ? arg2 : typeof arg1 === 'function' ? arg1 : null;\n if (!eventName) {\n Object.keys(this._events).forEach(function (eventName) {\n _this.off(eventName, handler);\n });\n return void 0;\n }\n if (!handler) {\n delete this._events[eventName];\n return void 0;\n }\n if (eventName in this._events) {\n var index = this._events[eventName].map(function (item) { return item.handler; }).indexOf(handler);\n this._events[eventName].splice(index, 1);\n }\n };\n EventEmitter.prototype._on = function (eventName, handler, context, once) {\n if (!this._events[eventName]) {\n this._events[eventName] = [];\n }\n this._events[eventName].push({ handler: handler, context: context, once: once });\n };\n return EventEmitter;\n}());\nexports.EventEmitter = EventEmitter;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nexports.__esModule = true;\nvar EventEmitter_1 = require(\"./EventEmitter\");\n__exportStar(require(\"./EventEmitter\"), exports);\nexports[\"default\"] = EventEmitter_1.EventEmitter;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// module exports must be returned from runtime so entry inlining is disabled\n// startup\n// Load entry module and return exports\nreturn __webpack_require__(607);\n"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.EventEmitter=e():t.EventEmitter=e()}(this,(function(){return(()=>{"use strict";var t={660:(t,e)=>{e.__esModule=!0,e.EventEmitter=void 0;var n=function(){function t(t){this._events=Object.create(null),this.catchHandler=t||function(){}}return t.prototype.hasListeners=function(t){return!(!this._events[t]||!this._events[t].length)},t.prototype.getActiveEvents=function(){var t=this;return Object.keys(this._events).filter((function(e){return t.hasListeners(e)}))},t.prototype.trigger=function(t,e){var n=this;this._events[t]&&(this._events[t].slice().forEach((function(o){try{o.handler.call(o.context,e)}catch(t){n.catchHandler(t)}o.once&&n.off(t,o.handler)})),this._events[t].length||delete this._events[t])},t.prototype.on=function(t,e,n){this._on(t,e,n,!1)},t.prototype.once=function(t,e,n){this._on(t,e,n,!0)},t.prototype.off=function(t,e){var n=this,o="string"==typeof t?t:null,i="function"==typeof e?e:"function"==typeof t?t:null;if(o)if(i){if(o in this._events){var r=this._events[o].map((function(t){return t.handler})).indexOf(i);this._events[o].splice(r,1)}}else delete this._events[o];else Object.keys(this._events).forEach((function(t){n.off(t,i)}))},t.prototype._on=function(t,e,n,o){this._events[t]||(this._events[t]=[]),this._events[t].push({handler:e,context:n,once:o})},t}();e.EventEmitter=n},607:function(t,e,n){var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};e.__esModule=!0;var r=n(660);i(n(660),e),e.default=r.EventEmitter}},e={};return function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}(607)})()}));
|
2
|
+
//# sourceMappingURL=events.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["webpack://EventEmitter/webpack/universalModuleDefinition","webpack://EventEmitter/./src/EventEmitter.ts","webpack://EventEmitter/./src/index.ts","webpack://EventEmitter/webpack/bootstrap","webpack://EventEmitter/webpack/startup"],"names":["root","factory","exports","module","define","amd","this","__esModule","EventEmitter","catchHandler","_events","Object","create","prototype","hasListeners","eventName","length","getActiveEvents","_this","keys","filter","name","trigger","params","slice","forEach","data","handler","call","context","e","once","off","on","_on","arg1","arg2","index","map","item","indexOf","splice","push","__createBinding","o","m","k","k2","undefined","defineProperty","enumerable","get","__exportStar","p","hasOwnProperty","EventEmitter_1","__webpack_module_cache__","__webpack_require__","moduleId","__webpack_modules__"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAsB,aAAID,IAE1BD,EAAmB,aAAIC,IARzB,CASGK,MAAM,WACT,M,sCCTAJ,EAAQK,YAAa,EACrBL,EAAQM,kBAAe,EACvB,IAAIA,EAA8B,WAC9B,SAASA,EAAaC,GAClBH,KAAKI,QAAUC,OAAOC,OAAO,MAC7BN,KAAKG,aAAeA,GAAgB,aA2DxC,OAzDAD,EAAaK,UAAUC,aAAe,SAAUC,GAC5C,SAAUT,KAAKI,QAAQK,KAAcT,KAAKI,QAAQK,GAAWC,SAEjER,EAAaK,UAAUI,gBAAkB,WACrC,IAAIC,EAAQZ,KACZ,OAAOK,OAAOQ,KAAKb,KAAKI,SAASU,QAAO,SAAUC,GAAQ,OAAOH,EAAMJ,aAAaO,OAExFb,EAAaK,UAAUS,QAAU,SAAUP,EAAWQ,GAClD,IAAIL,EAAQZ,KACRA,KAAKI,QAAQK,KACbT,KAAKI,QAAQK,GAAWS,QAAQC,SAAQ,SAAUC,GAC9C,IACIA,EAAKC,QAAQC,KAAKF,EAAKG,QAASN,GAEpC,MAAOO,GACHZ,EAAMT,aAAaqB,GAEnBJ,EAAKK,MACLb,EAAMc,IAAIjB,EAAWW,EAAKC,YAG7BrB,KAAKI,QAAQK,GAAWC,eAClBV,KAAKI,QAAQK,KAIhCP,EAAaK,UAAUoB,GAAK,SAAUlB,EAAWY,EAASE,GACtDvB,KAAK4B,IAAInB,EAAWY,EAASE,GAAS,IAE1CrB,EAAaK,UAAUkB,KAAO,SAAUhB,EAAWY,EAASE,GACxDvB,KAAK4B,IAAInB,EAAWY,EAASE,GAAS,IAE1CrB,EAAaK,UAAUmB,IAAM,SAAUG,EAAMC,GACzC,IAAIlB,EAAQZ,KACRS,EAA4B,iBAAToB,EAAoBA,EAAO,KAC9CR,EAA0B,mBAATS,EAAsBA,EAAuB,mBAATD,EAAsBA,EAAO,KACtF,GAAKpB,EAML,GAAKY,GAIL,GAAIZ,KAAaT,KAAKI,QAAS,CAC3B,IAAI2B,EAAQ/B,KAAKI,QAAQK,GAAWuB,KAAI,SAAUC,GAAQ,OAAOA,EAAKZ,WAAYa,QAAQb,GAC1FrB,KAAKI,QAAQK,GAAW0B,OAAOJ,EAAO,gBAL/B/B,KAAKI,QAAQK,QANpBJ,OAAOQ,KAAKb,KAAKI,SAASe,SAAQ,SAAUV,GACxCG,EAAMc,IAAIjB,EAAWY,OAajCnB,EAAaK,UAAUqB,IAAM,SAAUnB,EAAWY,EAASE,EAASE,GAC3DzB,KAAKI,QAAQK,KACdT,KAAKI,QAAQK,GAAa,IAE9BT,KAAKI,QAAQK,GAAW2B,KAAK,CAAEf,QAASA,EAASE,QAASA,EAASE,KAAMA,KAEtEvB,EA9DsB,GAgEjCN,EAAQM,aAAeA,G,oBClEvB,IAAImC,EAAmBrC,MAAQA,KAAKqC,kBAAqBhC,OAAOC,OAAS,SAAUgC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3BnC,OAAOsC,eAAeL,EAAGG,EAAI,CAAEG,YAAY,EAAMC,IAAK,WAAa,OAAON,EAAEC,OAC3E,SAAUF,EAAGC,EAAGC,EAAGC,QACTC,IAAPD,IAAkBA,EAAKD,GAC3BF,EAAEG,GAAMF,EAAEC,KAEVM,EAAgB9C,MAAQA,KAAK8C,cAAiB,SAASP,EAAG3C,GAC1D,IAAK,IAAImD,KAAKR,EAAa,YAANQ,GAAoB1C,OAAOE,UAAUyC,eAAe1B,KAAK1B,EAASmD,IAAIV,EAAgBzC,EAAS2C,EAAGQ,IAE3HnD,EAAQK,YAAa,EACrB,IAAIgD,EAAiB,EAAQ,KAC7BH,EAAa,EAAQ,KAAmBlD,GACxCA,EAAA,QAAqBqD,EAAe/C,eCbhCgD,EAA2B,GCE/B,ODCA,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUxD,QAG3C,IAAIC,EAASqD,EAAyBE,GAAY,CAGjDxD,QAAS,IAOV,OAHAyD,EAAoBD,GAAU9B,KAAKzB,EAAOD,QAASC,EAAQA,EAAOD,QAASuD,GAGpEtD,EAAOD,QCjBRuD,CAAoB,M","file":"events.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"EventEmitter\"] = factory();\n\telse\n\t\troot[\"EventEmitter\"] = factory();\n})(this, function() {\nreturn ","\"use strict\";\nexports.__esModule = true;\nexports.EventEmitter = void 0;\nvar EventEmitter = /** @class */ (function () {\n function EventEmitter(catchHandler) {\n this._events = Object.create(null);\n this.catchHandler = catchHandler || (function () { return undefined; });\n }\n EventEmitter.prototype.hasListeners = function (eventName) {\n return !!(this._events[eventName] && this._events[eventName].length);\n };\n EventEmitter.prototype.getActiveEvents = function () {\n var _this = this;\n return Object.keys(this._events).filter(function (name) { return _this.hasListeners(name); });\n };\n EventEmitter.prototype.trigger = function (eventName, params) {\n var _this = this;\n if (this._events[eventName]) {\n this._events[eventName].slice().forEach(function (data) {\n try {\n data.handler.call(data.context, params);\n }\n catch (e) {\n _this.catchHandler(e);\n }\n if (data.once) {\n _this.off(eventName, data.handler);\n }\n });\n if (!this._events[eventName].length) {\n delete this._events[eventName];\n }\n }\n };\n EventEmitter.prototype.on = function (eventName, handler, context) {\n this._on(eventName, handler, context, false);\n };\n EventEmitter.prototype.once = function (eventName, handler, context) {\n this._on(eventName, handler, context, true);\n };\n EventEmitter.prototype.off = function (arg1, arg2) {\n var _this = this;\n var eventName = typeof arg1 === 'string' ? arg1 : null;\n var handler = typeof arg2 === 'function' ? arg2 : typeof arg1 === 'function' ? arg1 : null;\n if (!eventName) {\n Object.keys(this._events).forEach(function (eventName) {\n _this.off(eventName, handler);\n });\n return void 0;\n }\n if (!handler) {\n delete this._events[eventName];\n return void 0;\n }\n if (eventName in this._events) {\n var index = this._events[eventName].map(function (item) { return item.handler; }).indexOf(handler);\n this._events[eventName].splice(index, 1);\n }\n };\n EventEmitter.prototype._on = function (eventName, handler, context, once) {\n if (!this._events[eventName]) {\n this._events[eventName] = [];\n }\n this._events[eventName].push({ handler: handler, context: context, once: once });\n };\n return EventEmitter;\n}());\nexports.EventEmitter = EventEmitter;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nexports.__esModule = true;\nvar EventEmitter_1 = require(\"./EventEmitter\");\n__exportStar(require(\"./EventEmitter\"), exports);\nexports[\"default\"] = EventEmitter_1.EventEmitter;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// module exports must be returned from runtime so entry inlining is disabled\n// startup\n// Load entry module and return exports\nreturn __webpack_require__(607);\n"],"sourceRoot":""}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
{
|
2
|
+
"name": "typed-ts-events",
|
3
|
+
"version": "1.2.1",
|
4
|
+
"description": "Typed events for typescript",
|
5
|
+
"main": "dist/events.min.js",
|
6
|
+
"types": "dist/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"dist"
|
9
|
+
],
|
10
|
+
"scripts": {
|
11
|
+
"prepare": "npm test && npm run build",
|
12
|
+
"build": "npx webpack",
|
13
|
+
"preversion": "npm run test",
|
14
|
+
"postversion": "npm publish",
|
15
|
+
"prepublish": "npm run coveralls",
|
16
|
+
"postpublish": "git push",
|
17
|
+
"test": "jest",
|
18
|
+
"coveralls": "jest --coverage && cat coverage/lcov.info | coveralls"
|
19
|
+
},
|
20
|
+
"repository": {
|
21
|
+
"type": "git",
|
22
|
+
"url": "git+https://github.com/tsigel/typed-ts-events.git"
|
23
|
+
},
|
24
|
+
"keywords": [
|
25
|
+
"typed",
|
26
|
+
"events",
|
27
|
+
"typescript",
|
28
|
+
"eventemitter"
|
29
|
+
],
|
30
|
+
"author": "tsddaniil@gmail.com",
|
31
|
+
"license": "ISC",
|
32
|
+
"bugs": {
|
33
|
+
"url": "https://github.com/tsigel/typed-events/issues"
|
34
|
+
},
|
35
|
+
"jest": {
|
36
|
+
"collectCoverage": true,
|
37
|
+
"coveragePathIgnorePatterns": [
|
38
|
+
"/node_modules/",
|
39
|
+
"/test/"
|
40
|
+
],
|
41
|
+
"moduleFileExtensions": [
|
42
|
+
"ts",
|
43
|
+
"tsx",
|
44
|
+
"js"
|
45
|
+
],
|
46
|
+
"transform": {
|
47
|
+
"^.+\\.(ts|tsx)$": "ts-jest"
|
48
|
+
},
|
49
|
+
"testMatch": [
|
50
|
+
"**/test/*test.+(ts)"
|
51
|
+
]
|
52
|
+
},
|
53
|
+
"homepage": "https://github.com/tsigel/typed-events#readme",
|
54
|
+
"devDependencies": {
|
55
|
+
"@types/jest": "^26.0.14",
|
56
|
+
"coveralls": "^3.0.2",
|
57
|
+
"jest": "^26.5.3",
|
58
|
+
"ts-jest": "^26.4.1",
|
59
|
+
"ts-loader": "^8.0.5",
|
60
|
+
"typescript": "^4.1.2",
|
61
|
+
"webpack": "^5.1.0",
|
62
|
+
"webpack-cli": "^4.0.0"
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
[](https://coveralls.io/github/tsigel/typed-ts-events)
|
2
|
+
|
3
|
+
# Typed Events
|
4
|
+
|
5
|
+
Библиотека для работы с типизированными событиями в TypeScript и javascript.
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
### Установка
|
10
|
+
|
11
|
+
```bash
|
12
|
+
npm i typed-ts-events --save
|
13
|
+
```
|
14
|
+
|
15
|
+
## EventEmitter
|
16
|
+
|
17
|
+
### on
|
18
|
+
|
19
|
+
+ eventName - наименование события на которе подписываемся
|
20
|
+
+ handler - обработчик события
|
21
|
+
|
22
|
+
Подписываемся на событие.
|
23
|
+
|
24
|
+
```typescript
|
25
|
+
import { EventEmitter } from 'typed-ts-events';
|
26
|
+
|
27
|
+
|
28
|
+
const emitter = new EventEmitter<{test: number}>();
|
29
|
+
|
30
|
+
emitter.on('test', (data: number) => {
|
31
|
+
...
|
32
|
+
});
|
33
|
+
|
34
|
+
```
|
35
|
+
|
36
|
+
### once
|
37
|
+
|
38
|
+
Идентичен `on` но после первого вызова события автоматически отпишется.
|
39
|
+
|
40
|
+
### off
|
41
|
+
Позволяет отписаться от событий.
|
42
|
+
|
43
|
+
Параметры:
|
44
|
+
+ [eventName] - имя события. Если не передано отпишется от всех событий с переданным `handler`.
|
45
|
+
+ [handler] - обработчик событий. Если не передан - отпишется от всех обработчиков с данным `eventName`.
|
46
|
+
|
47
|
+
Если параметры не переданы - отпишется от всех событий.
|
48
|
+
|
49
|
+
Пример:
|
50
|
+
```typescript
|
51
|
+
emitter.off('some-event', handler); // Отпишется от `some-event` с обработчиком `handler`
|
52
|
+
emitter.off('some-event'); // Отпишется от всех обработчиков на имя `some-event`
|
53
|
+
emitter.off(null, handler); // Отпишется во всех именах от обработчика `handler`
|
54
|
+
emitter.off(handler); // Отпишется во всех именах от обработчика `handler`
|
55
|
+
emitter.off(); // Отпишется от всех событий
|
56
|
+
```
|
57
|
+
|
58
|
+
### trigger
|
59
|
+
Запускает событие.
|
60
|
+
|
61
|
+
Параметры:
|
62
|
+
+ eventName - имя запускаемого события
|
63
|
+
+ data - данные которые будут переданы в обработчики событий
|
64
|
+
|
65
|
+
Пример:
|
66
|
+
```typescript
|
67
|
+
import { EventEmitter } from 'typed-ts-events';
|
68
|
+
|
69
|
+
|
70
|
+
const emitter = new EventEmitter<{test: number}>();
|
71
|
+
|
72
|
+
emitter.on('test', (data: number) => {
|
73
|
+
...
|
74
|
+
});
|
75
|
+
|
76
|
+
emitter.trigger('test', 111);
|
77
|
+
```
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# The BSD 2-Clause License
|
2
|
+
|
3
|
+
Copyright (c) 2014, Domenic Denicola
|
4
|
+
All rights reserved.
|
5
|
+
|
6
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
7
|
+
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
11
|
+
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# WebIDL Type Conversions on JavaScript Values
|
2
|
+
|
3
|
+
This package implements, in JavaScript, the algorithms to convert a given JavaScript value according to a given [WebIDL](http://heycam.github.io/webidl/) [type](http://heycam.github.io/webidl/#idl-types).
|
4
|
+
|
5
|
+
The goal is that you should be able to write code like
|
6
|
+
|
7
|
+
```js
|
8
|
+
const conversions = require("webidl-conversions");
|
9
|
+
|
10
|
+
function doStuff(x, y) {
|
11
|
+
x = conversions["boolean"](x);
|
12
|
+
y = conversions["unsigned long"](y);
|
13
|
+
// actual algorithm code here
|
14
|
+
}
|
15
|
+
```
|
16
|
+
|
17
|
+
and your function `doStuff` will behave the same as a WebIDL operation declared as
|
18
|
+
|
19
|
+
```webidl
|
20
|
+
void doStuff(boolean x, unsigned long y);
|
21
|
+
```
|
22
|
+
|
23
|
+
## API
|
24
|
+
|
25
|
+
This package's main module's default export is an object with a variety of methods, each corresponding to a different WebIDL type. Each method, when invoked on a JavaScript value, will give back the new JavaScript value that results after passing through the WebIDL conversion rules. (See below for more details on what that means.) Alternately, the method could throw an error, if the WebIDL algorithm is specified to do so: for example `conversions["float"](NaN)` [will throw a `TypeError`](http://heycam.github.io/webidl/#es-float).
|
26
|
+
|
27
|
+
## Status
|
28
|
+
|
29
|
+
All of the numeric types are implemented (float being implemented as double) and some others are as well - check the source for all of them. This list will grow over time in service of the [HTML as Custom Elements](https://github.com/dglazkov/html-as-custom-elements) project, but in the meantime, pull requests welcome!
|
30
|
+
|
31
|
+
I'm not sure yet what the strategy will be for modifiers, e.g. [`[Clamp]`](http://heycam.github.io/webidl/#Clamp). Maybe something like `conversions["unsigned long"](x, { clamp: true })`? We'll see.
|
32
|
+
|
33
|
+
We might also want to extend the API to give better error messages, e.g. "Argument 1 of HTMLMediaElement.fastSeek is not a finite floating-point value" instead of "Argument is not a finite floating-point value." This would require passing in more information to the conversion functions than we currently do.
|
34
|
+
|
35
|
+
## Background
|
36
|
+
|
37
|
+
What's actually going on here, conceptually, is pretty weird. Let's try to explain.
|
38
|
+
|
39
|
+
WebIDL, as part of its madness-inducing design, has its own type system. When people write algorithms in web platform specs, they usually operate on WebIDL values, i.e. instances of WebIDL types. For example, if they were specifying the algorithm for our `doStuff` operation above, they would treat `x` as a WebIDL value of [WebIDL type `boolean`](http://heycam.github.io/webidl/#idl-boolean). Crucially, they would _not_ treat `x` as a JavaScript variable whose value is either the JavaScript `true` or `false`. They're instead working in a different type system altogether, with its own rules.
|
40
|
+
|
41
|
+
Separately from its type system, WebIDL defines a ["binding"](http://heycam.github.io/webidl/#ecmascript-binding) of the type system into JavaScript. This contains rules like: when you pass a JavaScript value to the JavaScript method that manifests a given WebIDL operation, how does that get converted into a WebIDL value? For example, a JavaScript `true` passed in the position of a WebIDL `boolean` argument becomes a WebIDL `true`. But, a JavaScript `true` passed in the position of a [WebIDL `unsigned long`](http://heycam.github.io/webidl/#idl-unsigned-long) becomes a WebIDL `1`. And so on.
|
42
|
+
|
43
|
+
Finally, we have the actual implementation code. This is usually C++, although these days [some smart people are using Rust](https://github.com/servo/servo). The implementation, of course, has its own type system. So when they implement the WebIDL algorithms, they don't actually use WebIDL values, since those aren't "real" outside of specs. Instead, implementations apply the WebIDL binding rules in such a way as to convert incoming JavaScript values into C++ values. For example, if code in the browser called `doStuff(true, true)`, then the implementation code would eventually receive a C++ `bool` containing `true` and a C++ `uint32_t` containing `1`.
|
44
|
+
|
45
|
+
The upside of all this is that implementations can abstract all the conversion logic away, letting WebIDL handle it, and focus on implementing the relevant methods in C++ with values of the correct type already provided. That is payoff of WebIDL, in a nutshell.
|
46
|
+
|
47
|
+
And getting to that payoff is the goal of _this_ project—but for JavaScript implementations, instead of C++ ones. That is, this library is designed to make it easier for JavaScript developers to write functions that behave like a given WebIDL operation. So conceptually, the conversion pipeline, which in its general form is JavaScript values ↦ WebIDL values ↦ implementation-language values, in this case becomes JavaScript values ↦ WebIDL values ↦ JavaScript values. And that intermediate step is where all the logic is performed: a JavaScript `true` becomes a WebIDL `1` in an unsigned long context, which then becomes a JavaScript `1`.
|
48
|
+
|
49
|
+
## Don't Use This
|
50
|
+
|
51
|
+
Seriously, why would you ever use this? You really shouldn't. WebIDL is … not great, and you shouldn't be emulating its semantics. If you're looking for a generic argument-processing library, you should find one with better rules than those from WebIDL. In general, your JavaScript should not be trying to become more like WebIDL; if anything, we should fix WebIDL to make it more like JavaScript.
|
52
|
+
|
53
|
+
The _only_ people who should use this are those trying to create faithful implementations (or polyfills) of web platform interfaces defined in WebIDL.
|
@@ -0,0 +1,189 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var conversions = {};
|
4
|
+
module.exports = conversions;
|
5
|
+
|
6
|
+
function sign(x) {
|
7
|
+
return x < 0 ? -1 : 1;
|
8
|
+
}
|
9
|
+
|
10
|
+
function evenRound(x) {
|
11
|
+
// Round x to the nearest integer, choosing the even integer if it lies halfway between two.
|
12
|
+
if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
|
13
|
+
return Math.floor(x);
|
14
|
+
} else {
|
15
|
+
return Math.round(x);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
function createNumberConversion(bitLength, typeOpts) {
|
20
|
+
if (!typeOpts.unsigned) {
|
21
|
+
--bitLength;
|
22
|
+
}
|
23
|
+
const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
|
24
|
+
const upperBound = Math.pow(2, bitLength) - 1;
|
25
|
+
|
26
|
+
const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
|
27
|
+
const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
|
28
|
+
|
29
|
+
return function(V, opts) {
|
30
|
+
if (!opts) opts = {};
|
31
|
+
|
32
|
+
let x = +V;
|
33
|
+
|
34
|
+
if (opts.enforceRange) {
|
35
|
+
if (!Number.isFinite(x)) {
|
36
|
+
throw new TypeError("Argument is not a finite number");
|
37
|
+
}
|
38
|
+
|
39
|
+
x = sign(x) * Math.floor(Math.abs(x));
|
40
|
+
if (x < lowerBound || x > upperBound) {
|
41
|
+
throw new TypeError("Argument is not in byte range");
|
42
|
+
}
|
43
|
+
|
44
|
+
return x;
|
45
|
+
}
|
46
|
+
|
47
|
+
if (!isNaN(x) && opts.clamp) {
|
48
|
+
x = evenRound(x);
|
49
|
+
|
50
|
+
if (x < lowerBound) x = lowerBound;
|
51
|
+
if (x > upperBound) x = upperBound;
|
52
|
+
return x;
|
53
|
+
}
|
54
|
+
|
55
|
+
if (!Number.isFinite(x) || x === 0) {
|
56
|
+
return 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
x = sign(x) * Math.floor(Math.abs(x));
|
60
|
+
x = x % moduloVal;
|
61
|
+
|
62
|
+
if (!typeOpts.unsigned && x >= moduloBound) {
|
63
|
+
return x - moduloVal;
|
64
|
+
} else if (typeOpts.unsigned) {
|
65
|
+
if (x < 0) {
|
66
|
+
x += moduloVal;
|
67
|
+
} else if (x === -0) { // don't return negative zero
|
68
|
+
return 0;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
return x;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
conversions["void"] = function () {
|
77
|
+
return undefined;
|
78
|
+
};
|
79
|
+
|
80
|
+
conversions["boolean"] = function (val) {
|
81
|
+
return !!val;
|
82
|
+
};
|
83
|
+
|
84
|
+
conversions["byte"] = createNumberConversion(8, { unsigned: false });
|
85
|
+
conversions["octet"] = createNumberConversion(8, { unsigned: true });
|
86
|
+
|
87
|
+
conversions["short"] = createNumberConversion(16, { unsigned: false });
|
88
|
+
conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
|
89
|
+
|
90
|
+
conversions["long"] = createNumberConversion(32, { unsigned: false });
|
91
|
+
conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
|
92
|
+
|
93
|
+
conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
|
94
|
+
conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
|
95
|
+
|
96
|
+
conversions["double"] = function (V) {
|
97
|
+
const x = +V;
|
98
|
+
|
99
|
+
if (!Number.isFinite(x)) {
|
100
|
+
throw new TypeError("Argument is not a finite floating-point value");
|
101
|
+
}
|
102
|
+
|
103
|
+
return x;
|
104
|
+
};
|
105
|
+
|
106
|
+
conversions["unrestricted double"] = function (V) {
|
107
|
+
const x = +V;
|
108
|
+
|
109
|
+
if (isNaN(x)) {
|
110
|
+
throw new TypeError("Argument is NaN");
|
111
|
+
}
|
112
|
+
|
113
|
+
return x;
|
114
|
+
};
|
115
|
+
|
116
|
+
// not quite valid, but good enough for JS
|
117
|
+
conversions["float"] = conversions["double"];
|
118
|
+
conversions["unrestricted float"] = conversions["unrestricted double"];
|
119
|
+
|
120
|
+
conversions["DOMString"] = function (V, opts) {
|
121
|
+
if (!opts) opts = {};
|
122
|
+
|
123
|
+
if (opts.treatNullAsEmptyString && V === null) {
|
124
|
+
return "";
|
125
|
+
}
|
126
|
+
|
127
|
+
return String(V);
|
128
|
+
};
|
129
|
+
|
130
|
+
conversions["ByteString"] = function (V, opts) {
|
131
|
+
const x = String(V);
|
132
|
+
let c = undefined;
|
133
|
+
for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
|
134
|
+
if (c > 255) {
|
135
|
+
throw new TypeError("Argument is not a valid bytestring");
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
return x;
|
140
|
+
};
|
141
|
+
|
142
|
+
conversions["USVString"] = function (V) {
|
143
|
+
const S = String(V);
|
144
|
+
const n = S.length;
|
145
|
+
const U = [];
|
146
|
+
for (let i = 0; i < n; ++i) {
|
147
|
+
const c = S.charCodeAt(i);
|
148
|
+
if (c < 0xD800 || c > 0xDFFF) {
|
149
|
+
U.push(String.fromCodePoint(c));
|
150
|
+
} else if (0xDC00 <= c && c <= 0xDFFF) {
|
151
|
+
U.push(String.fromCodePoint(0xFFFD));
|
152
|
+
} else {
|
153
|
+
if (i === n - 1) {
|
154
|
+
U.push(String.fromCodePoint(0xFFFD));
|
155
|
+
} else {
|
156
|
+
const d = S.charCodeAt(i + 1);
|
157
|
+
if (0xDC00 <= d && d <= 0xDFFF) {
|
158
|
+
const a = c & 0x3FF;
|
159
|
+
const b = d & 0x3FF;
|
160
|
+
U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
|
161
|
+
++i;
|
162
|
+
} else {
|
163
|
+
U.push(String.fromCodePoint(0xFFFD));
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
return U.join('');
|
170
|
+
};
|
171
|
+
|
172
|
+
conversions["Date"] = function (V, opts) {
|
173
|
+
if (!(V instanceof Date)) {
|
174
|
+
throw new TypeError("Argument is not a Date object");
|
175
|
+
}
|
176
|
+
if (isNaN(V)) {
|
177
|
+
return undefined;
|
178
|
+
}
|
179
|
+
|
180
|
+
return V;
|
181
|
+
};
|
182
|
+
|
183
|
+
conversions["RegExp"] = function (V, opts) {
|
184
|
+
if (!(V instanceof RegExp)) {
|
185
|
+
V = new RegExp(V);
|
186
|
+
}
|
187
|
+
|
188
|
+
return V;
|
189
|
+
};
|