@diia-inhouse/genproto 1.14.0 → 2.0.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.
- package/.gitlab-ci.yml +1 -0
- package/dist/command/index.js.map +1 -1
- package/dist/command/tsCommandBuilder.js.map +1 -1
- package/dist/genproto.js.map +1 -1
- package/dist/logger.js.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +15 -13
- package/node_modules/@protobufjs/aspromise/LICENSE +0 -26
- package/node_modules/@protobufjs/aspromise/README.md +0 -13
- package/node_modules/@protobufjs/aspromise/index.d.ts +0 -13
- package/node_modules/@protobufjs/aspromise/index.js +0 -52
- package/node_modules/@protobufjs/aspromise/package.json +0 -21
- package/node_modules/@protobufjs/aspromise/tests/index.js +0 -130
- package/node_modules/@protobufjs/base64/LICENSE +0 -26
- package/node_modules/@protobufjs/base64/README.md +0 -19
- package/node_modules/@protobufjs/base64/index.d.ts +0 -32
- package/node_modules/@protobufjs/base64/index.js +0 -139
- package/node_modules/@protobufjs/base64/package.json +0 -21
- package/node_modules/@protobufjs/base64/tests/index.js +0 -46
- package/node_modules/@protobufjs/codegen/LICENSE +0 -26
- package/node_modules/@protobufjs/codegen/README.md +0 -49
- package/node_modules/@protobufjs/codegen/index.d.ts +0 -31
- package/node_modules/@protobufjs/codegen/index.js +0 -99
- package/node_modules/@protobufjs/codegen/package.json +0 -13
- package/node_modules/@protobufjs/codegen/tests/index.js +0 -13
- package/node_modules/@protobufjs/eventemitter/LICENSE +0 -26
- package/node_modules/@protobufjs/eventemitter/README.md +0 -22
- package/node_modules/@protobufjs/eventemitter/index.d.ts +0 -43
- package/node_modules/@protobufjs/eventemitter/index.js +0 -76
- package/node_modules/@protobufjs/eventemitter/package.json +0 -21
- package/node_modules/@protobufjs/eventemitter/tests/index.js +0 -47
- package/node_modules/@protobufjs/fetch/LICENSE +0 -26
- package/node_modules/@protobufjs/fetch/README.md +0 -13
- package/node_modules/@protobufjs/fetch/index.d.ts +0 -56
- package/node_modules/@protobufjs/fetch/index.js +0 -115
- package/node_modules/@protobufjs/fetch/package.json +0 -25
- package/node_modules/@protobufjs/fetch/tests/index.js +0 -16
- package/node_modules/@protobufjs/float/LICENSE +0 -26
- package/node_modules/@protobufjs/float/README.md +0 -102
- package/node_modules/@protobufjs/float/bench/index.js +0 -87
- package/node_modules/@protobufjs/float/bench/suite.js +0 -46
- package/node_modules/@protobufjs/float/index.d.ts +0 -83
- package/node_modules/@protobufjs/float/index.js +0 -335
- package/node_modules/@protobufjs/float/package.json +0 -26
- package/node_modules/@protobufjs/float/tests/index.js +0 -100
- package/node_modules/@protobufjs/inquire/.npmignore +0 -3
- package/node_modules/@protobufjs/inquire/LICENSE +0 -26
- package/node_modules/@protobufjs/inquire/README.md +0 -13
- package/node_modules/@protobufjs/inquire/index.d.ts +0 -9
- package/node_modules/@protobufjs/inquire/index.js +0 -17
- package/node_modules/@protobufjs/inquire/package.json +0 -21
- package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
- package/node_modules/@protobufjs/path/LICENSE +0 -26
- package/node_modules/@protobufjs/path/README.md +0 -19
- package/node_modules/@protobufjs/path/index.d.ts +0 -22
- package/node_modules/@protobufjs/path/index.js +0 -65
- package/node_modules/@protobufjs/path/package.json +0 -21
- package/node_modules/@protobufjs/path/tests/index.js +0 -60
- package/node_modules/@protobufjs/pool/.npmignore +0 -3
- package/node_modules/@protobufjs/pool/LICENSE +0 -26
- package/node_modules/@protobufjs/pool/README.md +0 -13
- package/node_modules/@protobufjs/pool/index.d.ts +0 -32
- package/node_modules/@protobufjs/pool/index.js +0 -48
- package/node_modules/@protobufjs/pool/package.json +0 -21
- package/node_modules/@protobufjs/pool/tests/index.js +0 -33
- package/node_modules/@protobufjs/utf8/.npmignore +0 -3
- package/node_modules/@protobufjs/utf8/LICENSE +0 -26
- package/node_modules/@protobufjs/utf8/README.md +0 -20
- package/node_modules/@protobufjs/utf8/index.d.ts +0 -24
- package/node_modules/@protobufjs/utf8/index.js +0 -105
- package/node_modules/@protobufjs/utf8/package.json +0 -21
- package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +0 -216
- package/node_modules/@protobufjs/utf8/tests/index.js +0 -57
- package/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@types/node/README.md +0 -15
- package/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/assert.d.ts +0 -996
- package/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/buffer.d.ts +0 -2362
- package/node_modules/@types/node/child_process.d.ts +0 -1540
- package/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@types/node/console.d.ts +0 -415
- package/node_modules/@types/node/constants.d.ts +0 -19
- package/node_modules/@types/node/crypto.d.ts +0 -4456
- package/node_modules/@types/node/dgram.d.ts +0 -586
- package/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
- package/node_modules/@types/node/dns/promises.d.ts +0 -417
- package/node_modules/@types/node/dns.d.ts +0 -809
- package/node_modules/@types/node/dom-events.d.ts +0 -122
- package/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/@types/node/events.d.ts +0 -844
- package/node_modules/@types/node/fs/promises.d.ts +0 -1232
- package/node_modules/@types/node/fs.d.ts +0 -4289
- package/node_modules/@types/node/globals.d.ts +0 -381
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/http.d.ts +0 -1888
- package/node_modules/@types/node/http2.d.ts +0 -2381
- package/node_modules/@types/node/https.d.ts +0 -550
- package/node_modules/@types/node/index.d.ts +0 -88
- package/node_modules/@types/node/inspector.d.ts +0 -2747
- package/node_modules/@types/node/module.d.ts +0 -297
- package/node_modules/@types/node/net.d.ts +0 -949
- package/node_modules/@types/node/os.d.ts +0 -477
- package/node_modules/@types/node/package.json +0 -230
- package/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/@types/node/perf_hooks.d.ts +0 -639
- package/node_modules/@types/node/process.d.ts +0 -1532
- package/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@types/node/querystring.d.ts +0 -141
- package/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/readline.d.ts +0 -539
- package/node_modules/@types/node/repl.d.ts +0 -430
- package/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/stream/web.d.ts +0 -350
- package/node_modules/@types/node/stream.d.ts +0 -1701
- package/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/test.d.ts +0 -1382
- package/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/timers.d.ts +0 -240
- package/node_modules/@types/node/tls.d.ts +0 -1210
- package/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -417
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -796
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1232
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4289
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -381
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2381
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -297
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -477
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1532
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2186
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -901
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -152
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@types/node/tty.d.ts +0 -208
- package/node_modules/@types/node/url.d.ts +0 -927
- package/node_modules/@types/node/util.d.ts +0 -2186
- package/node_modules/@types/node/v8.d.ts +0 -635
- package/node_modules/@types/node/vm.d.ts +0 -901
- package/node_modules/@types/node/wasi.d.ts +0 -152
- package/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/case-anything/LICENSE +0 -21
- package/node_modules/case-anything/README.md +0 -259
- package/node_modules/case-anything/dist/cjs/index.cjs +0 -133
- package/node_modules/case-anything/dist/cjs/index.d.cts +0 -230
- package/node_modules/case-anything/dist/index.d.ts +0 -230
- package/node_modules/case-anything/dist/index.js +0 -117
- package/node_modules/case-anything/package.json +0 -114
- package/node_modules/detect-libc/.npmignore +0 -7
- package/node_modules/detect-libc/LICENSE +0 -201
- package/node_modules/detect-libc/README.md +0 -78
- package/node_modules/detect-libc/bin/detect-libc.js +0 -18
- package/node_modules/detect-libc/lib/detect-libc.js +0 -92
- package/node_modules/detect-libc/package.json +0 -35
- package/node_modules/dprint-node/LICENSE +0 -21
- package/node_modules/dprint-node/README.md +0 -29
- package/node_modules/dprint-node/dprint-node.darwin-arm64.node +0 -0
- package/node_modules/dprint-node/dprint-node.darwin-x64.node +0 -0
- package/node_modules/dprint-node/dprint-node.linux-arm64-gnu.node +0 -0
- package/node_modules/dprint-node/dprint-node.linux-arm64-musl.node +0 -0
- package/node_modules/dprint-node/dprint-node.linux-x64-gnu.node +0 -0
- package/node_modules/dprint-node/dprint-node.linux-x64-musl.node +0 -0
- package/node_modules/dprint-node/dprint-node.win32-x64-msvc.node +0 -0
- package/node_modules/dprint-node/index.d.ts +0 -3
- package/node_modules/dprint-node/index.js +0 -15
- package/node_modules/dprint-node/options.d.ts +0 -477
- package/node_modules/dprint-node/package.json +0 -29
- package/node_modules/long/LICENSE +0 -202
- package/node_modules/long/README.md +0 -280
- package/node_modules/long/index.d.ts +0 -457
- package/node_modules/long/index.js +0 -1467
- package/node_modules/long/package.json +0 -50
- package/node_modules/long/umd/index.d.ts +0 -2
- package/node_modules/long/umd/index.js +0 -1432
- package/node_modules/long/umd/package.json +0 -3
- package/node_modules/protobufjs/LICENSE +0 -39
- package/node_modules/protobufjs/README.md +0 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +0 -7381
- package/node_modules/protobufjs/dist/light/protobuf.js.map +0 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +0 -8
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +0 -2736
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -8
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -1
- package/node_modules/protobufjs/dist/protobuf.js +0 -9088
- package/node_modules/protobufjs/dist/protobuf.js.map +0 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +0 -8
- package/node_modules/protobufjs/dist/protobuf.min.js.map +0 -1
- package/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/protobufjs/ext/debug/index.js +0 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +0 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +0 -54
- package/node_modules/protobufjs/google/LICENSE +0 -27
- package/node_modules/protobufjs/google/README.md +0 -1
- package/node_modules/protobufjs/google/api/annotations.json +0 -83
- package/node_modules/protobufjs/google/api/annotations.proto +0 -11
- package/node_modules/protobufjs/google/api/http.json +0 -86
- package/node_modules/protobufjs/google/api/http.proto +0 -31
- package/node_modules/protobufjs/google/protobuf/api.json +0 -118
- package/node_modules/protobufjs/google/protobuf/api.proto +0 -34
- package/node_modules/protobufjs/google/protobuf/descriptor.json +0 -739
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
- package/node_modules/protobufjs/google/protobuf/source_context.proto +0 -7
- package/node_modules/protobufjs/google/protobuf/type.json +0 -202
- package/node_modules/protobufjs/google/protobuf/type.proto +0 -89
- package/node_modules/protobufjs/index.d.ts +0 -2741
- package/node_modules/protobufjs/index.js +0 -4
- package/node_modules/protobufjs/light.d.ts +0 -2
- package/node_modules/protobufjs/light.js +0 -4
- package/node_modules/protobufjs/minimal.d.ts +0 -2
- package/node_modules/protobufjs/minimal.js +0 -4
- package/node_modules/protobufjs/package.json +0 -111
- package/node_modules/protobufjs/scripts/postinstall.js +0 -32
- package/node_modules/protobufjs/src/common.js +0 -399
- package/node_modules/protobufjs/src/converter.js +0 -301
- package/node_modules/protobufjs/src/decoder.js +0 -129
- package/node_modules/protobufjs/src/encoder.js +0 -100
- package/node_modules/protobufjs/src/enum.js +0 -198
- package/node_modules/protobufjs/src/field.js +0 -377
- package/node_modules/protobufjs/src/index-light.js +0 -104
- package/node_modules/protobufjs/src/index-minimal.js +0 -36
- package/node_modules/protobufjs/src/index.js +0 -12
- package/node_modules/protobufjs/src/mapfield.js +0 -126
- package/node_modules/protobufjs/src/message.js +0 -139
- package/node_modules/protobufjs/src/method.js +0 -160
- package/node_modules/protobufjs/src/namespace.js +0 -433
- package/node_modules/protobufjs/src/object.js +0 -243
- package/node_modules/protobufjs/src/oneof.js +0 -203
- package/node_modules/protobufjs/src/parse.js +0 -872
- package/node_modules/protobufjs/src/reader.js +0 -416
- package/node_modules/protobufjs/src/reader_buffer.js +0 -51
- package/node_modules/protobufjs/src/root.js +0 -368
- package/node_modules/protobufjs/src/roots.js +0 -18
- package/node_modules/protobufjs/src/rpc/service.js +0 -142
- package/node_modules/protobufjs/src/rpc.js +0 -36
- package/node_modules/protobufjs/src/service.js +0 -167
- package/node_modules/protobufjs/src/tokenize.js +0 -416
- package/node_modules/protobufjs/src/type.js +0 -589
- package/node_modules/protobufjs/src/types.js +0 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +0 -15
- package/node_modules/protobufjs/src/util/longbits.js +0 -200
- package/node_modules/protobufjs/src/util/minimal.js +0 -438
- package/node_modules/protobufjs/src/util.js +0 -212
- package/node_modules/protobufjs/src/verifier.js +0 -177
- package/node_modules/protobufjs/src/wrappers.js +0 -102
- package/node_modules/protobufjs/src/writer.js +0 -465
- package/node_modules/protobufjs/src/writer_buffer.js +0 -85
- package/node_modules/protobufjs/tsconfig.json +0 -8
- package/node_modules/ts-poet/.eslintrc.js +0 -12
- package/node_modules/ts-poet/.nvmrc +0 -1
- package/node_modules/ts-poet/.prettierrc +0 -3
- package/node_modules/ts-poet/LICENSE.txt +0 -204
- package/node_modules/ts-poet/README.md +0 -205
- package/node_modules/ts-poet/bench.js +0 -4
- package/node_modules/ts-poet/build/Code.d.ts +0 -64
- package/node_modules/ts-poet/build/Code.js +0 -255
- package/node_modules/ts-poet/build/ConditionalOutput.d.ts +0 -46
- package/node_modules/ts-poet/build/ConditionalOutput.js +0 -62
- package/node_modules/ts-poet/build/Import.d.ts +0 -161
- package/node_modules/ts-poet/build/Import.js +0 -354
- package/node_modules/ts-poet/build/Literal.d.ts +0 -11
- package/node_modules/ts-poet/build/Literal.js +0 -63
- package/node_modules/ts-poet/build/Node.d.ts +0 -7
- package/node_modules/ts-poet/build/Node.js +0 -6
- package/node_modules/ts-poet/build/index.d.ts +0 -23
- package/node_modules/ts-poet/build/index.js +0 -66
- package/node_modules/ts-poet/build/is-plain-object.d.ts +0 -7
- package/node_modules/ts-poet/build/is-plain-object.js +0 -31
- package/node_modules/ts-poet/build/saveFiles.d.ts +0 -25
- package/node_modules/ts-poet/build/saveFiles.js +0 -81
- package/node_modules/ts-poet/build/utils.d.ts +0 -2
- package/node_modules/ts-poet/build/utils.js +0 -18
- package/node_modules/ts-poet/jest.config.js +0 -9
- package/node_modules/ts-poet/package.json +0 -35
- package/node_modules/ts-proto/LICENSE +0 -201
- package/node_modules/ts-proto/README.markdown +0 -931
- package/node_modules/ts-proto/build/case.js +0 -47
- package/node_modules/ts-proto/build/context.js +0 -2
- package/node_modules/ts-proto/build/encode.js +0 -74
- package/node_modules/ts-proto/build/enums.js +0 -222
- package/node_modules/ts-proto/build/generate-async-iterable.js +0 -46
- package/node_modules/ts-proto/build/generate-generic-service-definition.js +0 -87
- package/node_modules/ts-proto/build/generate-grpc-js.js +0 -206
- package/node_modules/ts-proto/build/generate-grpc-web.js +0 -360
- package/node_modules/ts-proto/build/generate-nestjs.js +0 -159
- package/node_modules/ts-proto/build/generate-nice-grpc.js +0 -136
- package/node_modules/ts-proto/build/generate-services.js +0 -355
- package/node_modules/ts-proto/build/generate-struct-wrappers.js +0 -321
- package/node_modules/ts-proto/build/generate-type-registry.js +0 -51
- package/node_modules/ts-proto/build/main.js +0 -2103
- package/node_modules/ts-proto/build/options.js +0 -240
- package/node_modules/ts-proto/build/plugin.js +0 -78
- package/node_modules/ts-proto/build/schema.js +0 -243
- package/node_modules/ts-proto/build/sourceInfo.js +0 -106
- package/node_modules/ts-proto/build/types.js +0 -751
- package/node_modules/ts-proto/build/utils.js +0 -245
- package/node_modules/ts-proto/build/visit.js +0 -43
- package/node_modules/ts-proto/package.json +0 -74
- package/node_modules/ts-proto/protoc-gen-ts_proto +0 -2
- package/node_modules/ts-proto-descriptors/dist/google/protobuf/compiler/plugin.d.ts +0 -185
- package/node_modules/ts-proto-descriptors/dist/google/protobuf/compiler/plugin.js +0 -532
- package/node_modules/ts-proto-descriptors/dist/google/protobuf/descriptor.d.ts +0 -1155
- package/node_modules/ts-proto-descriptors/dist/google/protobuf/descriptor.js +0 -4349
- package/node_modules/ts-proto-descriptors/dist/index.d.ts +0 -2
- package/node_modules/ts-proto-descriptors/dist/index.js +0 -18
- package/node_modules/ts-proto-descriptors/package.json +0 -22
- package/node_modules/undici-types/README.md +0 -6
- package/node_modules/undici-types/agent.d.ts +0 -31
- package/node_modules/undici-types/api.d.ts +0 -43
- package/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/node_modules/undici-types/cache.d.ts +0 -36
- package/node_modules/undici-types/client.d.ts +0 -97
- package/node_modules/undici-types/connector.d.ts +0 -34
- package/node_modules/undici-types/content-type.d.ts +0 -21
- package/node_modules/undici-types/cookies.d.ts +0 -28
- package/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/node_modules/undici-types/errors.d.ts +0 -128
- package/node_modules/undici-types/fetch.d.ts +0 -209
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/undici-types/formdata.d.ts +0 -108
- package/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/node_modules/undici-types/global-origin.d.ts +0 -7
- package/node_modules/undici-types/handlers.d.ts +0 -9
- package/node_modules/undici-types/header.d.ts +0 -4
- package/node_modules/undici-types/index.d.ts +0 -63
- package/node_modules/undici-types/interceptors.d.ts +0 -5
- package/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/node_modules/undici-types/mock-client.d.ts +0 -25
- package/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/node_modules/undici-types/package.json +0 -55
- package/node_modules/undici-types/patch.d.ts +0 -71
- package/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/node_modules/undici-types/pool.d.ts +0 -28
- package/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/node_modules/undici-types/readable.d.ts +0 -61
- package/node_modules/undici-types/webidl.d.ts +0 -220
- package/node_modules/undici-types/websocket.d.ts +0 -131
package/.gitlab-ci.yml
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAE5B,+BAA2B;AAI3B,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,qBAAS,CAAA;IACT,yBAAa,CAAA;AACjB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED,MAAsB,cAAc;IAET;IACA;IACA;IACA;IAJvB,YACuB,MAAc,EACd,cAAuB,EACvB,OAAe,EACf,SAAiB;QAHjB,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAS;QACvB,YAAO,GAAP,OAAO,CAAQ;QACf,cAAS,GAAT,SAAS,CAAQ;IACrC,CAAC;IAIM,KAAK,CAAC,KAAK;QACjB,IAAI,KAAK,GAAG,EAAE,CAAA;QACd,MAAM,UAAU,GAAG,MAAM,IAAA,WAAI,EAAC,GAAG,IAAI,CAAC,OAAO,aAAa,CAAC,CAAA;QAE3D,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAE5B,+BAA2B;AAI3B,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,qBAAS,CAAA;IACT,yBAAa,CAAA;AACjB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAED,MAAsB,cAAc;IAET;IACA;IACA;IACA;IAJvB,YACuB,MAAc,EACd,cAAuB,EACvB,OAAe,EACf,SAAiB;QAHjB,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAS;QACvB,YAAO,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C,CAAC;iBACd,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;iBAC9E,IAAI,CAAC,GAAG,CAAC,CAAA;YAEd,OAAO,EAAE,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAA;QAC7E,CAAC,EAAE,EAAE,CAAC,CAAA;IACV,CAAC;CACJ;AAnDD,wCAmDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsCommandBuilder.js","sourceRoot":"","sources":["../../src/command/tsCommandBuilder.ts"],"names":[],"mappings":";;;;;AAAA,2DAA6C;AAC7C,sDAAwB;AAExB,mCAAkD;AAElD,MAAqB,gBAAiB,SAAQ,sBAAc;IACxD,KAAK,CAAC,aAAa;QACf,IAAI,eAAyB,CAAA;QAE7B,IAAI,iBAAE,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"tsCommandBuilder.js","sourceRoot":"","sources":["../../src/command/tsCommandBuilder.ts"],"names":[],"mappings":";;;;;AAAA,2DAA6C;AAC7C,sDAAwB;AAExB,mCAAkD;AAElD,MAAqB,gBAAiB,SAAQ,sBAAc;IACxD,KAAK,CAAC,aAAa;QACf,IAAI,eAAyB,CAAA;QAE7B,IAAI,iBAAE,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAClE,eAAe,GAAG,gBAAQ,CAAC,EAAE,CAAA;QACjC,CAAC;aAAM,IAAI,iBAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YACvC,eAA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CAAC,IAAI,CAAC,4EAA4E,CAAC,CAAA;QAC9F,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,uCAAuC,CAAC,CAAA;QAChG,CAAC;QAED,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,mBAAmB,EAAE,aAAa,EAAE,eAAe,CAAC,CAAA;QACjG,KAAK,MAAM,WAAW,IAAI,SAAS,EAAE,CAAC;YAClC,MAAM,UAAU,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,KAAK,IAAI,WAAW,EAAE,CAAC,CAAA;YAEnG,OAAO,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAA;QAC/B,CAAC;QAED,OAAO,OAAO,CAAA;IAClB,CAAC;CACJ;AApED,mCAoEC"}
|
package/dist/genproto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genproto.js","sourceRoot":"","sources":["../src/genproto.ts"],"names":[],"mappings":";;;;;;AAEA,2DAA6C;AAC7C,sDAAwB;AACxB,0DAA4B;AAE5B,uCAAmC;AACnC,kDAAyB;AAEzB,uCAAoD;AACpD,sFAA6D;AAC7D,kFAAyD;AACzD,sDAA6B;AAC7B,oDAA2B;AAE3B,KAAK,UAAU,IAAI;IACf,MAAM,YAAY,GAAG,MAAM,IAAA,mBAAQ,EAAC,QAAQ,CAAC,CAAA;IAE7C,IAAI,CAAC,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"genproto.js","sourceRoot":"","sources":["../src/genproto.ts"],"names":[],"mappings":";;;;;;AAEA,2DAA6C;AAC7C,sDAAwB;AACxB,0DAA4B;AAE5B,uCAAmC;AACnC,kDAAyB;AAEzB,uCAAoD;AACpD,sFAA6D;AAC7D,kFAAyD;AACzD,sDAA6B;AAC7B,oDAA2B;AAE3B,KAAK,UAAU,IAAI;IACf,MAAM,YAAY,GAAG,M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zB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;AAAA,MAAqB,MAAM;IACN,UAAU,CAAS;IAEpC,YAAY,UAAmB;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAChC,CAAC;IAED,GAAG,CAAC,GAAG,OAAiB;QACpB,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAA;IAC3B,CAAC;IAED,QAAQ,CAAC,GAAG,OAAiB;QACzB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,OAAM;QACV,CAAC;QAED,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAA;IAC3B,CAAC;CACJ;AApBD,yBAoBC"}
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;AAAA,qCAAwC;AACxC,0DAA4B;AAE5B,kBAAe;IACX,KAAK,CAAC,yBAAyB,CAAC,GAAW;QACvC,MAAM,KAAK,GAAG,MAAM,kBAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC5D,MAAM,OAAO,GAAa,EAAE,CAAA;QAE5B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;AAAA,qCAAwC;AACxC,0DAA4B;AAE5B,kBAAe;IACX,KAAK,CAAC,yBAAyB,CAAC,GAAW;QACvC,MAAM,KAAK,GAAG,MAAM,kBAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC5D,MAAM,OAAO,GAAa,EAAE,CAAA;QAE5B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,OAAO,GAAG,mBAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;YAC5C,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACrB,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAA;gBAC7C,OAAO,CAAC,IAAI,CAAC,oBAAoB,IAAI,CAAC,IAAI,aAAa,CAAC,CAAA;YAC5D,CAAC;iBAAM,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;gBAChF,MAAM,kBAAkB,GAAG,mBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;gBAE1D,OAAO,CAAC,IAAI,CAAC,oBAAoB,kBAAkB,OAAO,CAAC,CAAA;YAC/D,CAAC;QACL,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,MAAM,aAAa,GAAG,mBAAI,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YAEhD,MAAM,kBAAE,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;QAClE,CAAC;IACL,CAAC;CACJ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diia-inhouse/genproto",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "JS codegen from proto with imports from @diia-inhouse/types",
|
|
5
5
|
"bin": {
|
|
6
6
|
"genproto": "./dist/genproto.js"
|
|
@@ -17,25 +17,28 @@
|
|
|
17
17
|
"find-circulars": "madge --circular --extensions ts ./"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=20"
|
|
21
21
|
},
|
|
22
22
|
"author": "Diia",
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"glob": "
|
|
25
|
+
"glob": "11.0.0",
|
|
26
26
|
"lookpath": "1.2.2",
|
|
27
|
-
"ts-proto": "1.164.0",
|
|
28
27
|
"yargs": "17.7.2"
|
|
29
28
|
},
|
|
30
|
-
"
|
|
31
|
-
"ts-proto"
|
|
32
|
-
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"ts-proto": ">=1.181.0"
|
|
31
|
+
},
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"@diia-inhouse/configs": "
|
|
33
|
+
"@diia-inhouse/configs": "2.0.0",
|
|
35
34
|
"@diia-inhouse/eslint-config": "5.1.0",
|
|
36
|
-
"@types/node": "20.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"@types/node": "20.14.10",
|
|
36
|
+
"eslint": "8.57.0",
|
|
37
|
+
"lockfile-lint": "4.14.0",
|
|
38
|
+
"madge": "7.0.0",
|
|
39
|
+
"prettier": "3.3.2",
|
|
40
|
+
"rimraf": "6.0.1",
|
|
41
|
+
"semantic-release": "24.0.0"
|
|
39
42
|
},
|
|
40
43
|
"eslintConfig": {
|
|
41
44
|
"extends": "@diia-inhouse/eslint-config",
|
|
@@ -65,6 +68,5 @@
|
|
|
65
68
|
"prettier": "@diia-inhouse/eslint-config/prettier",
|
|
66
69
|
"madge": {
|
|
67
70
|
"tsConfig": "./tsconfig.json"
|
|
68
|
-
}
|
|
69
|
-
"peerDependencies": null
|
|
71
|
+
}
|
|
70
72
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2016, Daniel Wirtz All rights reserved.
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without
|
|
4
|
-
modification, are permitted provided that the following conditions are
|
|
5
|
-
met:
|
|
6
|
-
|
|
7
|
-
* Redistributions of source code must retain the above copyright
|
|
8
|
-
notice, this list of conditions and the following disclaimer.
|
|
9
|
-
* Redistributions in binary form must reproduce the above copyright
|
|
10
|
-
notice, this list of conditions and the following disclaimer in the
|
|
11
|
-
documentation and/or other materials provided with the distribution.
|
|
12
|
-
* Neither the name of its author, nor the names of its contributors
|
|
13
|
-
may be used to endorse or promote products derived from this software
|
|
14
|
-
without specific prior written permission.
|
|
15
|
-
|
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
18
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
19
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
20
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
21
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
22
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
23
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
24
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
25
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@protobufjs/aspromise
|
|
2
|
-
=====================
|
|
3
|
-
[](https://www.npmjs.com/package/@protobufjs/aspromise)
|
|
4
|
-
|
|
5
|
-
Returns a promise from a node-style callback function.
|
|
6
|
-
|
|
7
|
-
API
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
* **asPromise(fn: `function`, ctx: `Object`, ...params: `*`): `Promise<*>`**<br />
|
|
11
|
-
Returns a promise from a node-style callback function.
|
|
12
|
-
|
|
13
|
-
**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export = asPromise;
|
|
2
|
-
|
|
3
|
-
type asPromiseCallback = (error: Error | null, ...params: any[]) => {};
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Returns a promise from a node-style callback function.
|
|
7
|
-
* @memberof util
|
|
8
|
-
* @param {asPromiseCallback} fn Function to call
|
|
9
|
-
* @param {*} ctx Function context
|
|
10
|
-
* @param {...*} params Function arguments
|
|
11
|
-
* @returns {Promise<*>} Promisified function
|
|
12
|
-
*/
|
|
13
|
-
declare function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise<any>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = asPromise;
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Callback as used by {@link util.asPromise}.
|
|
6
|
-
* @typedef asPromiseCallback
|
|
7
|
-
* @type {function}
|
|
8
|
-
* @param {Error|null} error Error, if any
|
|
9
|
-
* @param {...*} params Additional arguments
|
|
10
|
-
* @returns {undefined}
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Returns a promise from a node-style callback function.
|
|
15
|
-
* @memberof util
|
|
16
|
-
* @param {asPromiseCallback} fn Function to call
|
|
17
|
-
* @param {*} ctx Function context
|
|
18
|
-
* @param {...*} params Function arguments
|
|
19
|
-
* @returns {Promise<*>} Promisified function
|
|
20
|
-
*/
|
|
21
|
-
function asPromise(fn, ctx/*, varargs */) {
|
|
22
|
-
var params = new Array(arguments.length - 1),
|
|
23
|
-
offset = 0,
|
|
24
|
-
index = 2,
|
|
25
|
-
pending = true;
|
|
26
|
-
while (index < arguments.length)
|
|
27
|
-
params[offset++] = arguments[index++];
|
|
28
|
-
return new Promise(function executor(resolve, reject) {
|
|
29
|
-
params[offset] = function callback(err/*, varargs */) {
|
|
30
|
-
if (pending) {
|
|
31
|
-
pending = false;
|
|
32
|
-
if (err)
|
|
33
|
-
reject(err);
|
|
34
|
-
else {
|
|
35
|
-
var params = new Array(arguments.length - 1),
|
|
36
|
-
offset = 0;
|
|
37
|
-
while (offset < params.length)
|
|
38
|
-
params[offset++] = arguments[offset];
|
|
39
|
-
resolve.apply(null, params);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
fn.apply(ctx || null, params);
|
|
45
|
-
} catch (err) {
|
|
46
|
-
if (pending) {
|
|
47
|
-
pending = false;
|
|
48
|
-
reject(err);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@protobufjs/aspromise",
|
|
3
|
-
"description": "Returns a promise from a node-style callback function.",
|
|
4
|
-
"version": "1.1.2",
|
|
5
|
-
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/dcodeIO/protobuf.js.git"
|
|
9
|
-
},
|
|
10
|
-
"license": "BSD-3-Clause",
|
|
11
|
-
"main": "index.js",
|
|
12
|
-
"types": "index.d.ts",
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"istanbul": "^0.4.5",
|
|
15
|
-
"tape": "^4.6.3"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "tape tests/*.js",
|
|
19
|
-
"coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
var tape = require("tape");
|
|
2
|
-
|
|
3
|
-
var asPromise = require("..");
|
|
4
|
-
|
|
5
|
-
tape.test("aspromise", function(test) {
|
|
6
|
-
|
|
7
|
-
test.test(this.name + " - resolve", function(test) {
|
|
8
|
-
|
|
9
|
-
function fn(arg1, arg2, callback) {
|
|
10
|
-
test.equal(this, ctx, "function should be called with this = ctx");
|
|
11
|
-
test.equal(arg1, 1, "function should be called with arg1 = 1");
|
|
12
|
-
test.equal(arg2, 2, "function should be called with arg2 = 2");
|
|
13
|
-
callback(null, arg2);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var ctx = {};
|
|
17
|
-
|
|
18
|
-
var promise = asPromise(fn, ctx, 1, 2);
|
|
19
|
-
promise.then(function(arg2) {
|
|
20
|
-
test.equal(arg2, 2, "promise should be resolved with arg2 = 2");
|
|
21
|
-
test.end();
|
|
22
|
-
}).catch(function(err) {
|
|
23
|
-
test.fail("promise should not be rejected (" + err + ")");
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
test.test(this.name + " - reject", function(test) {
|
|
28
|
-
|
|
29
|
-
function fn(arg1, arg2, callback) {
|
|
30
|
-
test.equal(this, ctx, "function should be called with this = ctx");
|
|
31
|
-
test.equal(arg1, 1, "function should be called with arg1 = 1");
|
|
32
|
-
test.equal(arg2, 2, "function should be called with arg2 = 2");
|
|
33
|
-
callback(arg1);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var ctx = {};
|
|
37
|
-
|
|
38
|
-
var promise = asPromise(fn, ctx, 1, 2);
|
|
39
|
-
promise.then(function() {
|
|
40
|
-
test.fail("promise should not be resolved");
|
|
41
|
-
}).catch(function(err) {
|
|
42
|
-
test.equal(err, 1, "promise should be rejected with err = 1");
|
|
43
|
-
test.end();
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
test.test(this.name + " - resolve twice", function(test) {
|
|
48
|
-
|
|
49
|
-
function fn(arg1, arg2, callback) {
|
|
50
|
-
test.equal(this, ctx, "function should be called with this = ctx");
|
|
51
|
-
test.equal(arg1, 1, "function should be called with arg1 = 1");
|
|
52
|
-
test.equal(arg2, 2, "function should be called with arg2 = 2");
|
|
53
|
-
callback(null, arg2);
|
|
54
|
-
callback(null, arg1);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var ctx = {};
|
|
58
|
-
var count = 0;
|
|
59
|
-
|
|
60
|
-
var promise = asPromise(fn, ctx, 1, 2);
|
|
61
|
-
promise.then(function(arg2) {
|
|
62
|
-
test.equal(arg2, 2, "promise should be resolved with arg2 = 2");
|
|
63
|
-
if (++count > 1)
|
|
64
|
-
test.fail("promise should not be resolved twice");
|
|
65
|
-
test.end();
|
|
66
|
-
}).catch(function(err) {
|
|
67
|
-
test.fail("promise should not be rejected (" + err + ")");
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
test.test(this.name + " - reject twice", function(test) {
|
|
72
|
-
|
|
73
|
-
function fn(arg1, arg2, callback) {
|
|
74
|
-
test.equal(this, ctx, "function should be called with this = ctx");
|
|
75
|
-
test.equal(arg1, 1, "function should be called with arg1 = 1");
|
|
76
|
-
test.equal(arg2, 2, "function should be called with arg2 = 2");
|
|
77
|
-
callback(arg1);
|
|
78
|
-
callback(arg2);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
var ctx = {};
|
|
82
|
-
var count = 0;
|
|
83
|
-
|
|
84
|
-
var promise = asPromise(fn, ctx, 1, 2);
|
|
85
|
-
promise.then(function() {
|
|
86
|
-
test.fail("promise should not be resolved");
|
|
87
|
-
}).catch(function(err) {
|
|
88
|
-
test.equal(err, 1, "promise should be rejected with err = 1");
|
|
89
|
-
if (++count > 1)
|
|
90
|
-
test.fail("promise should not be rejected twice");
|
|
91
|
-
test.end();
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
test.test(this.name + " - reject error", function(test) {
|
|
96
|
-
|
|
97
|
-
function fn(callback) {
|
|
98
|
-
test.ok(arguments.length === 1 && typeof callback === "function", "function should be called with just a callback");
|
|
99
|
-
throw 3;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
var promise = asPromise(fn, null);
|
|
103
|
-
promise.then(function() {
|
|
104
|
-
test.fail("promise should not be resolved");
|
|
105
|
-
}).catch(function(err) {
|
|
106
|
-
test.equal(err, 3, "promise should be rejected with err = 3");
|
|
107
|
-
test.end();
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
test.test(this.name + " - reject and error", function(test) {
|
|
112
|
-
|
|
113
|
-
function fn(callback) {
|
|
114
|
-
callback(3);
|
|
115
|
-
throw 4;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
var count = 0;
|
|
119
|
-
|
|
120
|
-
var promise = asPromise(fn, null);
|
|
121
|
-
promise.then(function() {
|
|
122
|
-
test.fail("promise should not be resolved");
|
|
123
|
-
}).catch(function(err) {
|
|
124
|
-
test.equal(err, 3, "promise should be rejected with err = 3");
|
|
125
|
-
if (++count > 1)
|
|
126
|
-
test.fail("promise should not be rejected twice");
|
|
127
|
-
test.end();
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2016, Daniel Wirtz All rights reserved.
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without
|
|
4
|
-
modification, are permitted provided that the following conditions are
|
|
5
|
-
met:
|
|
6
|
-
|
|
7
|
-
* Redistributions of source code must retain the above copyright
|
|
8
|
-
notice, this list of conditions and the following disclaimer.
|
|
9
|
-
* Redistributions in binary form must reproduce the above copyright
|
|
10
|
-
notice, this list of conditions and the following disclaimer in the
|
|
11
|
-
documentation and/or other materials provided with the distribution.
|
|
12
|
-
* Neither the name of its author, nor the names of its contributors
|
|
13
|
-
may be used to endorse or promote products derived from this software
|
|
14
|
-
without specific prior written permission.
|
|
15
|
-
|
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
18
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
19
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
20
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
21
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
22
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
23
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
24
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
25
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@protobufjs/base64
|
|
2
|
-
==================
|
|
3
|
-
[](https://www.npmjs.com/package/@protobufjs/base64)
|
|
4
|
-
|
|
5
|
-
A minimal base64 implementation for number arrays.
|
|
6
|
-
|
|
7
|
-
API
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
* **base64.length(string: `string`): `number`**<br />
|
|
11
|
-
Calculates the byte length of a base64 encoded string.
|
|
12
|
-
|
|
13
|
-
* **base64.encode(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**<br />
|
|
14
|
-
Encodes a buffer to a base64 encoded string.
|
|
15
|
-
|
|
16
|
-
* **base64.decode(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**<br />
|
|
17
|
-
Decodes a base64 encoded string to a buffer.
|
|
18
|
-
|
|
19
|
-
**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates the byte length of a base64 encoded string.
|
|
3
|
-
* @param {string} string Base64 encoded string
|
|
4
|
-
* @returns {number} Byte length
|
|
5
|
-
*/
|
|
6
|
-
export function length(string: string): number;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Encodes a buffer to a base64 encoded string.
|
|
10
|
-
* @param {Uint8Array} buffer Source buffer
|
|
11
|
-
* @param {number} start Source start
|
|
12
|
-
* @param {number} end Source end
|
|
13
|
-
* @returns {string} Base64 encoded string
|
|
14
|
-
*/
|
|
15
|
-
export function encode(buffer: Uint8Array, start: number, end: number): string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Decodes a base64 encoded string to a buffer.
|
|
19
|
-
* @param {string} string Source string
|
|
20
|
-
* @param {Uint8Array} buffer Destination buffer
|
|
21
|
-
* @param {number} offset Destination offset
|
|
22
|
-
* @returns {number} Number of bytes written
|
|
23
|
-
* @throws {Error} If encoding is invalid
|
|
24
|
-
*/
|
|
25
|
-
export function decode(string: string, buffer: Uint8Array, offset: number): number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Tests if the specified string appears to be base64 encoded.
|
|
29
|
-
* @param {string} string String to test
|
|
30
|
-
* @returns {boolean} `true` if it appears to be base64 encoded, otherwise false
|
|
31
|
-
*/
|
|
32
|
-
export function test(string: string): boolean;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A minimal base64 implementation for number arrays.
|
|
5
|
-
* @memberof util
|
|
6
|
-
* @namespace
|
|
7
|
-
*/
|
|
8
|
-
var base64 = exports;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Calculates the byte length of a base64 encoded string.
|
|
12
|
-
* @param {string} string Base64 encoded string
|
|
13
|
-
* @returns {number} Byte length
|
|
14
|
-
*/
|
|
15
|
-
base64.length = function length(string) {
|
|
16
|
-
var p = string.length;
|
|
17
|
-
if (!p)
|
|
18
|
-
return 0;
|
|
19
|
-
var n = 0;
|
|
20
|
-
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
21
|
-
++n;
|
|
22
|
-
return Math.ceil(string.length * 3) / 4 - n;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
// Base64 encoding table
|
|
26
|
-
var b64 = new Array(64);
|
|
27
|
-
|
|
28
|
-
// Base64 decoding table
|
|
29
|
-
var s64 = new Array(123);
|
|
30
|
-
|
|
31
|
-
// 65..90, 97..122, 48..57, 43, 47
|
|
32
|
-
for (var i = 0; i < 64;)
|
|
33
|
-
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Encodes a buffer to a base64 encoded string.
|
|
37
|
-
* @param {Uint8Array} buffer Source buffer
|
|
38
|
-
* @param {number} start Source start
|
|
39
|
-
* @param {number} end Source end
|
|
40
|
-
* @returns {string} Base64 encoded string
|
|
41
|
-
*/
|
|
42
|
-
base64.encode = function encode(buffer, start, end) {
|
|
43
|
-
var parts = null,
|
|
44
|
-
chunk = [];
|
|
45
|
-
var i = 0, // output index
|
|
46
|
-
j = 0, // goto index
|
|
47
|
-
t; // temporary
|
|
48
|
-
while (start < end) {
|
|
49
|
-
var b = buffer[start++];
|
|
50
|
-
switch (j) {
|
|
51
|
-
case 0:
|
|
52
|
-
chunk[i++] = b64[b >> 2];
|
|
53
|
-
t = (b & 3) << 4;
|
|
54
|
-
j = 1;
|
|
55
|
-
break;
|
|
56
|
-
case 1:
|
|
57
|
-
chunk[i++] = b64[t | b >> 4];
|
|
58
|
-
t = (b & 15) << 2;
|
|
59
|
-
j = 2;
|
|
60
|
-
break;
|
|
61
|
-
case 2:
|
|
62
|
-
chunk[i++] = b64[t | b >> 6];
|
|
63
|
-
chunk[i++] = b64[b & 63];
|
|
64
|
-
j = 0;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
if (i > 8191) {
|
|
68
|
-
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
69
|
-
i = 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
if (j) {
|
|
73
|
-
chunk[i++] = b64[t];
|
|
74
|
-
chunk[i++] = 61;
|
|
75
|
-
if (j === 1)
|
|
76
|
-
chunk[i++] = 61;
|
|
77
|
-
}
|
|
78
|
-
if (parts) {
|
|
79
|
-
if (i)
|
|
80
|
-
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
81
|
-
return parts.join("");
|
|
82
|
-
}
|
|
83
|
-
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
var invalidEncoding = "invalid encoding";
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Decodes a base64 encoded string to a buffer.
|
|
90
|
-
* @param {string} string Source string
|
|
91
|
-
* @param {Uint8Array} buffer Destination buffer
|
|
92
|
-
* @param {number} offset Destination offset
|
|
93
|
-
* @returns {number} Number of bytes written
|
|
94
|
-
* @throws {Error} If encoding is invalid
|
|
95
|
-
*/
|
|
96
|
-
base64.decode = function decode(string, buffer, offset) {
|
|
97
|
-
var start = offset;
|
|
98
|
-
var j = 0, // goto index
|
|
99
|
-
t; // temporary
|
|
100
|
-
for (var i = 0; i < string.length;) {
|
|
101
|
-
var c = string.charCodeAt(i++);
|
|
102
|
-
if (c === 61 && j > 1)
|
|
103
|
-
break;
|
|
104
|
-
if ((c = s64[c]) === undefined)
|
|
105
|
-
throw Error(invalidEncoding);
|
|
106
|
-
switch (j) {
|
|
107
|
-
case 0:
|
|
108
|
-
t = c;
|
|
109
|
-
j = 1;
|
|
110
|
-
break;
|
|
111
|
-
case 1:
|
|
112
|
-
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
113
|
-
t = c;
|
|
114
|
-
j = 2;
|
|
115
|
-
break;
|
|
116
|
-
case 2:
|
|
117
|
-
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
118
|
-
t = c;
|
|
119
|
-
j = 3;
|
|
120
|
-
break;
|
|
121
|
-
case 3:
|
|
122
|
-
buffer[offset++] = (t & 3) << 6 | c;
|
|
123
|
-
j = 0;
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (j === 1)
|
|
128
|
-
throw Error(invalidEncoding);
|
|
129
|
-
return offset - start;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Tests if the specified string appears to be base64 encoded.
|
|
134
|
-
* @param {string} string String to test
|
|
135
|
-
* @returns {boolean} `true` if probably base64 encoded, otherwise false
|
|
136
|
-
*/
|
|
137
|
-
base64.test = function test(string) {
|
|
138
|
-
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
139
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@protobufjs/base64",
|
|
3
|
-
"description": "A minimal base64 implementation for number arrays.",
|
|
4
|
-
"version": "1.1.2",
|
|
5
|
-
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/dcodeIO/protobuf.js.git"
|
|
9
|
-
},
|
|
10
|
-
"license": "BSD-3-Clause",
|
|
11
|
-
"main": "index.js",
|
|
12
|
-
"types": "index.d.ts",
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"istanbul": "^0.4.5",
|
|
15
|
-
"tape": "^4.6.3"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "tape tests/*.js",
|
|
19
|
-
"coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js"
|
|
20
|
-
}
|
|
21
|
-
}
|