agent-skill-manager 1.22.0 → 2.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.
- package/README.md +23 -42
- package/data/skill-index/Affitor_affiliate-skills.json +62 -2
- package/data/skill-index/Eronred_aso-skills.json +1 -1
- package/data/skill-index/GPTomics_bioSkills.json +173 -17
- package/data/skill-index/Galaxy-Dawn_claude-scholar.json +14 -2
- package/data/skill-index/Imbad0202_academic-research-skills.json +19 -19
- package/data/skill-index/K-Dense-AI_claude-scientific-skills.json +39 -555
- package/data/skill-index/Leonxlnx_taste-skill.json +14 -2
- package/data/skill-index/Master-cai_Research-Paper-Writing-Skills.json +1 -1
- package/data/skill-index/MiniMax-AI_skills.json +103 -7
- package/data/skill-index/affaan-m_everything-claude-code.json +4045 -733
- package/data/skill-index/alirezarezvani_claude-skills.json +686 -2
- package/data/skill-index/anthropics_skills.json +2 -2
- package/data/skill-index/bytedance_deer-flow.json +62 -2
- package/data/skill-index/coreyhaines31_marketingskills.json +44 -8
- package/data/skill-index/github_awesome-copilot.json +3142 -898
- package/data/skill-index/heygen-com_hyperframes.json +69 -0
- package/data/skill-index/himself65_finance-skills.json +175 -19
- package/data/skill-index/kemiljk_fluid-design.json +1 -1
- package/data/skill-index/kepano_obsidian-skills.json +2 -2
- package/data/skill-index/luongnv89_skills.json +47 -35
- package/data/skill-index/mattpocock_skills.json +70 -34
- package/data/skill-index/nextlevelbuilder_ui-ux-pro-max-skill.json +1 -1
- package/data/skill-index/obra_superpowers.json +1 -1
- package/data/skill-index/sickn33_antigravity-awesome-skills.json +42937 -5491
- package/data/skill-index/slavingia_skills.json +1 -1
- package/data/skill-index-resources.json +10 -1
- package/dist/agent-skill-manager.js +385 -405
- package/dist/{chunk-2bvch8gs.js → chunk-6mbpytcj.js} +1 -1
- package/dist/{chunk-thr0x97h.js → chunk-x537ndd4.js} +1 -1
- package/package.json +1 -5
- package/node_modules/@balena/dockerignore/LICENSE.md +0 -206
- package/node_modules/@balena/dockerignore/README.md +0 -261
- package/node_modules/@balena/dockerignore/ignore.js +0 -363
- package/node_modules/@balena/dockerignore/index.d.ts +0 -45
- package/node_modules/@balena/dockerignore/package.json +0 -49
- package/node_modules/@grpc/grpc-js/LICENSE +0 -201
- package/node_modules/@grpc/grpc-js/README.md +0 -84
- package/node_modules/@grpc/grpc-js/build/src/admin.d.ts +0 -11
- package/node_modules/@grpc/grpc-js/build/src/admin.js +0 -30
- package/node_modules/@grpc/grpc-js/build/src/admin.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/auth-context.d.ts +0 -5
- package/node_modules/@grpc/grpc-js/build/src/auth-context.js +0 -19
- package/node_modules/@grpc/grpc-js/build/src/auth-context.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts +0 -94
- package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -191
- package/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts +0 -57
- package/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
- package/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts +0 -101
- package/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -100
- package/node_modules/@grpc/grpc-js/build/src/call-interface.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/call-number.d.ts +0 -1
- package/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -24
- package/node_modules/@grpc/grpc-js/build/src/call-number.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/call.d.ts +0 -86
- package/node_modules/@grpc/grpc-js/build/src/call.js +0 -152
- package/node_modules/@grpc/grpc-js/build/src/call.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/certificate-provider.d.ts +0 -43
- package/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +0 -141
- package/node_modules/@grpc/grpc-js/build/src/certificate-provider.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts +0 -119
- package/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -430
- package/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts +0 -81
- package/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -73
- package/node_modules/@grpc/grpc-js/build/src/channel-options.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/channel.d.ts +0 -76
- package/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
- package/node_modules/@grpc/grpc-js/build/src/channel.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/channelz.d.ts +0 -158
- package/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -598
- package/node_modules/@grpc/grpc-js/build/src/channelz.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts +0 -123
- package/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -434
- package/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/client.d.ts +0 -74
- package/node_modules/@grpc/grpc-js/build/src/client.js +0 -433
- package/node_modules/@grpc/grpc-js/build/src/client.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.d.ts +0 -5
- package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +0 -26
- package/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/compression-filter.d.ts +0 -28
- package/node_modules/@grpc/grpc-js/build/src/compression-filter.js +0 -295
- package/node_modules/@grpc/grpc-js/build/src/compression-filter.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/connectivity-state.d.ts +0 -7
- package/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +0 -28
- package/node_modules/@grpc/grpc-js/build/src/connectivity-state.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/constants.d.ts +0 -38
- package/node_modules/@grpc/grpc-js/build/src/constants.js +0 -64
- package/node_modules/@grpc/grpc-js/build/src/constants.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/control-plane-status.d.ts +0 -5
- package/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +0 -42
- package/node_modules/@grpc/grpc-js/build/src/control-plane-status.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/deadline.d.ts +0 -22
- package/node_modules/@grpc/grpc-js/build/src/deadline.js +0 -108
- package/node_modules/@grpc/grpc-js/build/src/deadline.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/duration.d.ts +0 -15
- package/node_modules/@grpc/grpc-js/build/src/duration.js +0 -74
- package/node_modules/@grpc/grpc-js/build/src/duration.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/environment.d.ts +0 -1
- package/node_modules/@grpc/grpc-js/build/src/environment.js +0 -22
- package/node_modules/@grpc/grpc-js/build/src/environment.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/error.d.ts +0 -2
- package/node_modules/@grpc/grpc-js/build/src/error.js +0 -40
- package/node_modules/@grpc/grpc-js/build/src/error.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/events.d.ts +0 -9
- package/node_modules/@grpc/grpc-js/build/src/events.js +0 -19
- package/node_modules/@grpc/grpc-js/build/src/events.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/experimental.d.ts +0 -20
- package/node_modules/@grpc/grpc-js/build/src/experimental.js +0 -58
- package/node_modules/@grpc/grpc-js/build/src/experimental.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/filter-stack.d.ts +0 -21
- package/node_modules/@grpc/grpc-js/build/src/filter-stack.js +0 -82
- package/node_modules/@grpc/grpc-js/build/src/filter-stack.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/filter.d.ts +0 -25
- package/node_modules/@grpc/grpc-js/build/src/filter.js +0 -38
- package/node_modules/@grpc/grpc-js/build/src/filter.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/channelz.d.ts +0 -118
- package/node_modules/@grpc/grpc-js/build/src/generated/channelz.js +0 -3
- package/node_modules/@grpc/grpc-js/build/src/generated/channelz.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.d.ts +0 -9
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.d.ts +0 -51
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.d.ts +0 -9
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.d.ts +0 -16
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.js +0 -19
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Edition.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.d.ts +0 -22
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.d.ts +0 -11
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.d.ts +0 -17
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/EnumValueOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.d.ts +0 -34
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.js +0 -10
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ExtensionRangeOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.d.ts +0 -83
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.js +0 -56
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSet.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.d.ts +0 -22
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FeatureSetDefaults.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.d.ts +0 -56
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.js +0 -32
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.d.ts +0 -99
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.js +0 -36
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FieldOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.d.ts +0 -39
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.d.ts +0 -7
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileDescriptorSet.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.d.ts +0 -61
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.js +0 -11
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FileOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.js +0 -11
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/GeneratedCodeInfo.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.d.ts +0 -7
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.d.ts +0 -28
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MessageOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.d.ts +0 -17
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.d.ts +0 -21
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.js +0 -11
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/MethodOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.d.ts +0 -9
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.d.ts +0 -12
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/OneofOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.d.ts +0 -12
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceDescriptorProto.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.d.ts +0 -12
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/ServiceOptions.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.d.ts +0 -20
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SourceCodeInfo.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.d.ts +0 -7
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.js +0 -10
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/SymbolVisibility.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.d.ts +0 -9
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.d.ts +0 -6
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.d.ts +0 -7
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UninterpretedOption.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.d.ts +0 -79
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.d.ts +0 -64
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.d.ts +0 -24
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js +0 -14
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.d.ts +0 -72
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.d.ts +0 -41
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.d.ts +0 -74
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js +0 -15
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.d.ts +0 -159
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.d.ts +0 -13
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.d.ts +0 -15
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.d.ts +0 -13
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.d.ts +0 -15
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.d.ts +0 -35
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.d.ts +0 -29
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.d.ts +0 -33
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.d.ts +0 -29
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.d.ts +0 -25
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.d.ts +0 -15
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.d.ts +0 -13
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.d.ts +0 -15
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.d.ts +0 -33
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.d.ts +0 -29
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.d.ts +0 -79
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.d.ts +0 -41
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.d.ts +0 -53
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.d.ts +0 -66
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.d.ts +0 -146
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.d.ts +0 -43
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.d.ts +0 -29
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.d.ts +0 -70
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.d.ts +0 -15
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.d.ts +0 -66
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/orca.d.ts +0 -145
- package/node_modules/@grpc/grpc-js/build/src/generated/orca.js +0 -3
- package/node_modules/@grpc/grpc-js/build/src/generated/orca.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.d.ts +0 -40
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/AnyRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.d.ts +0 -18
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/BoolRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.d.ts +0 -149
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/BytesRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/DoubleRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.d.ts +0 -89
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/DurationRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.d.ts +0 -48
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/EnumRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.d.ts +0 -98
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/FieldRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed32Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.d.ts +0 -83
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Fixed64Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/FloatRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int32Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.d.ts +0 -83
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/Int64Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.d.ts +0 -30
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.js +0 -19
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/KnownRegex.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.d.ts +0 -62
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/MapRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.d.ts +0 -30
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/MessageRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.d.ts +0 -56
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/RepeatedRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed32Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.d.ts +0 -83
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SFixed64Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt32Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.d.ts +0 -83
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/SInt64Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.d.ts +0 -284
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/StringRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.d.ts +0 -102
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/TimestampRules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt32Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.d.ts +0 -83
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/validate/UInt64Rules.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.d.ts +0 -121
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/OrcaLoadReport.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.d.ts +0 -36
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OpenRcaService.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.d.ts +0 -25
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.js +0 -4
- package/node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/http_proxy.d.ts +0 -16
- package/node_modules/@grpc/grpc-js/build/src/http_proxy.js +0 -274
- package/node_modules/@grpc/grpc-js/build/src/http_proxy.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/index.d.ts +0 -79
- package/node_modules/@grpc/grpc-js/build/src/index.js +0 -148
- package/node_modules/@grpc/grpc-js/build/src/index.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/internal-channel.d.ts +0 -124
- package/node_modules/@grpc/grpc-js/build/src/internal-channel.js +0 -605
- package/node_modules/@grpc/grpc-js/build/src/internal-channel.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.d.ts +0 -24
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +0 -151
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.d.ts +0 -71
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +0 -571
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.d.ts +0 -134
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +0 -514
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.d.ts +0 -24
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +0 -204
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.d.ts +0 -20
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js +0 -392
- package/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancer.d.ts +0 -101
- package/node_modules/@grpc/grpc-js/build/src/load-balancer.js +0 -116
- package/node_modules/@grpc/grpc-js/build/src/load-balancer.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.d.ts +0 -49
- package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +0 -302
- package/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/logging.d.ts +0 -7
- package/node_modules/@grpc/grpc-js/build/src/logging.js +0 -122
- package/node_modules/@grpc/grpc-js/build/src/logging.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/make-client.d.ts +0 -71
- package/node_modules/@grpc/grpc-js/build/src/make-client.js +0 -143
- package/node_modules/@grpc/grpc-js/build/src/make-client.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/metadata.d.ts +0 -100
- package/node_modules/@grpc/grpc-js/build/src/metadata.js +0 -272
- package/node_modules/@grpc/grpc-js/build/src/metadata.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/object-stream.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/build/src/object-stream.js +0 -19
- package/node_modules/@grpc/grpc-js/build/src/object-stream.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/orca.d.ts +0 -89
- package/node_modules/@grpc/grpc-js/build/src/orca.js +0 -323
- package/node_modules/@grpc/grpc-js/build/src/orca.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/picker.d.ts +0 -95
- package/node_modules/@grpc/grpc-js/build/src/picker.js +0 -86
- package/node_modules/@grpc/grpc-js/build/src/picker.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/priority-queue.d.ts +0 -50
- package/node_modules/@grpc/grpc-js/build/src/priority-queue.js +0 -120
- package/node_modules/@grpc/grpc-js/build/src/priority-queue.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolver-dns.d.ts +0 -13
- package/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +0 -363
- package/node_modules/@grpc/grpc-js/build/src/resolver-dns.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolver-ip.d.ts +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +0 -106
- package/node_modules/@grpc/grpc-js/build/src/resolver-ip.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolver-uds.d.ts +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +0 -51
- package/node_modules/@grpc/grpc-js/build/src/resolver-uds.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolver.d.ts +0 -102
- package/node_modules/@grpc/grpc-js/build/src/resolver.js +0 -89
- package/node_modules/@grpc/grpc-js/build/src/resolver.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolving-call.d.ts +0 -54
- package/node_modules/@grpc/grpc-js/build/src/resolving-call.js +0 -319
- package/node_modules/@grpc/grpc-js/build/src/resolving-call.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.d.ts +0 -70
- package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +0 -304
- package/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/retrying-call.d.ts +0 -100
- package/node_modules/@grpc/grpc-js/build/src/retrying-call.js +0 -724
- package/node_modules/@grpc/grpc-js/build/src/retrying-call.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/server-call.d.ts +0 -141
- package/node_modules/@grpc/grpc-js/build/src/server-call.js +0 -226
- package/node_modules/@grpc/grpc-js/build/src/server-call.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/server-credentials.d.ts +0 -48
- package/node_modules/@grpc/grpc-js/build/src/server-credentials.js +0 -314
- package/node_modules/@grpc/grpc-js/build/src/server-credentials.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/server-interceptors.d.ts +0 -216
- package/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +0 -817
- package/node_modules/@grpc/grpc-js/build/src/server-interceptors.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/server.d.ts +0 -140
- package/node_modules/@grpc/grpc-js/build/src/server.js +0 -1608
- package/node_modules/@grpc/grpc-js/build/src/server.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/service-config.d.ts +0 -58
- package/node_modules/@grpc/grpc-js/build/src/service-config.js +0 -430
- package/node_modules/@grpc/grpc-js/build/src/service-config.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.d.ts +0 -25
- package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js +0 -245
- package/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/status-builder.d.ts +0 -28
- package/node_modules/@grpc/grpc-js/build/src/status-builder.js +0 -68
- package/node_modules/@grpc/grpc-js/build/src/status-builder.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/stream-decoder.d.ts +0 -12
- package/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +0 -100
- package/node_modules/@grpc/grpc-js/build/src/stream-decoder.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts +0 -42
- package/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +0 -202
- package/node_modules/@grpc/grpc-js/build/src/subchannel-address.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/subchannel-call.d.ts +0 -68
- package/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +0 -545
- package/node_modules/@grpc/grpc-js/build/src/subchannel-call.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.d.ts +0 -82
- package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +0 -114
- package/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.d.ts +0 -40
- package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +0 -137
- package/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/subchannel.d.ts +0 -135
- package/node_modules/@grpc/grpc-js/build/src/subchannel.js +0 -397
- package/node_modules/@grpc/grpc-js/build/src/subchannel.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/tls-helpers.d.ts +0 -2
- package/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +0 -34
- package/node_modules/@grpc/grpc-js/build/src/tls-helpers.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/transport.d.ts +0 -135
- package/node_modules/@grpc/grpc-js/build/src/transport.js +0 -640
- package/node_modules/@grpc/grpc-js/build/src/transport.js.map +0 -1
- package/node_modules/@grpc/grpc-js/build/src/uri-parser.d.ts +0 -13
- package/node_modules/@grpc/grpc-js/build/src/uri-parser.js +0 -125
- package/node_modules/@grpc/grpc-js/build/src/uri-parser.js.map +0 -1
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/LICENSE +0 -201
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/README.md +0 -140
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -915
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js.map +0 -1
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.d.ts +0 -162
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.js +0 -246
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/index.js.map +0 -1
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.d.ts +0 -27
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/build/src/util.js.map +0 -1
- package/node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader/package.json +0 -69
- package/node_modules/@grpc/grpc-js/package.json +0 -89
- package/node_modules/@grpc/grpc-js/proto/channelz.proto +0 -564
- package/node_modules/@grpc/grpc-js/proto/protoc-gen-validate/LICENSE +0 -202
- package/node_modules/@grpc/grpc-js/proto/protoc-gen-validate/validate/validate.proto +0 -797
- package/node_modules/@grpc/grpc-js/proto/xds/LICENSE +0 -201
- package/node_modules/@grpc/grpc-js/proto/xds/xds/data/orca/v3/orca_load_report.proto +0 -58
- package/node_modules/@grpc/grpc-js/proto/xds/xds/service/orca/v3/orca.proto +0 -36
- package/node_modules/@grpc/grpc-js/src/admin.ts +0 -45
- package/node_modules/@grpc/grpc-js/src/auth-context.ts +0 -23
- package/node_modules/@grpc/grpc-js/src/backoff-timeout.ts +0 -222
- package/node_modules/@grpc/grpc-js/src/call-credentials.ts +0 -227
- package/node_modules/@grpc/grpc-js/src/call-interface.ts +0 -208
- package/node_modules/@grpc/grpc-js/src/call-number.ts +0 -22
- package/node_modules/@grpc/grpc-js/src/call.ts +0 -218
- package/node_modules/@grpc/grpc-js/src/certificate-provider.ts +0 -176
- package/node_modules/@grpc/grpc-js/src/channel-credentials.ts +0 -523
- package/node_modules/@grpc/grpc-js/src/channel-options.ts +0 -128
- package/node_modules/@grpc/grpc-js/src/channel.ts +0 -174
- package/node_modules/@grpc/grpc-js/src/channelz.ts +0 -909
- package/node_modules/@grpc/grpc-js/src/client-interceptors.ts +0 -585
- package/node_modules/@grpc/grpc-js/src/client.ts +0 -716
- package/node_modules/@grpc/grpc-js/src/compression-algorithms.ts +0 -22
- package/node_modules/@grpc/grpc-js/src/compression-filter.ts +0 -358
- package/node_modules/@grpc/grpc-js/src/connectivity-state.ts +0 -24
- package/node_modules/@grpc/grpc-js/src/constants.ts +0 -66
- package/node_modules/@grpc/grpc-js/src/control-plane-status.ts +0 -43
- package/node_modules/@grpc/grpc-js/src/deadline.ts +0 -106
- package/node_modules/@grpc/grpc-js/src/duration.ts +0 -79
- package/node_modules/@grpc/grpc-js/src/environment.ts +0 -19
- package/node_modules/@grpc/grpc-js/src/error.ts +0 -37
- package/node_modules/@grpc/grpc-js/src/events.ts +0 -26
- package/node_modules/@grpc/grpc-js/src/experimental.ts +0 -73
- package/node_modules/@grpc/grpc-js/src/filter-stack.ts +0 -100
- package/node_modules/@grpc/grpc-js/src/filter.ts +0 -63
- package/node_modules/@grpc/grpc-js/src/generated/channelz.ts +0 -119
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Any.ts +0 -13
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/BoolValue.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/BytesValue.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/DescriptorProto.ts +0 -59
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/DoubleValue.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Duration.ts +0 -13
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Edition.ts +0 -44
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumDescriptorProto.ts +0 -33
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumOptions.ts +0 -26
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumValueDescriptorProto.ts +0 -15
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/EnumValueOptions.ts +0 -21
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ExtensionRangeOptions.ts +0 -49
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FeatureSet.ts +0 -183
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FeatureSetDefaults.ts +0 -28
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FieldDescriptorProto.ts +0 -112
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FieldOptions.ts +0 -165
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileDescriptorProto.ts +0 -43
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileDescriptorSet.ts +0 -11
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FileOptions.ts +0 -76
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/FloatValue.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/GeneratedCodeInfo.ts +0 -44
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Int32Value.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Int64Value.ts +0 -11
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MessageOptions.ts +0 -32
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MethodDescriptorProto.ts +0 -21
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/MethodOptions.ts +0 -36
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/OneofDescriptorProto.ts +0 -13
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/OneofOptions.ts +0 -16
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ServiceDescriptorProto.ts +0 -16
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/ServiceOptions.ts +0 -16
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/SourceCodeInfo.ts +0 -26
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/StringValue.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/SymbolVisibility.ts +0 -17
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/Timestamp.ts +0 -13
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UInt32Value.ts +0 -10
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UInt64Value.ts +0 -11
- package/node_modules/@grpc/grpc-js/src/generated/google/protobuf/UninterpretedOption.ts +0 -33
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Address.ts +0 -89
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Channel.ts +0 -68
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelConnectivityState.ts +0 -45
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelData.ts +0 -76
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelRef.ts +0 -31
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelTrace.ts +0 -45
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ChannelTraceEvent.ts +0 -91
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Channelz.ts +0 -178
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetChannelRequest.ts +0 -17
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetChannelResponse.ts +0 -19
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerRequest.ts +0 -17
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerResponse.ts +0 -19
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerSocketsRequest.ts +0 -39
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServerSocketsResponse.ts +0 -33
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServersRequest.ts +0 -37
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetServersResponse.ts +0 -33
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSocketRequest.ts +0 -29
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSocketResponse.ts +0 -19
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSubchannelRequest.ts +0 -17
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetSubchannelResponse.ts +0 -19
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetTopChannelsRequest.ts +0 -37
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/GetTopChannelsResponse.ts +0 -33
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Security.ts +0 -87
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Server.ts +0 -45
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ServerData.ts +0 -57
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/ServerRef.ts +0 -31
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Socket.ts +0 -70
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketData.ts +0 -150
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOption.ts +0 -47
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionLinger.ts +0 -33
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.ts +0 -74
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketOptionTimeout.ts +0 -19
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SocketRef.ts +0 -31
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/Subchannel.ts +0 -70
- package/node_modules/@grpc/grpc-js/src/generated/grpc/channelz/v1/SubchannelRef.ts +0 -31
- package/node_modules/@grpc/grpc-js/src/generated/orca.ts +0 -146
- package/node_modules/@grpc/grpc-js/src/generated/validate/AnyRules.ts +0 -44
- package/node_modules/@grpc/grpc-js/src/generated/validate/BoolRules.ts +0 -22
- package/node_modules/@grpc/grpc-js/src/generated/validate/BytesRules.ts +0 -153
- package/node_modules/@grpc/grpc-js/src/generated/validate/DoubleRules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/DurationRules.ts +0 -93
- package/node_modules/@grpc/grpc-js/src/generated/validate/EnumRules.ts +0 -52
- package/node_modules/@grpc/grpc-js/src/generated/validate/FieldRules.ts +0 -102
- package/node_modules/@grpc/grpc-js/src/generated/validate/Fixed32Rules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/Fixed64Rules.ts +0 -87
- package/node_modules/@grpc/grpc-js/src/generated/validate/FloatRules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/Int32Rules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/Int64Rules.ts +0 -87
- package/node_modules/@grpc/grpc-js/src/generated/validate/KnownRegex.ts +0 -38
- package/node_modules/@grpc/grpc-js/src/generated/validate/MapRules.ts +0 -66
- package/node_modules/@grpc/grpc-js/src/generated/validate/MessageRules.ts +0 -34
- package/node_modules/@grpc/grpc-js/src/generated/validate/RepeatedRules.ts +0 -60
- package/node_modules/@grpc/grpc-js/src/generated/validate/SFixed32Rules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/SFixed64Rules.ts +0 -87
- package/node_modules/@grpc/grpc-js/src/generated/validate/SInt32Rules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/SInt64Rules.ts +0 -87
- package/node_modules/@grpc/grpc-js/src/generated/validate/StringRules.ts +0 -288
- package/node_modules/@grpc/grpc-js/src/generated/validate/TimestampRules.ts +0 -106
- package/node_modules/@grpc/grpc-js/src/generated/validate/UInt32Rules.ts +0 -86
- package/node_modules/@grpc/grpc-js/src/generated/validate/UInt64Rules.ts +0 -87
- package/node_modules/@grpc/grpc-js/src/generated/xds/data/orca/v3/OrcaLoadReport.ts +0 -113
- package/node_modules/@grpc/grpc-js/src/generated/xds/service/orca/v3/OpenRcaService.ts +0 -43
- package/node_modules/@grpc/grpc-js/src/generated/xds/service/orca/v3/OrcaLoadReportRequest.ts +0 -29
- package/node_modules/@grpc/grpc-js/src/http_proxy.ts +0 -315
- package/node_modules/@grpc/grpc-js/src/index.ts +0 -312
- package/node_modules/@grpc/grpc-js/src/internal-channel.ts +0 -878
- package/node_modules/@grpc/grpc-js/src/load-balancer-child-handler.ts +0 -173
- package/node_modules/@grpc/grpc-js/src/load-balancer-outlier-detection.ts +0 -840
- package/node_modules/@grpc/grpc-js/src/load-balancer-pick-first.ts +0 -662
- package/node_modules/@grpc/grpc-js/src/load-balancer-round-robin.ts +0 -287
- package/node_modules/@grpc/grpc-js/src/load-balancer-weighted-round-robin.ts +0 -494
- package/node_modules/@grpc/grpc-js/src/load-balancer.ts +0 -258
- package/node_modules/@grpc/grpc-js/src/load-balancing-call.ts +0 -387
- package/node_modules/@grpc/grpc-js/src/logging.ts +0 -134
- package/node_modules/@grpc/grpc-js/src/make-client.ts +0 -238
- package/node_modules/@grpc/grpc-js/src/metadata.ts +0 -323
- package/node_modules/@grpc/grpc-js/src/object-stream.ts +0 -66
- package/node_modules/@grpc/grpc-js/src/orca.ts +0 -349
- package/node_modules/@grpc/grpc-js/src/picker.ts +0 -157
- package/node_modules/@grpc/grpc-js/src/priority-queue.ts +0 -118
- package/node_modules/@grpc/grpc-js/src/resolver-dns.ts +0 -449
- package/node_modules/@grpc/grpc-js/src/resolver-ip.ts +0 -124
- package/node_modules/@grpc/grpc-js/src/resolver-uds.ts +0 -63
- package/node_modules/@grpc/grpc-js/src/resolver.ts +0 -176
- package/node_modules/@grpc/grpc-js/src/resolving-call.ts +0 -379
- package/node_modules/@grpc/grpc-js/src/resolving-load-balancer.ts +0 -407
- package/node_modules/@grpc/grpc-js/src/retrying-call.ts +0 -924
- package/node_modules/@grpc/grpc-js/src/server-call.ts +0 -420
- package/node_modules/@grpc/grpc-js/src/server-credentials.ts +0 -352
- package/node_modules/@grpc/grpc-js/src/server-interceptors.ts +0 -1071
- package/node_modules/@grpc/grpc-js/src/server.ts +0 -2212
- package/node_modules/@grpc/grpc-js/src/service-config.ts +0 -564
- package/node_modules/@grpc/grpc-js/src/single-subchannel-channel.ts +0 -248
- package/node_modules/@grpc/grpc-js/src/status-builder.ts +0 -80
- package/node_modules/@grpc/grpc-js/src/stream-decoder.ts +0 -110
- package/node_modules/@grpc/grpc-js/src/subchannel-address.ts +0 -252
- package/node_modules/@grpc/grpc-js/src/subchannel-call.ts +0 -622
- package/node_modules/@grpc/grpc-js/src/subchannel-interface.ts +0 -176
- package/node_modules/@grpc/grpc-js/src/subchannel-pool.ts +0 -176
- package/node_modules/@grpc/grpc-js/src/subchannel.ts +0 -559
- package/node_modules/@grpc/grpc-js/src/tls-helpers.ts +0 -35
- package/node_modules/@grpc/grpc-js/src/transport.ts +0 -825
- package/node_modules/@grpc/grpc-js/src/uri-parser.ts +0 -127
- package/node_modules/@grpc/proto-loader/LICENSE +0 -201
- package/node_modules/@grpc/proto-loader/README.md +0 -140
- package/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js +0 -913
- package/node_modules/@grpc/proto-loader/build/bin/proto-loader-gen-types.js.map +0 -1
- package/node_modules/@grpc/proto-loader/build/src/index.d.ts +0 -160
- package/node_modules/@grpc/proto-loader/build/src/index.js +0 -244
- package/node_modules/@grpc/proto-loader/build/src/index.js.map +0 -1
- package/node_modules/@grpc/proto-loader/build/src/util.d.ts +0 -27
- package/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
- package/node_modules/@grpc/proto-loader/build/src/util.js.map +0 -1
- package/node_modules/@grpc/proto-loader/package.json +0 -69
- package/node_modules/@js-sdsl/ordered-map/CHANGELOG.md +0 -237
- package/node_modules/@js-sdsl/ordered-map/LICENSE +0 -21
- package/node_modules/@js-sdsl/ordered-map/README.md +0 -270
- package/node_modules/@js-sdsl/ordered-map/README.zh-CN.md +0 -272
- package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.d.ts +0 -402
- package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +0 -795
- package/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js.map +0 -1
- package/node_modules/@js-sdsl/ordered-map/dist/esm/index.d.ts +0 -402
- package/node_modules/@js-sdsl/ordered-map/dist/esm/index.js +0 -975
- package/node_modules/@js-sdsl/ordered-map/dist/esm/index.js.map +0 -1
- package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.js +0 -1157
- package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.min.js +0 -8
- package/node_modules/@js-sdsl/ordered-map/dist/umd/ordered-map.min.js.map +0 -1
- package/node_modules/@js-sdsl/ordered-map/package.json +0 -138
- 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 -16
- package/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/assert.d.ts +0 -912
- package/node_modules/@types/node/async_hooks.d.ts +0 -497
- package/node_modules/@types/node/buffer.d.ts +0 -2142
- package/node_modules/@types/node/child_process.d.ts +0 -1355
- package/node_modules/@types/node/cluster.d.ts +0 -414
- package/node_modules/@types/node/console.d.ts +0 -407
- package/node_modules/@types/node/constants.d.ts +0 -18
- package/node_modules/@types/node/crypto.d.ts +0 -3243
- package/node_modules/@types/node/dgram.d.ts +0 -545
- package/node_modules/@types/node/diagnostics_channel.d.ts +0 -128
- package/node_modules/@types/node/dns/promises.d.ts +0 -357
- package/node_modules/@types/node/dns.d.ts +0 -643
- package/node_modules/@types/node/domain.d.ts +0 -169
- package/node_modules/@types/node/events.d.ts +0 -623
- package/node_modules/@types/node/fs/promises.d.ts +0 -997
- package/node_modules/@types/node/fs.d.ts +0 -3723
- package/node_modules/@types/node/globals.d.ts +0 -284
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/http.d.ts +0 -1358
- package/node_modules/@types/node/http2.d.ts +0 -2100
- package/node_modules/@types/node/https.d.ts +0 -391
- package/node_modules/@types/node/index.d.ts +0 -132
- package/node_modules/@types/node/inspector.d.ts +0 -2738
- package/node_modules/@types/node/module.d.ts +0 -114
- package/node_modules/@types/node/net.d.ts +0 -783
- package/node_modules/@types/node/os.d.ts +0 -455
- package/node_modules/@types/node/package.json +0 -235
- package/node_modules/@types/node/path.d.ts +0 -172
- package/node_modules/@types/node/perf_hooks.d.ts +0 -555
- package/node_modules/@types/node/process.d.ts +0 -1477
- package/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/@types/node/querystring.d.ts +0 -131
- package/node_modules/@types/node/readline.d.ts +0 -542
- package/node_modules/@types/node/repl.d.ts +0 -424
- package/node_modules/@types/node/stream/consumers.d.ts +0 -24
- package/node_modules/@types/node/stream/promises.d.ts +0 -42
- package/node_modules/@types/node/stream/web.d.ts +0 -6
- package/node_modules/@types/node/stream.d.ts +0 -1218
- package/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/timers/promises.d.ts +0 -68
- package/node_modules/@types/node/timers.d.ts +0 -94
- package/node_modules/@types/node/tls.d.ts +0 -1019
- package/node_modules/@types/node/trace_events.d.ts +0 -161
- package/node_modules/@types/node/tty.d.ts +0 -206
- package/node_modules/@types/node/url.d.ts +0 -798
- package/node_modules/@types/node/util.d.ts +0 -1564
- package/node_modules/@types/node/v8.d.ts +0 -378
- package/node_modules/@types/node/vm.d.ts +0 -508
- package/node_modules/@types/node/wasi.d.ts +0 -153
- package/node_modules/@types/node/worker_threads.d.ts +0 -649
- package/node_modules/@types/node/zlib.d.ts +0 -517
- package/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/ansi-styles/index.d.ts +0 -345
- package/node_modules/ansi-styles/index.js +0 -163
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/package.json +0 -56
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/argparse/LICENSE +0 -254
- package/node_modules/argparse/README.md +0 -84
- package/node_modules/argparse/argparse.js +0 -3707
- package/node_modules/argparse/lib/sub.js +0 -67
- package/node_modules/argparse/lib/textwrap.js +0 -440
- package/node_modules/argparse/package.json +0 -31
- package/node_modules/asn1/Jenkinsfile +0 -65
- package/node_modules/asn1/LICENSE +0 -19
- package/node_modules/asn1/README.md +0 -50
- package/node_modules/asn1/lib/ber/errors.js +0 -13
- package/node_modules/asn1/lib/ber/index.js +0 -27
- package/node_modules/asn1/lib/ber/reader.js +0 -262
- package/node_modules/asn1/lib/ber/types.js +0 -36
- package/node_modules/asn1/lib/ber/writer.js +0 -317
- package/node_modules/asn1/lib/index.js +0 -20
- package/node_modules/asn1/package.json +0 -31
- package/node_modules/b4a/LICENSE +0 -201
- package/node_modules/b4a/README.md +0 -153
- package/node_modules/b4a/browser.js +0 -567
- package/node_modules/b4a/index.js +0 -188
- package/node_modules/b4a/lib/ascii.js +0 -31
- package/node_modules/b4a/lib/base64.js +0 -65
- package/node_modules/b4a/lib/hex.js +0 -51
- package/node_modules/b4a/lib/latin1.js +0 -31
- package/node_modules/b4a/lib/utf16le.js +0 -40
- package/node_modules/b4a/lib/utf8.js +0 -141
- package/node_modules/b4a/package.json +0 -49
- package/node_modules/b4a/react-native.js +0 -5
- package/node_modules/bare-events/LICENSE +0 -201
- package/node_modules/bare-events/README.md +0 -25
- package/node_modules/bare-events/global.d.ts +0 -15
- package/node_modules/bare-events/global.js +0 -5
- package/node_modules/bare-events/index.d.ts +0 -81
- package/node_modules/bare-events/index.js +0 -367
- package/node_modules/bare-events/lib/errors.js +0 -26
- package/node_modules/bare-events/package.json +0 -61
- package/node_modules/bare-events/web.d.ts +0 -79
- package/node_modules/bare-events/web.js +0 -335
- package/node_modules/bare-fs/CMakeLists.txt +0 -13
- package/node_modules/bare-fs/LICENSE +0 -201
- package/node_modules/bare-fs/README.md +0 -989
- package/node_modules/bare-fs/binding.c +0 -2889
- package/node_modules/bare-fs/binding.js +0 -1
- package/node_modules/bare-fs/index.d.ts +0 -1223
- package/node_modules/bare-fs/index.js +0 -2842
- package/node_modules/bare-fs/lib/constants.d.ts +0 -49
- package/node_modules/bare-fs/lib/constants.js +0 -49
- package/node_modules/bare-fs/lib/errors.d.ts +0 -11
- package/node_modules/bare-fs/lib/errors.js +0 -55
- package/node_modules/bare-fs/package.json +0 -74
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/promises.d.ts +0 -310
- package/node_modules/bare-fs/promises.js +0 -119
- package/node_modules/bare-os/CMakeLists.txt +0 -13
- package/node_modules/bare-os/LICENSE +0 -201
- package/node_modules/bare-os/README.md +0 -11
- package/node_modules/bare-os/binding.c +0 -1427
- package/node_modules/bare-os/binding.js +0 -1
- package/node_modules/bare-os/index.d.ts +0 -143
- package/node_modules/bare-os/index.js +0 -129
- package/node_modules/bare-os/lib/constants.js +0 -7
- package/node_modules/bare-os/lib/errors.js +0 -22
- package/node_modules/bare-os/package.json +0 -49
- package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
- package/node_modules/bare-path/LICENSE +0 -201
- package/node_modules/bare-path/NOTICE +0 -28
- package/node_modules/bare-path/README.md +0 -19
- package/node_modules/bare-path/index.js +0 -11
- package/node_modules/bare-path/lib/constants.js +0 -11
- package/node_modules/bare-path/lib/posix.js +0 -242
- package/node_modules/bare-path/lib/shared.js +0 -67
- package/node_modules/bare-path/lib/win32.js +0 -513
- package/node_modules/bare-path/package.json +0 -36
- package/node_modules/bare-stream/LICENSE +0 -201
- package/node_modules/bare-stream/README.md +0 -15
- package/node_modules/bare-stream/global.js +0 -12
- package/node_modules/bare-stream/index.d.ts +0 -235
- package/node_modules/bare-stream/index.js +0 -492
- package/node_modules/bare-stream/package.json +0 -70
- package/node_modules/bare-stream/promises.js +0 -3
- package/node_modules/bare-stream/web.d.ts +0 -152
- package/node_modules/bare-stream/web.js +0 -607
- package/node_modules/bare-url/CMakeLists.txt +0 -27
- package/node_modules/bare-url/LICENSE +0 -201
- package/node_modules/bare-url/README.md +0 -19
- package/node_modules/bare-url/binding.c +0 -186
- package/node_modules/bare-url/binding.js +0 -1
- package/node_modules/bare-url/global.d.ts +0 -12
- package/node_modules/bare-url/global.js +0 -2
- package/node_modules/bare-url/index.d.ts +0 -41
- package/node_modules/bare-url/index.js +0 -407
- package/node_modules/bare-url/lib/errors.d.ts +0 -10
- package/node_modules/bare-url/lib/errors.js +0 -33
- package/node_modules/bare-url/lib/url-search-params.d.ts +0 -23
- package/node_modules/bare-url/lib/url-search-params.js +0 -194
- package/node_modules/bare-url/package.json +0 -54
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/base64-js/LICENSE +0 -21
- package/node_modules/base64-js/README.md +0 -34
- package/node_modules/base64-js/base64js.min.js +0 -1
- package/node_modules/base64-js/index.d.ts +0 -3
- package/node_modules/base64-js/index.js +0 -150
- package/node_modules/base64-js/package.json +0 -47
- package/node_modules/bcrypt-pbkdf/CONTRIBUTING.md +0 -13
- package/node_modules/bcrypt-pbkdf/LICENSE +0 -66
- package/node_modules/bcrypt-pbkdf/README.md +0 -45
- package/node_modules/bcrypt-pbkdf/index.js +0 -556
- package/node_modules/bcrypt-pbkdf/package.json +0 -15
- package/node_modules/bl/.travis.yml +0 -17
- package/node_modules/bl/BufferList.js +0 -396
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -247
- package/node_modules/bl/bl.js +0 -84
- package/node_modules/bl/package.json +0 -37
- package/node_modules/bl/test/convert.js +0 -21
- package/node_modules/bl/test/indexOf.js +0 -492
- package/node_modules/bl/test/isBufferList.js +0 -32
- package/node_modules/bl/test/test.js +0 -869
- package/node_modules/buffer/AUTHORS.md +0 -70
- package/node_modules/buffer/LICENSE +0 -21
- package/node_modules/buffer/README.md +0 -410
- package/node_modules/buffer/index.d.ts +0 -186
- package/node_modules/buffer/index.js +0 -1817
- package/node_modules/buffer/package.json +0 -96
- package/node_modules/buildcheck/.eslintrc.js +0 -5
- package/node_modules/buildcheck/.github/workflows/ci.yml +0 -88
- package/node_modules/buildcheck/.github/workflows/lint.yml +0 -27
- package/node_modules/buildcheck/.gitignore +0 -3
- package/node_modules/buildcheck/LICENSE +0 -19
- package/node_modules/buildcheck/README.md +0 -106
- package/node_modules/buildcheck/deps/Find-VisualStudio.cs +0 -250
- package/node_modules/buildcheck/lib/findvs.js +0 -361
- package/node_modules/buildcheck/lib/index.js +0 -738
- package/node_modules/buildcheck/package.json +0 -36
- package/node_modules/buildcheck/test/test.js +0 -8
- package/node_modules/chownr/LICENSE +0 -15
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/chownr.js +0 -167
- package/node_modules/chownr/package.json +0 -29
- package/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/cliui/README.md +0 -141
- package/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/cliui/build/index.d.cts +0 -43
- package/node_modules/cliui/build/lib/index.js +0 -287
- package/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/cliui/index.mjs +0 -13
- package/node_modules/cliui/package.json +0 -83
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -839
- package/node_modules/color-convert/index.js +0 -81
- package/node_modules/color-convert/package.json +0 -48
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -28
- package/node_modules/cpu-features/.eslintrc.js +0 -5
- package/node_modules/cpu-features/.github/workflows/ci.yml +0 -74
- package/node_modules/cpu-features/.github/workflows/lint.yml +0 -27
- package/node_modules/cpu-features/LICENSE +0 -19
- package/node_modules/cpu-features/README.md +0 -59
- package/node_modules/cpu-features/binding.gyp +0 -16
- package/node_modules/cpu-features/build/Makefile +0 -352
- package/node_modules/cpu-features/build/Release/.deps/Release/cpu_features.a.d +0 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/cpufeatures.node.d +0 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +0 -8
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o.d +0 -12
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +0 -26
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +0 -6
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +0 -12
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +0 -11
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +0 -183
- package/node_modules/cpu-features/build/Release/cpu_features.a +0 -0
- package/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
- package/node_modules/cpu-features/build/binding.Makefile +0 -6
- package/node_modules/cpu-features/build/config.gypi +0 -512
- package/node_modules/cpu-features/build/cpufeatures.target.mk +0 -192
- package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.Makefile +0 -6
- package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +0 -204
- package/node_modules/cpu-features/build/gyp-mac-tool +0 -766
- package/node_modules/cpu-features/buildcheck.gypi +0 -17
- package/node_modules/cpu-features/buildcheck.js +0 -32
- package/node_modules/cpu-features/deps/cpu_features/.clang-format +0 -4
- package/node_modules/cpu-features/deps/cpu_features/.dockerignore +0 -31
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +0 -5
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +0 -30
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +0 -22
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +0 -26
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +0 -31
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +0 -43
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +0 -25
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +0 -31
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +0 -24
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +0 -30
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +0 -29
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +0 -28
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +0 -27
- package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +0 -21
- package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +0 -329
- package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +0 -261
- package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +0 -23
- package/node_modules/cpu-features/deps/cpu_features/LICENSE +0 -230
- package/node_modules/cpu-features/deps/cpu_features/README.md +0 -272
- package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +0 -19
- package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +0 -5
- package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +0 -11
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +0 -3
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +0 -3
- package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +0 -30
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +0 -252
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +0 -40
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +0 -64
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +0 -312
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +0 -7
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +0 -48
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +0 -34
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +0 -22
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +0 -11
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +0 -107
- package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +0 -15
- package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +0 -105
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +0 -54
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +0 -384
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +0 -259
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +0 -121
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +0 -74
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +0 -149
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +0 -72
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +0 -108
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +0 -288
- package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +0 -40
- package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +0 -37
- package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +0 -39
- package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +0 -240
- package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +0 -49
- package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +0 -110
- package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +0 -70
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +0 -60
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +0 -4
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +0 -205
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +0 -320
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +0 -12
- package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +0 -456
- package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +0 -165
- package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +0 -75
- package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +0 -490
- package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +0 -79
- package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +0 -19
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +0 -86
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +0 -26
- package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +0 -22
- package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +0 -62
- package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +0 -169
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +0 -88
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +0 -79
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +0 -82
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +0 -138
- package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +0 -212
- package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +0 -93
- package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +0 -163
- package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +0 -111
- package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +0 -120
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +0 -2055
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +0 -68
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +0 -58
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +0 -57
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +0 -58
- package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +0 -132
- package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +0 -192
- package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +0 -461
- package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +0 -114
- package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +0 -53
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +0 -396
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +0 -384
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +0 -176
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +0 -131
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +0 -180
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +0 -82
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +0 -1729
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +0 -103
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +0 -61
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +0 -52
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +0 -31
- package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +0 -132
- package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +0 -202
- package/node_modules/cpu-features/lib/index.js +0 -5
- package/node_modules/cpu-features/package.json +0 -40
- package/node_modules/cpu-features/src/binding.cc +0 -151
- package/node_modules/cpu-features/test/test.js +0 -12
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -64
- package/node_modules/debug/src/browser.js +0 -272
- package/node_modules/debug/src/common.js +0 -292
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/docker-modem/.eslintrc +0 -35
- package/node_modules/docker-modem/.github/FUNDING.yml +0 -1
- package/node_modules/docker-modem/.github/workflows/main.yml +0 -63
- package/node_modules/docker-modem/.travis.yml +0 -36
- package/node_modules/docker-modem/.vscode/launch.json +0 -22
- package/node_modules/docker-modem/LICENSE +0 -201
- package/node_modules/docker-modem/README.md +0 -64
- package/node_modules/docker-modem/lib/http.js +0 -87
- package/node_modules/docker-modem/lib/http_duplex.js +0 -55
- package/node_modules/docker-modem/lib/modem.js +0 -577
- package/node_modules/docker-modem/lib/ssh.js +0 -48
- package/node_modules/docker-modem/lib/utils.js +0 -24
- package/node_modules/docker-modem/package.json +0 -32
- package/node_modules/docker-modem/test/modem_test.js +0 -248
- package/node_modules/dockerode/.claude/settings.local.json +0 -8
- package/node_modules/dockerode/.eslintignore +0 -2
- package/node_modules/dockerode/.eslintrc +0 -35
- package/node_modules/dockerode/.github/FUNDING.yml +0 -1
- package/node_modules/dockerode/.github/stale.yml +0 -20
- package/node_modules/dockerode/.github/workflows/main.yml +0 -35
- package/node_modules/dockerode/.travis.yml +0 -24
- package/node_modules/dockerode/.vscode/launch.json +0 -25
- package/node_modules/dockerode/LICENSE +0 -201
- package/node_modules/dockerode/README.md +0 -530
- package/node_modules/dockerode/lib/buildkit.js +0 -242
- package/node_modules/dockerode/lib/config.js +0 -135
- package/node_modules/dockerode/lib/container.js +0 -1085
- package/node_modules/dockerode/lib/docker.js +0 -1903
- package/node_modules/dockerode/lib/exec.js +0 -139
- package/node_modules/dockerode/lib/image.js +0 -279
- package/node_modules/dockerode/lib/network.js +0 -171
- package/node_modules/dockerode/lib/node.js +0 -135
- package/node_modules/dockerode/lib/plugin.js +0 -372
- package/node_modules/dockerode/lib/proto/auth.proto +0 -54
- package/node_modules/dockerode/lib/proto/buildkit_status.proto +0 -81
- package/node_modules/dockerode/lib/secret.js +0 -134
- package/node_modules/dockerode/lib/service.js +0 -183
- package/node_modules/dockerode/lib/session.js +0 -63
- package/node_modules/dockerode/lib/task.js +0 -97
- package/node_modules/dockerode/lib/util.js +0 -106
- package/node_modules/dockerode/lib/volume.js +0 -90
- package/node_modules/dockerode/package.json +0 -40
- package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/emoji-regex/package.json +0 -50
- package/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/end-of-stream/LICENSE +0 -21
- package/node_modules/end-of-stream/README.md +0 -54
- package/node_modules/end-of-stream/index.js +0 -96
- package/node_modules/end-of-stream/package.json +0 -37
- package/node_modules/escalade/dist/index.js +0 -22
- package/node_modules/escalade/dist/index.mjs +0 -22
- package/node_modules/escalade/index.d.mts +0 -11
- package/node_modules/escalade/index.d.ts +0 -15
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/package.json +0 -74
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escalade/sync/index.d.mts +0 -9
- package/node_modules/escalade/sync/index.d.ts +0 -13
- package/node_modules/escalade/sync/index.js +0 -18
- package/node_modules/escalade/sync/index.mjs +0 -18
- package/node_modules/events-universal/LICENSE +0 -201
- package/node_modules/events-universal/README.md +0 -17
- package/node_modules/events-universal/bare.js +0 -1
- package/node_modules/events-universal/default.js +0 -1
- package/node_modules/events-universal/index.js +0 -1
- package/node_modules/events-universal/package.json +0 -39
- package/node_modules/events-universal/react-native.js +0 -1
- package/node_modules/fast-fifo/LICENSE +0 -21
- package/node_modules/fast-fifo/README.md +0 -78
- package/node_modules/fast-fifo/fixed-size.js +0 -39
- package/node_modules/fast-fifo/index.js +0 -48
- package/node_modules/fast-fifo/package.json +0 -28
- package/node_modules/fs-constants/LICENSE +0 -21
- package/node_modules/fs-constants/README.md +0 -26
- package/node_modules/fs-constants/browser.js +0 -1
- package/node_modules/fs-constants/index.js +0 -1
- package/node_modules/fs-constants/package.json +0 -19
- package/node_modules/fs-extra/LICENSE +0 -15
- package/node_modules/fs-extra/README.md +0 -294
- package/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
- package/node_modules/fs-extra/lib/copy/copy.js +0 -180
- package/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/node_modules/fs-extra/lib/ensure/symlink.js +0 -92
- package/node_modules/fs-extra/lib/esm.mjs +0 -68
- package/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/node_modules/fs-extra/lib/index.js +0 -16
- package/node_modules/fs-extra/lib/json/index.js +0 -16
- package/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/node_modules/fs-extra/lib/move/index.js +0 -7
- package/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/node_modules/fs-extra/lib/move/move.js +0 -59
- package/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/node_modules/fs-extra/lib/util/async.js +0 -29
- package/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/node_modules/fs-extra/package.json +0 -71
- package/node_modules/get-caller-file/LICENSE.md +0 -6
- package/node_modules/get-caller-file/README.md +0 -41
- package/node_modules/get-caller-file/index.d.ts +0 -2
- package/node_modules/get-caller-file/index.js +0 -22
- package/node_modules/get-caller-file/index.js.map +0 -1
- package/node_modules/get-caller-file/package.json +0 -42
- package/node_modules/graceful-fs/LICENSE +0 -15
- package/node_modules/graceful-fs/README.md +0 -143
- package/node_modules/graceful-fs/clone.js +0 -23
- package/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/node_modules/graceful-fs/package.json +0 -53
- package/node_modules/graceful-fs/polyfills.js +0 -355
- package/node_modules/ieee754/LICENSE +0 -11
- package/node_modules/ieee754/README.md +0 -51
- package/node_modules/ieee754/index.d.ts +0 -10
- package/node_modules/ieee754/index.js +0 -85
- package/node_modules/ieee754/package.json +0 -52
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/js-yaml/LICENSE +0 -21
- package/node_modules/js-yaml/README.md +0 -247
- package/node_modules/js-yaml/bin/js-yaml.js +0 -126
- package/node_modules/js-yaml/dist/js-yaml.js +0 -3880
- package/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
- package/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
- package/node_modules/js-yaml/index.js +0 -47
- package/node_modules/js-yaml/lib/common.js +0 -59
- package/node_modules/js-yaml/lib/dumper.js +0 -965
- package/node_modules/js-yaml/lib/exception.js +0 -55
- package/node_modules/js-yaml/lib/loader.js +0 -1733
- package/node_modules/js-yaml/lib/schema/core.js +0 -11
- package/node_modules/js-yaml/lib/schema/default.js +0 -22
- package/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
- package/node_modules/js-yaml/lib/schema/json.js +0 -19
- package/node_modules/js-yaml/lib/schema.js +0 -121
- package/node_modules/js-yaml/lib/snippet.js +0 -101
- package/node_modules/js-yaml/lib/type/binary.js +0 -125
- package/node_modules/js-yaml/lib/type/bool.js +0 -35
- package/node_modules/js-yaml/lib/type/float.js +0 -97
- package/node_modules/js-yaml/lib/type/int.js +0 -156
- package/node_modules/js-yaml/lib/type/map.js +0 -8
- package/node_modules/js-yaml/lib/type/merge.js +0 -12
- package/node_modules/js-yaml/lib/type/null.js +0 -35
- package/node_modules/js-yaml/lib/type/omap.js +0 -44
- package/node_modules/js-yaml/lib/type/pairs.js +0 -53
- package/node_modules/js-yaml/lib/type/seq.js +0 -8
- package/node_modules/js-yaml/lib/type/set.js +0 -29
- package/node_modules/js-yaml/lib/type/str.js +0 -8
- package/node_modules/js-yaml/lib/type/timestamp.js +0 -88
- package/node_modules/js-yaml/lib/type.js +0 -66
- package/node_modules/js-yaml/package.json +0 -66
- package/node_modules/jsonfile/LICENSE +0 -15
- package/node_modules/jsonfile/README.md +0 -230
- package/node_modules/jsonfile/index.js +0 -88
- package/node_modules/jsonfile/package.json +0 -40
- package/node_modules/jsonfile/utils.js +0 -14
- package/node_modules/lodash.camelcase/LICENSE +0 -47
- package/node_modules/lodash.camelcase/README.md +0 -18
- package/node_modules/lodash.camelcase/index.js +0 -599
- package/node_modules/lodash.camelcase/package.json +0 -17
- package/node_modules/long/LICENSE +0 -202
- package/node_modules/long/README.md +0 -286
- package/node_modules/long/index.d.ts +0 -2
- package/node_modules/long/index.js +0 -1581
- package/node_modules/long/package.json +0 -58
- package/node_modules/long/types.d.ts +0 -474
- package/node_modules/long/umd/index.d.ts +0 -3
- package/node_modules/long/umd/index.js +0 -1622
- package/node_modules/long/umd/package.json +0 -3
- package/node_modules/long/umd/types.d.ts +0 -474
- package/node_modules/mkdirp-classic/LICENSE +0 -21
- package/node_modules/mkdirp-classic/README.md +0 -18
- package/node_modules/mkdirp-classic/index.js +0 -98
- package/node_modules/mkdirp-classic/package.json +0 -18
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/nan/.github/workflows/ci.yml +0 -52
- package/node_modules/nan/.pre-commit-config.yaml +0 -8
- package/node_modules/nan/CHANGELOG.md +0 -599
- package/node_modules/nan/CMakeLists.txt +0 -138
- package/node_modules/nan/LICENSE.md +0 -9
- package/node_modules/nan/README.md +0 -456
- package/node_modules/nan/doc/asyncworker.md +0 -146
- package/node_modules/nan/doc/buffers.md +0 -54
- package/node_modules/nan/doc/callback.md +0 -76
- package/node_modules/nan/doc/converters.md +0 -41
- package/node_modules/nan/doc/errors.md +0 -226
- package/node_modules/nan/doc/json.md +0 -62
- package/node_modules/nan/doc/maybe_types.md +0 -583
- package/node_modules/nan/doc/methods.md +0 -689
- package/node_modules/nan/doc/new.md +0 -147
- package/node_modules/nan/doc/node_misc.md +0 -123
- package/node_modules/nan/doc/object_wrappers.md +0 -263
- package/node_modules/nan/doc/persistent.md +0 -296
- package/node_modules/nan/doc/scopes.md +0 -73
- package/node_modules/nan/doc/script.md +0 -58
- package/node_modules/nan/doc/string_bytes.md +0 -81
- package/node_modules/nan/doc/v8_internals.md +0 -199
- package/node_modules/nan/doc/v8_misc.md +0 -85
- package/node_modules/nan/include_dirs.js +0 -1
- package/node_modules/nan/nan.h +0 -3202
- package/node_modules/nan/nan_callbacks.h +0 -141
- package/node_modules/nan/nan_callbacks_12_inl.h +0 -690
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -524
- package/node_modules/nan/nan_converters.h +0 -72
- package/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/node_modules/nan/nan_json.h +0 -166
- package/node_modules/nan/nan_maybe_43_inl.h +0 -360
- package/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/node_modules/nan/nan_new.h +0 -340
- package/node_modules/nan/nan_object_wrap.h +0 -156
- package/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/node_modules/nan/nan_private.h +0 -73
- package/node_modules/nan/nan_scriptorigin.h +0 -97
- package/node_modules/nan/nan_string_bytes.h +0 -305
- package/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/node_modules/nan/nan_weak.h +0 -453
- package/node_modules/nan/package.json +0 -38
- package/node_modules/nan/tools/1to2.js +0 -412
- package/node_modules/nan/tools/README.md +0 -14
- package/node_modules/nan/tools/package.json +0 -19
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/protobufjs/LICENSE +0 -39
- package/node_modules/protobufjs/README.md +0 -727
- package/node_modules/protobufjs/dist/light/protobuf.js +0 -7839
- 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 -9643
- 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 -1162
- 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 -1382
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -535
- 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 -2799
- 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 -114
- 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 -127
- package/node_modules/protobufjs/src/encoder.js +0 -100
- package/node_modules/protobufjs/src/enum.js +0 -223
- package/node_modules/protobufjs/src/field.js +0 -453
- 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 -143
- package/node_modules/protobufjs/src/method.js +0 -160
- package/node_modules/protobufjs/src/namespace.js +0 -546
- package/node_modules/protobufjs/src/object.js +0 -378
- package/node_modules/protobufjs/src/oneof.js +0 -222
- package/node_modules/protobufjs/src/parse.js +0 -969
- 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 -404
- 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 -189
- package/node_modules/protobufjs/src/tokenize.js +0 -416
- package/node_modules/protobufjs/src/type.js +0 -615
- 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 -215
- 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/pump/.github/FUNDING.yml +0 -2
- package/node_modules/pump/.travis.yml +0 -5
- package/node_modules/pump/LICENSE +0 -21
- package/node_modules/pump/README.md +0 -74
- package/node_modules/pump/SECURITY.md +0 -5
- package/node_modules/pump/empty.js +0 -1
- package/node_modules/pump/index.js +0 -86
- package/node_modules/pump/package.json +0 -30
- package/node_modules/pump/test-browser.js +0 -66
- package/node_modules/pump/test-node.js +0 -53
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -106
- package/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -68
- package/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/require-directory/.jshintrc +0 -67
- package/node_modules/require-directory/.npmignore +0 -1
- package/node_modules/require-directory/.travis.yml +0 -3
- package/node_modules/require-directory/LICENSE +0 -22
- package/node_modules/require-directory/README.markdown +0 -184
- package/node_modules/require-directory/index.js +0 -86
- package/node_modules/require-directory/package.json +0 -40
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- package/node_modules/safer-buffer/LICENSE +0 -21
- package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
- package/node_modules/safer-buffer/Readme.md +0 -156
- package/node_modules/safer-buffer/dangerous.js +0 -58
- package/node_modules/safer-buffer/package.json +0 -34
- package/node_modules/safer-buffer/safer.js +0 -77
- package/node_modules/safer-buffer/tests.js +0 -406
- package/node_modules/skillgrade/LICENSE +0 -21
- package/node_modules/skillgrade/README.md +0 -253
- package/node_modules/skillgrade/bin/skillgrade.js +0 -2
- package/node_modules/skillgrade/dist/agents/claude.d.ts +0 -5
- package/node_modules/skillgrade/dist/agents/claude.js +0 -19
- package/node_modules/skillgrade/dist/agents/codex.d.ts +0 -5
- package/node_modules/skillgrade/dist/agents/codex.js +0 -19
- package/node_modules/skillgrade/dist/agents/gemini.d.ts +0 -5
- package/node_modules/skillgrade/dist/agents/gemini.js +0 -19
- package/node_modules/skillgrade/dist/agents/registry.d.ts +0 -14
- package/node_modules/skillgrade/dist/agents/registry.js +0 -27
- package/node_modules/skillgrade/dist/analytics/engine.d.ts +0 -19
- package/node_modules/skillgrade/dist/analytics/engine.js +0 -105
- package/node_modules/skillgrade/dist/commands/init.d.ts +0 -4
- package/node_modules/skillgrade/dist/commands/init.js +0 -335
- package/node_modules/skillgrade/dist/commands/preview.d.ts +0 -2
- package/node_modules/skillgrade/dist/commands/preview.js +0 -56
- package/node_modules/skillgrade/dist/commands/run.d.ts +0 -16
- package/node_modules/skillgrade/dist/commands/run.js +0 -302
- package/node_modules/skillgrade/dist/core/config.d.ts +0 -10
- package/node_modules/skillgrade/dist/core/config.js +0 -213
- package/node_modules/skillgrade/dist/core/config.types.d.ts +0 -88
- package/node_modules/skillgrade/dist/core/config.types.js +0 -9
- package/node_modules/skillgrade/dist/core/skills.d.ts +0 -15
- package/node_modules/skillgrade/dist/core/skills.js +0 -103
- package/node_modules/skillgrade/dist/evalRunner.d.ts +0 -26
- package/node_modules/skillgrade/dist/evalRunner.js +0 -316
- package/node_modules/skillgrade/dist/graders/index.d.ts +0 -30
- package/node_modules/skillgrade/dist/graders/index.js +0 -248
- package/node_modules/skillgrade/dist/providers/docker.d.ts +0 -32
- package/node_modules/skillgrade/dist/providers/docker.js +0 -255
- package/node_modules/skillgrade/dist/providers/local.d.ts +0 -7
- package/node_modules/skillgrade/dist/providers/local.js +0 -86
- package/node_modules/skillgrade/dist/reporters/browser.d.ts +0 -2
- package/node_modules/skillgrade/dist/reporters/browser.js +0 -90
- package/node_modules/skillgrade/dist/reporters/cli.d.ts +0 -2
- package/node_modules/skillgrade/dist/reporters/cli.js +0 -116
- package/node_modules/skillgrade/dist/skillgrade.d.ts +0 -20
- package/node_modules/skillgrade/dist/skillgrade.js +0 -179
- package/node_modules/skillgrade/dist/types.d.ts +0 -72
- package/node_modules/skillgrade/dist/types.js +0 -7
- package/node_modules/skillgrade/dist/utils/cli.d.ts +0 -56
- package/node_modules/skillgrade/dist/utils/cli.js +0 -141
- package/node_modules/skillgrade/dist/utils/env.d.ts +0 -9
- package/node_modules/skillgrade/dist/utils/env.js +0 -30
- package/node_modules/skillgrade/dist/viewer.html +0 -791
- package/node_modules/skillgrade/package.json +0 -69
- package/node_modules/skillgrade/templates/eval.yaml.template +0 -61
- package/node_modules/split-ca/.gitlab-ci.yml +0 -19
- package/node_modules/split-ca/.npmignore +0 -1
- package/node_modules/split-ca/Makefile +0 -4
- package/node_modules/split-ca/README.md +0 -51
- package/node_modules/split-ca/index.js +0 -27
- package/node_modules/split-ca/package.json +0 -38
- package/node_modules/split-ca/test/certs/empty.ca +0 -0
- package/node_modules/split-ca/test/certs/garbage.ca +0 -16
- package/node_modules/split-ca/test/certs/split0.ca +0 -18
- package/node_modules/split-ca/test/certs/split1.ca +0 -13
- package/node_modules/split-ca/test/certs/test-chain.bundle +0 -31
- package/node_modules/split-ca/test/splitCa.test.js +0 -45
- package/node_modules/ssh2/.eslintignore +0 -4
- package/node_modules/ssh2/.eslintrc.js +0 -5
- package/node_modules/ssh2/.github/workflows/ci.yml +0 -110
- package/node_modules/ssh2/.github/workflows/lint.yml +0 -27
- package/node_modules/ssh2/LICENSE +0 -19
- package/node_modules/ssh2/README.md +0 -1529
- package/node_modules/ssh2/SFTP.md +0 -413
- package/node_modules/ssh2/examples/server-chat.js +0 -238
- package/node_modules/ssh2/examples/sftp-server-download-only.js +0 -134
- package/node_modules/ssh2/install.js +0 -27
- package/node_modules/ssh2/lib/Channel.js +0 -295
- package/node_modules/ssh2/lib/agent.js +0 -1123
- package/node_modules/ssh2/lib/client.js +0 -2176
- package/node_modules/ssh2/lib/http-agents.js +0 -84
- package/node_modules/ssh2/lib/index.js +0 -44
- package/node_modules/ssh2/lib/keygen.js +0 -582
- package/node_modules/ssh2/lib/protocol/Protocol.js +0 -2136
- package/node_modules/ssh2/lib/protocol/SFTP.js +0 -4052
- package/node_modules/ssh2/lib/protocol/constants.js +0 -356
- package/node_modules/ssh2/lib/protocol/crypto/binding.gyp +0 -23
- package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +0 -347
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +0 -273
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/sshcrypto.node.d +0 -1
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/binding.Makefile +0 -6
- package/node_modules/ssh2/lib/protocol/crypto/build/gyp-mac-tool +0 -766
- package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +0 -187
- package/node_modules/ssh2/lib/protocol/crypto/poly1305.js +0 -43
- package/node_modules/ssh2/lib/protocol/crypto/src/binding.cc +0 -2300
- package/node_modules/ssh2/lib/protocol/crypto.js +0 -1602
- package/node_modules/ssh2/lib/protocol/handlers.js +0 -16
- package/node_modules/ssh2/lib/protocol/handlers.misc.js +0 -1285
- package/node_modules/ssh2/lib/protocol/kex.js +0 -1908
- package/node_modules/ssh2/lib/protocol/keyParser.js +0 -1484
- package/node_modules/ssh2/lib/protocol/node-fs-compat.js +0 -115
- package/node_modules/ssh2/lib/protocol/utils.js +0 -356
- package/node_modules/ssh2/lib/protocol/zlib.js +0 -255
- package/node_modules/ssh2/lib/server.js +0 -1380
- package/node_modules/ssh2/lib/utils.js +0 -336
- package/node_modules/ssh2/package.json +0 -49
- package/node_modules/ssh2/test/common.js +0 -316
- package/node_modules/ssh2/test/fixtures/bad_rsa_private_key +0 -26
- package/node_modules/ssh2/test/fixtures/https_cert.pem +0 -33
- package/node_modules/ssh2/test/fixtures/https_key.pem +0 -52
- package/node_modules/ssh2/test/fixtures/id_dsa +0 -12
- package/node_modules/ssh2/test/fixtures/id_ecdsa +0 -5
- package/node_modules/ssh2/test/fixtures/id_rsa +0 -15
- package/node_modules/ssh2/test/fixtures/id_rsa.ppk +0 -26
- package/node_modules/ssh2/test/fixtures/id_rsa_enc +0 -30
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa +0 -21
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc +0 -22
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm +0 -23
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa +0 -9
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc +0 -10
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm +0 -10
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519 +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa +0 -27
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc +0 -28
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm +0 -29
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa +0 -12
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc +0 -15
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa +0 -5
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa +0 -27
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc +0 -30
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub.result +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256 +0 -54
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub +0 -1
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub.result +0 -6
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.result +0 -6
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc +0 -17
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa +0 -26
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc +0 -18
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub +0 -9
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub +0 -10
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub +0 -11
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub +0 -11
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub +0 -8
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub +0 -13
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub.result +0 -7
- package/node_modules/ssh2/test/fixtures/openssh_new_rsa +0 -27
- package/node_modules/ssh2/test/fixtures/ssh_host_dsa_key +0 -12
- package/node_modules/ssh2/test/fixtures/ssh_host_ecdsa_key +0 -5
- package/node_modules/ssh2/test/fixtures/ssh_host_rsa_key +0 -15
- package/node_modules/ssh2/test/test-exec.js +0 -578
- package/node_modules/ssh2/test/test-integration-openssh.js +0 -486
- package/node_modules/ssh2/test/test-keygen.js +0 -60
- package/node_modules/ssh2/test/test-misc-client-server.js +0 -1460
- package/node_modules/ssh2/test/test-openssh.js +0 -261
- package/node_modules/ssh2/test/test-protocol-crypto.js +0 -631
- package/node_modules/ssh2/test/test-protocol-keyparser.js +0 -177
- package/node_modules/ssh2/test/test-server-hostkeys.js +0 -138
- package/node_modules/ssh2/test/test-sftp.js +0 -842
- package/node_modules/ssh2/test/test-shell.js +0 -109
- package/node_modules/ssh2/test/test-userauth-agent-openssh.js +0 -110
- package/node_modules/ssh2/test/test-userauth-agent.js +0 -171
- package/node_modules/ssh2/test/test-userauth.js +0 -611
- package/node_modules/ssh2/test/test-worker-imports.js +0 -25
- package/node_modules/ssh2/test/test.js +0 -20
- package/node_modules/ssh2/util/build_pagent.bat +0 -2
- package/node_modules/ssh2/util/pagent.c +0 -88
- package/node_modules/ssh2/util/pagent.exe +0 -0
- package/node_modules/streamx/LICENSE +0 -21
- package/node_modules/streamx/README.md +0 -490
- package/node_modules/streamx/index.js +0 -1232
- package/node_modules/streamx/package.json +0 -36
- package/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/string-width/index.js +0 -47
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/package.json +0 -56
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -34
- package/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/tar-fs/.travis.yml +0 -6
- package/node_modules/tar-fs/LICENSE +0 -21
- package/node_modules/tar-fs/README.md +0 -165
- package/node_modules/tar-fs/index.js +0 -363
- package/node_modules/tar-fs/node_modules/tar-stream/LICENSE +0 -21
- package/node_modules/tar-fs/node_modules/tar-stream/README.md +0 -168
- package/node_modules/tar-fs/node_modules/tar-stream/extract.js +0 -257
- package/node_modules/tar-fs/node_modules/tar-stream/headers.js +0 -295
- package/node_modules/tar-fs/node_modules/tar-stream/index.js +0 -2
- package/node_modules/tar-fs/node_modules/tar-stream/pack.js +0 -255
- package/node_modules/tar-fs/node_modules/tar-stream/package.json +0 -58
- package/node_modules/tar-fs/node_modules/tar-stream/sandbox.js +0 -11
- package/node_modules/tar-fs/package.json +0 -41
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +0 -346
- package/node_modules/tar-stream/LICENSE +0 -21
- package/node_modules/tar-stream/README.md +0 -183
- package/node_modules/tar-stream/constants.js +0 -14
- package/node_modules/tar-stream/extract.js +0 -406
- package/node_modules/tar-stream/headers.js +0 -321
- package/node_modules/tar-stream/index.js +0 -2
- package/node_modules/tar-stream/pack.js +0 -287
- package/node_modules/tar-stream/package.json +0 -42
- package/node_modules/teex/LICENSE +0 -21
- package/node_modules/teex/README.md +0 -31
- package/node_modules/teex/example.js +0 -16
- package/node_modules/teex/index.js +0 -52
- package/node_modules/teex/package.json +0 -26
- package/node_modules/teex/test.js +0 -68
- package/node_modules/text-decoder/LICENSE +0 -201
- package/node_modules/text-decoder/README.md +0 -36
- package/node_modules/text-decoder/index.js +0 -64
- package/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
- package/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
- package/node_modules/text-decoder/package.json +0 -39
- package/node_modules/tweetnacl/.npmignore +0 -4
- package/node_modules/tweetnacl/AUTHORS.md +0 -28
- package/node_modules/tweetnacl/CHANGELOG.md +0 -221
- package/node_modules/tweetnacl/LICENSE +0 -24
- package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +0 -20
- package/node_modules/tweetnacl/README.md +0 -459
- package/node_modules/tweetnacl/nacl-fast.js +0 -2388
- package/node_modules/tweetnacl/nacl-fast.min.js +0 -2
- package/node_modules/tweetnacl/nacl.d.ts +0 -98
- package/node_modules/tweetnacl/nacl.js +0 -1175
- package/node_modules/tweetnacl/nacl.min.js +0 -1
- package/node_modules/tweetnacl/package.json +0 -58
- package/node_modules/universalify/LICENSE +0 -20
- package/node_modules/universalify/README.md +0 -76
- package/node_modules/universalify/index.js +0 -24
- package/node_modules/universalify/package.json +0 -34
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
- package/node_modules/uuid/CHANGELOG.md +0 -292
- package/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -584
- package/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
- package/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
- package/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
- package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
- package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
- package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
- package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
- package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
- package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
- package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
- package/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
- package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
- package/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
- package/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -194
- package/node_modules/uuid/dist/esm-browser/native.js +0 -4
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -37
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -17
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -76
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -31
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -125
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -20
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -55
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -25
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/node_modules/uuid/dist/esm-browser/v6.js +0 -36
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -20
- package/node_modules/uuid/dist/esm-browser/v7.js +0 -146
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/node_modules/uuid/dist/esm-node/index.js +0 -14
- package/node_modules/uuid/dist/esm-node/max.js +0 -1
- package/node_modules/uuid/dist/esm-node/md5.js +0 -10
- package/node_modules/uuid/dist/esm-node/native.js +0 -4
- package/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/uuid/dist/esm-node/parse.js +0 -37
- package/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/node_modules/uuid/dist/esm-node/rng.js +0 -10
- package/node_modules/uuid/dist/esm-node/sha1.js +0 -10
- package/node_modules/uuid/dist/esm-node/stringify.js +0 -31
- package/node_modules/uuid/dist/esm-node/v1.js +0 -125
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
- package/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/uuid/dist/esm-node/v35.js +0 -55
- package/node_modules/uuid/dist/esm-node/v4.js +0 -25
- package/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/uuid/dist/esm-node/v6.js +0 -32
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
- package/node_modules/uuid/dist/esm-node/v7.js +0 -146
- package/node_modules/uuid/dist/esm-node/validate.js +0 -5
- package/node_modules/uuid/dist/esm-node/version.js +0 -8
- package/node_modules/uuid/dist/index.js +0 -104
- package/node_modules/uuid/dist/max.js +0 -7
- package/node_modules/uuid/dist/md5-browser.js +0 -200
- package/node_modules/uuid/dist/md5.js +0 -17
- package/node_modules/uuid/dist/native-browser.js +0 -10
- package/node_modules/uuid/dist/native.js +0 -11
- package/node_modules/uuid/dist/nil.js +0 -7
- package/node_modules/uuid/dist/parse.js +0 -44
- package/node_modules/uuid/dist/regex.js +0 -7
- package/node_modules/uuid/dist/rng-browser.js +0 -23
- package/node_modules/uuid/dist/rng.js +0 -17
- package/node_modules/uuid/dist/sha1-browser.js +0 -82
- package/node_modules/uuid/dist/sha1.js +0 -17
- package/node_modules/uuid/dist/stringify.js +0 -38
- package/node_modules/uuid/dist/uuid-bin.js +0 -75
- package/node_modules/uuid/dist/v1.js +0 -131
- package/node_modules/uuid/dist/v1ToV6.js +0 -26
- package/node_modules/uuid/dist/v3.js +0 -11
- package/node_modules/uuid/dist/v35.js +0 -63
- package/node_modules/uuid/dist/v4.js +0 -32
- package/node_modules/uuid/dist/v5.js +0 -11
- package/node_modules/uuid/dist/v6.js +0 -38
- package/node_modules/uuid/dist/v6ToV1.js +0 -26
- package/node_modules/uuid/dist/v7.js +0 -152
- package/node_modules/uuid/dist/validate.js +0 -12
- package/node_modules/uuid/dist/version.js +0 -15
- package/node_modules/uuid/package.json +0 -142
- package/node_modules/uuid/wrapper.mjs +0 -15
- package/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/package.json +0 -62
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/y18n/LICENSE +0 -13
- package/node_modules/y18n/README.md +0 -127
- package/node_modules/y18n/build/index.cjs +0 -203
- package/node_modules/y18n/build/lib/cjs.js +0 -6
- package/node_modules/y18n/build/lib/index.js +0 -174
- package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
- package/node_modules/y18n/index.mjs +0 -8
- package/node_modules/y18n/package.json +0 -70
- package/node_modules/yargs/LICENSE +0 -21
- package/node_modules/yargs/README.md +0 -204
- package/node_modules/yargs/browser.d.ts +0 -5
- package/node_modules/yargs/browser.mjs +0 -7
- package/node_modules/yargs/build/index.cjs +0 -1
- package/node_modules/yargs/build/lib/argsert.js +0 -62
- package/node_modules/yargs/build/lib/command.js +0 -449
- package/node_modules/yargs/build/lib/completion-templates.js +0 -48
- package/node_modules/yargs/build/lib/completion.js +0 -243
- package/node_modules/yargs/build/lib/middleware.js +0 -88
- package/node_modules/yargs/build/lib/parse-command.js +0 -32
- package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
- package/node_modules/yargs/build/lib/usage.js +0 -584
- package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
- package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
- package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
- package/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
- package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
- package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
- package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
- package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
- package/node_modules/yargs/build/lib/validation.js +0 -305
- package/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
- package/node_modules/yargs/build/lib/yerror.js +0 -9
- package/node_modules/yargs/helpers/helpers.mjs +0 -10
- package/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/yargs/helpers/package.json +0 -3
- package/node_modules/yargs/index.cjs +0 -53
- package/node_modules/yargs/index.mjs +0 -8
- package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -95
- package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
- package/node_modules/yargs/locales/be.json +0 -46
- package/node_modules/yargs/locales/cs.json +0 -51
- package/node_modules/yargs/locales/de.json +0 -46
- package/node_modules/yargs/locales/en.json +0 -55
- package/node_modules/yargs/locales/es.json +0 -46
- package/node_modules/yargs/locales/fi.json +0 -49
- package/node_modules/yargs/locales/fr.json +0 -53
- package/node_modules/yargs/locales/hi.json +0 -49
- package/node_modules/yargs/locales/hu.json +0 -46
- package/node_modules/yargs/locales/id.json +0 -50
- package/node_modules/yargs/locales/it.json +0 -46
- package/node_modules/yargs/locales/ja.json +0 -51
- package/node_modules/yargs/locales/ko.json +0 -49
- package/node_modules/yargs/locales/nb.json +0 -44
- package/node_modules/yargs/locales/nl.json +0 -49
- package/node_modules/yargs/locales/nn.json +0 -44
- package/node_modules/yargs/locales/pirate.json +0 -13
- package/node_modules/yargs/locales/pl.json +0 -49
- package/node_modules/yargs/locales/pt.json +0 -45
- package/node_modules/yargs/locales/pt_BR.json +0 -48
- package/node_modules/yargs/locales/ru.json +0 -51
- package/node_modules/yargs/locales/th.json +0 -46
- package/node_modules/yargs/locales/tr.json +0 -48
- package/node_modules/yargs/locales/uk_UA.json +0 -51
- package/node_modules/yargs/locales/uz.json +0 -52
- package/node_modules/yargs/locales/zh_CN.json +0 -48
- package/node_modules/yargs/locales/zh_TW.json +0 -51
- package/node_modules/yargs/package.json +0 -123
- package/node_modules/yargs/yargs +0 -9
- package/node_modules/yargs/yargs.mjs +0 -10
- package/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/yargs-parser/browser.js +0 -29
- package/node_modules/yargs-parser/build/index.cjs +0 -1050
- package/node_modules/yargs-parser/build/lib/index.js +0 -62
- package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
- package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
- package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
- package/node_modules/yargs-parser/package.json +0 -92
|
@@ -1,2842 +0,0 @@
|
|
|
1
|
-
const FIFO = require('fast-fifo')
|
|
2
|
-
const EventEmitter = require('bare-events')
|
|
3
|
-
const path = require('bare-path')
|
|
4
|
-
const { isURL, fileURLToPath } = require('bare-url')
|
|
5
|
-
const { Readable, Writable } = require('bare-stream')
|
|
6
|
-
const binding = require('./binding')
|
|
7
|
-
const constants = require('./lib/constants')
|
|
8
|
-
const FileError = require('./lib/errors')
|
|
9
|
-
|
|
10
|
-
const isWindows = Bare.platform === 'win32'
|
|
11
|
-
|
|
12
|
-
exports.constants = constants
|
|
13
|
-
|
|
14
|
-
class FileRequest {
|
|
15
|
-
static borrow() {
|
|
16
|
-
if (this._free.length > 0) return this._free.pop()
|
|
17
|
-
return new FileRequest()
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
static return(req) {
|
|
21
|
-
if (this._free.length < 32) this._free.push(req.reset())
|
|
22
|
-
else req.destroy()
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
constructor() {
|
|
26
|
-
this._reset()
|
|
27
|
-
this._handle = binding.requestInit(this, this._onresult)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
get handle() {
|
|
31
|
-
return this._handle
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
retain(value) {
|
|
35
|
-
this._retain = value // Tie the lifetime of `value` to the lifetime of `this`
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
reset() {
|
|
39
|
-
if (this._handle === null) return this
|
|
40
|
-
|
|
41
|
-
binding.requestReset(this._handle)
|
|
42
|
-
|
|
43
|
-
this._reset()
|
|
44
|
-
|
|
45
|
-
return this
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
destroy() {
|
|
49
|
-
if (this._handle === null) return this
|
|
50
|
-
|
|
51
|
-
binding.requestDestroy(this._handle)
|
|
52
|
-
|
|
53
|
-
this._reset()
|
|
54
|
-
this._handle = null
|
|
55
|
-
|
|
56
|
-
return this
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
then(resolve, reject) {
|
|
60
|
-
return this._promise.then(resolve, reject)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return() {
|
|
64
|
-
if (this._handle === null) return this
|
|
65
|
-
|
|
66
|
-
FileRequest.return(this)
|
|
67
|
-
|
|
68
|
-
return this
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
_reset() {
|
|
72
|
-
this._promise = new Promise((resolve, reject) => {
|
|
73
|
-
this._resolve = resolve
|
|
74
|
-
this._reject = reject
|
|
75
|
-
})
|
|
76
|
-
this._retain = null
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
_onresult(err, status) {
|
|
80
|
-
if (err) this._reject(err)
|
|
81
|
-
else this._resolve(status)
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
FileRequest._free = []
|
|
86
|
-
|
|
87
|
-
function ok(result, cb) {
|
|
88
|
-
if (typeof result === 'function') {
|
|
89
|
-
cb = result
|
|
90
|
-
result = undefined
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (cb) cb(null, result)
|
|
94
|
-
else return result
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function fail(err, cb) {
|
|
98
|
-
if (cb) cb(err)
|
|
99
|
-
else throw err
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function done(err, result, cb) {
|
|
103
|
-
if (typeof result === 'function') {
|
|
104
|
-
cb = result
|
|
105
|
-
result = undefined
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (err) fail(err, cb)
|
|
109
|
-
else return ok(result, cb)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
async function open(filepath, flags = 'r', mode = 0o666, cb) {
|
|
113
|
-
if (typeof flags === 'function') {
|
|
114
|
-
cb = flags
|
|
115
|
-
flags = 'r'
|
|
116
|
-
mode = 0o666
|
|
117
|
-
} else if (typeof mode === 'function') {
|
|
118
|
-
cb = mode
|
|
119
|
-
mode = 0o666
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (typeof flags === 'string') flags = toFlags(flags)
|
|
123
|
-
if (typeof mode === 'string') mode = toMode(mode)
|
|
124
|
-
|
|
125
|
-
filepath = toNamespacedPath(filepath)
|
|
126
|
-
|
|
127
|
-
const req = FileRequest.borrow()
|
|
128
|
-
|
|
129
|
-
let fd
|
|
130
|
-
let err = null
|
|
131
|
-
try {
|
|
132
|
-
binding.open(req.handle, filepath, flags, mode)
|
|
133
|
-
|
|
134
|
-
fd = await req
|
|
135
|
-
} catch (e) {
|
|
136
|
-
err = new FileError(e.message, {
|
|
137
|
-
operation: 'open',
|
|
138
|
-
code: e.code,
|
|
139
|
-
path: filepath
|
|
140
|
-
})
|
|
141
|
-
} finally {
|
|
142
|
-
req.return()
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return done(err, fd, cb)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function openSync(filepath, flags = 'r', mode = 0o666) {
|
|
149
|
-
if (typeof flags === 'string') flags = toFlags(flags)
|
|
150
|
-
if (typeof mode === 'string') mode = toMode(mode)
|
|
151
|
-
|
|
152
|
-
filepath = toNamespacedPath(filepath)
|
|
153
|
-
|
|
154
|
-
const req = FileRequest.borrow()
|
|
155
|
-
|
|
156
|
-
try {
|
|
157
|
-
return binding.openSync(req.handle, filepath, flags, mode)
|
|
158
|
-
} catch (e) {
|
|
159
|
-
throw new FileError(e.message, {
|
|
160
|
-
operation: 'open',
|
|
161
|
-
code: e.code,
|
|
162
|
-
path: filepath
|
|
163
|
-
})
|
|
164
|
-
} finally {
|
|
165
|
-
req.return()
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
async function close(fd, cb) {
|
|
170
|
-
const req = FileRequest.borrow()
|
|
171
|
-
|
|
172
|
-
let err = null
|
|
173
|
-
try {
|
|
174
|
-
binding.close(req.handle, fd)
|
|
175
|
-
|
|
176
|
-
await req
|
|
177
|
-
} catch (e) {
|
|
178
|
-
err = new FileError(e.message, { operation: 'close', code: e.code, fd })
|
|
179
|
-
} finally {
|
|
180
|
-
req.return()
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return done(err, cb)
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function closeSync(fd) {
|
|
187
|
-
const req = FileRequest.borrow()
|
|
188
|
-
|
|
189
|
-
try {
|
|
190
|
-
binding.closeSync(req.handle, fd)
|
|
191
|
-
} catch (e) {
|
|
192
|
-
throw new FileError(e.message, { operation: 'close', code: e.code, fd })
|
|
193
|
-
} finally {
|
|
194
|
-
req.return()
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
async function access(filepath, mode = constants.F_OK, cb) {
|
|
199
|
-
if (typeof mode === 'function') {
|
|
200
|
-
cb = mode
|
|
201
|
-
mode = constants.F_OK
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
filepath = toNamespacedPath(filepath)
|
|
205
|
-
|
|
206
|
-
const req = FileRequest.borrow()
|
|
207
|
-
|
|
208
|
-
let err = null
|
|
209
|
-
try {
|
|
210
|
-
binding.access(req.handle, filepath, mode)
|
|
211
|
-
|
|
212
|
-
await req
|
|
213
|
-
} catch (e) {
|
|
214
|
-
err = new FileError(e.message, {
|
|
215
|
-
operation: 'access',
|
|
216
|
-
code: e.code,
|
|
217
|
-
path: filepath
|
|
218
|
-
})
|
|
219
|
-
} finally {
|
|
220
|
-
req.return()
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
return done(err, cb)
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
function accessSync(filepath, mode = constants.F_OK) {
|
|
227
|
-
filepath = toNamespacedPath(filepath)
|
|
228
|
-
|
|
229
|
-
const req = FileRequest.borrow()
|
|
230
|
-
|
|
231
|
-
try {
|
|
232
|
-
binding.accessSync(req.handle, filepath, mode)
|
|
233
|
-
} catch (e) {
|
|
234
|
-
throw new FileError(e.message, {
|
|
235
|
-
operation: 'access',
|
|
236
|
-
code: e.code,
|
|
237
|
-
path: filepath
|
|
238
|
-
})
|
|
239
|
-
} finally {
|
|
240
|
-
req.return()
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
async function exists(filepath, cb) {
|
|
245
|
-
let ok = true
|
|
246
|
-
try {
|
|
247
|
-
await access(filepath)
|
|
248
|
-
} catch {
|
|
249
|
-
ok = false
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
return done(null, ok, cb)
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
function existsSync(filepath) {
|
|
256
|
-
try {
|
|
257
|
-
accessSync(filepath)
|
|
258
|
-
} catch {
|
|
259
|
-
return false
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
return true
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
async function read(fd, buffer, offset = 0, len = buffer.byteLength - offset, pos = -1, cb) {
|
|
266
|
-
if (typeof offset === 'function') {
|
|
267
|
-
cb = offset
|
|
268
|
-
offset = 0
|
|
269
|
-
len = buffer.byteLength
|
|
270
|
-
pos = -1
|
|
271
|
-
} else if (typeof len === 'function') {
|
|
272
|
-
cb = len
|
|
273
|
-
len = buffer.byteLength - offset
|
|
274
|
-
pos = -1
|
|
275
|
-
} else if (typeof pos === 'function') {
|
|
276
|
-
cb = pos
|
|
277
|
-
pos = -1
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (typeof pos !== 'number') pos = -1
|
|
281
|
-
|
|
282
|
-
const req = FileRequest.borrow()
|
|
283
|
-
|
|
284
|
-
let bytes
|
|
285
|
-
let err = null
|
|
286
|
-
try {
|
|
287
|
-
binding.read(req.handle, fd, buffer, offset, len, pos)
|
|
288
|
-
|
|
289
|
-
req.retain(buffer)
|
|
290
|
-
|
|
291
|
-
bytes = await req
|
|
292
|
-
} catch (e) {
|
|
293
|
-
err = new FileError(e.message, { operation: 'read', code: e.code, fd })
|
|
294
|
-
} finally {
|
|
295
|
-
req.return()
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
return done(err, bytes, cb)
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
function readSync(fd, buffer, offset = 0, len = buffer.byteLength - offset, pos = -1) {
|
|
302
|
-
const req = FileRequest.borrow()
|
|
303
|
-
|
|
304
|
-
try {
|
|
305
|
-
return binding.readSync(req.handle, fd, buffer, offset, len, pos)
|
|
306
|
-
} catch (e) {
|
|
307
|
-
throw new FileError(e.message, { operation: 'read', code: e.code, fd })
|
|
308
|
-
} finally {
|
|
309
|
-
req.return()
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
async function readv(fd, buffers, pos = -1, cb) {
|
|
314
|
-
if (typeof pos === 'function') {
|
|
315
|
-
cb = pos
|
|
316
|
-
pos = -1
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
if (typeof pos !== 'number') pos = -1
|
|
320
|
-
|
|
321
|
-
const req = FileRequest.borrow()
|
|
322
|
-
|
|
323
|
-
let bytes
|
|
324
|
-
let err = null
|
|
325
|
-
try {
|
|
326
|
-
binding.readv(req.handle, fd, buffers, pos)
|
|
327
|
-
|
|
328
|
-
req.retain(buffers)
|
|
329
|
-
|
|
330
|
-
bytes = await req
|
|
331
|
-
} catch (e) {
|
|
332
|
-
err = new FileError(e.message, { operation: 'readv', code: e.code, fd })
|
|
333
|
-
} finally {
|
|
334
|
-
req.return()
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
return done(err, bytes, cb)
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
function readvSync(fd, buffers, pos = -1) {
|
|
341
|
-
if (typeof pos !== 'number') pos = -1
|
|
342
|
-
|
|
343
|
-
const req = FileRequest.borrow()
|
|
344
|
-
|
|
345
|
-
try {
|
|
346
|
-
return binding.readvSync(req.handle, fd, buffers, pos)
|
|
347
|
-
} catch (e) {
|
|
348
|
-
throw new FileError(e.message, { operation: 'readv', code: e.code, fd })
|
|
349
|
-
} finally {
|
|
350
|
-
req.return()
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
async function write(fd, data, offset, len, pos = -1, cb) {
|
|
355
|
-
if (typeof data === 'string') {
|
|
356
|
-
let encoding = len
|
|
357
|
-
cb = pos
|
|
358
|
-
pos = offset
|
|
359
|
-
|
|
360
|
-
if (typeof pos === 'function') {
|
|
361
|
-
cb = pos
|
|
362
|
-
pos = -1
|
|
363
|
-
encoding = 'utf8'
|
|
364
|
-
} else if (typeof encoding === 'function') {
|
|
365
|
-
cb = encoding
|
|
366
|
-
encoding = 'utf8'
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
if (typeof pos === 'string') {
|
|
370
|
-
encoding = pos
|
|
371
|
-
pos = -1
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
data = Buffer.from(data, encoding)
|
|
375
|
-
offset = 0
|
|
376
|
-
len = data.byteLength
|
|
377
|
-
} else if (typeof offset === 'function') {
|
|
378
|
-
cb = offset
|
|
379
|
-
offset = 0
|
|
380
|
-
len = data.byteLength
|
|
381
|
-
pos = -1
|
|
382
|
-
} else if (typeof len === 'function') {
|
|
383
|
-
cb = len
|
|
384
|
-
len = data.byteLength - offset
|
|
385
|
-
pos = -1
|
|
386
|
-
} else if (typeof pos === 'function') {
|
|
387
|
-
cb = pos
|
|
388
|
-
pos = -1
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
if (typeof offset !== 'number') offset = 0
|
|
392
|
-
if (typeof len !== 'number') len = data.byteLength - offset
|
|
393
|
-
if (typeof pos !== 'number') pos = -1
|
|
394
|
-
|
|
395
|
-
const req = FileRequest.borrow()
|
|
396
|
-
|
|
397
|
-
let bytes
|
|
398
|
-
let err = null
|
|
399
|
-
try {
|
|
400
|
-
binding.write(req.handle, fd, data, offset, len, pos)
|
|
401
|
-
|
|
402
|
-
req.retain(data)
|
|
403
|
-
|
|
404
|
-
bytes = await req
|
|
405
|
-
} catch (e) {
|
|
406
|
-
err = new FileError(e.message, { operation: 'write', code: e.code, fd })
|
|
407
|
-
} finally {
|
|
408
|
-
req.return()
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
return done(err, bytes, cb)
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
function writeSync(fd, data, offset, len, pos = -1) {
|
|
415
|
-
if (typeof data === 'string') {
|
|
416
|
-
let encoding = len
|
|
417
|
-
pos = offset
|
|
418
|
-
|
|
419
|
-
if (typeof pos === 'string') {
|
|
420
|
-
encoding = pos
|
|
421
|
-
pos = -1
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
data = Buffer.from(data, encoding)
|
|
425
|
-
offset = 0
|
|
426
|
-
len = data.byteLength
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
if (typeof offset !== 'number') offset = 0
|
|
430
|
-
if (typeof len !== 'number') len = data.byteLength - offset
|
|
431
|
-
if (typeof pos !== 'number') pos = -1
|
|
432
|
-
|
|
433
|
-
const req = FileRequest.borrow()
|
|
434
|
-
|
|
435
|
-
try {
|
|
436
|
-
return binding.writeSync(req.handle, fd, data, offset, len, pos)
|
|
437
|
-
} catch (e) {
|
|
438
|
-
throw new FileError(e.message, { operation: 'write', code: e.code, fd })
|
|
439
|
-
} finally {
|
|
440
|
-
req.return()
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
async function writev(fd, buffers, pos = -1, cb) {
|
|
445
|
-
if (typeof pos === 'function') {
|
|
446
|
-
cb = pos
|
|
447
|
-
pos = -1
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
if (typeof pos !== 'number') pos = -1
|
|
451
|
-
|
|
452
|
-
const req = FileRequest.borrow()
|
|
453
|
-
|
|
454
|
-
let bytes
|
|
455
|
-
let err = null
|
|
456
|
-
try {
|
|
457
|
-
binding.writev(req.handle, fd, buffers, pos)
|
|
458
|
-
|
|
459
|
-
req.retain(buffers)
|
|
460
|
-
|
|
461
|
-
bytes = await req
|
|
462
|
-
} catch (e) {
|
|
463
|
-
err = new FileError(e.message, { operation: 'writev', code: e.code, fd })
|
|
464
|
-
} finally {
|
|
465
|
-
req.return()
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
return done(err, bytes, cb)
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
function writevSync(fd, buffers, pos = -1) {
|
|
472
|
-
if (typeof pos !== 'number') pos = -1
|
|
473
|
-
|
|
474
|
-
const req = FileRequest.borrow()
|
|
475
|
-
|
|
476
|
-
try {
|
|
477
|
-
return binding.writevSync(req.handle, fd, buffers, pos)
|
|
478
|
-
} catch (e) {
|
|
479
|
-
throw new FileError(e.message, { operation: 'writev', code: e.code, fd })
|
|
480
|
-
} finally {
|
|
481
|
-
req.return()
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
async function stat(filepath, cb) {
|
|
486
|
-
filepath = toNamespacedPath(filepath)
|
|
487
|
-
|
|
488
|
-
const req = FileRequest.borrow()
|
|
489
|
-
|
|
490
|
-
let st
|
|
491
|
-
let err = null
|
|
492
|
-
try {
|
|
493
|
-
binding.stat(req.handle, filepath)
|
|
494
|
-
|
|
495
|
-
await req
|
|
496
|
-
|
|
497
|
-
st = new Stats(...binding.requestResultStat(req.handle))
|
|
498
|
-
} catch (e) {
|
|
499
|
-
err = new FileError(e.message, { operation: 'stat', code: e.code, path: filepath })
|
|
500
|
-
} finally {
|
|
501
|
-
req.return()
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
return done(err, st, cb)
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
function statSync(filepath) {
|
|
508
|
-
filepath = toNamespacedPath(filepath)
|
|
509
|
-
|
|
510
|
-
const req = FileRequest.borrow()
|
|
511
|
-
|
|
512
|
-
try {
|
|
513
|
-
binding.statSync(req.handle, filepath)
|
|
514
|
-
|
|
515
|
-
return new Stats(...binding.requestResultStat(req.handle))
|
|
516
|
-
} catch (e) {
|
|
517
|
-
throw new FileError(e.message, { operation: 'stat', code: e.code, path: filepath })
|
|
518
|
-
} finally {
|
|
519
|
-
req.return()
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
async function lstat(filepath, cb) {
|
|
524
|
-
filepath = toNamespacedPath(filepath)
|
|
525
|
-
|
|
526
|
-
const req = FileRequest.borrow()
|
|
527
|
-
|
|
528
|
-
let st
|
|
529
|
-
let err = null
|
|
530
|
-
try {
|
|
531
|
-
binding.lstat(req.handle, filepath)
|
|
532
|
-
|
|
533
|
-
await req
|
|
534
|
-
|
|
535
|
-
st = new Stats(...binding.requestResultStat(req.handle))
|
|
536
|
-
} catch (e) {
|
|
537
|
-
err = new FileError(e.message, { operation: 'lstat', code: e.code, path: filepath })
|
|
538
|
-
} finally {
|
|
539
|
-
req.return()
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
return done(err, st, cb)
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
function lstatSync(filepath) {
|
|
546
|
-
filepath = toNamespacedPath(filepath)
|
|
547
|
-
|
|
548
|
-
const req = FileRequest.borrow()
|
|
549
|
-
|
|
550
|
-
try {
|
|
551
|
-
binding.lstatSync(req.handle, filepath)
|
|
552
|
-
|
|
553
|
-
return new Stats(...binding.requestResultStat(req.handle))
|
|
554
|
-
} catch (e) {
|
|
555
|
-
throw new FileError(e.message, { operation: 'lstat', code: e.code, path: filepath })
|
|
556
|
-
} finally {
|
|
557
|
-
req.return()
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
async function fstat(fd, cb) {
|
|
562
|
-
const req = FileRequest.borrow()
|
|
563
|
-
|
|
564
|
-
let st
|
|
565
|
-
let err = null
|
|
566
|
-
try {
|
|
567
|
-
binding.fstat(req.handle, fd)
|
|
568
|
-
|
|
569
|
-
await req
|
|
570
|
-
|
|
571
|
-
st = new Stats(...binding.requestResultStat(req.handle))
|
|
572
|
-
} catch (e) {
|
|
573
|
-
err = new FileError(e.message, { operation: 'fstat', code: e.code, fd })
|
|
574
|
-
} finally {
|
|
575
|
-
req.return()
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
return done(err, st, cb)
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
function fstatSync(fd) {
|
|
582
|
-
const req = FileRequest.borrow()
|
|
583
|
-
|
|
584
|
-
try {
|
|
585
|
-
binding.fstatSync(req.handle, fd)
|
|
586
|
-
|
|
587
|
-
return new Stats(...binding.requestResultStat(req.handle))
|
|
588
|
-
} catch (e) {
|
|
589
|
-
throw new FileError(e.message, { operation: 'fstat', code: e.code, fd })
|
|
590
|
-
} finally {
|
|
591
|
-
req.return()
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
async function statfs(filepath, cb) {
|
|
596
|
-
filepath = toNamespacedPath(filepath)
|
|
597
|
-
|
|
598
|
-
const req = FileRequest.borrow()
|
|
599
|
-
|
|
600
|
-
let st
|
|
601
|
-
let err = null
|
|
602
|
-
try {
|
|
603
|
-
binding.statfs(req.handle, filepath)
|
|
604
|
-
|
|
605
|
-
await req
|
|
606
|
-
|
|
607
|
-
st = new StatFs(...binding.requestResultStatfs(req.handle))
|
|
608
|
-
} catch (e) {
|
|
609
|
-
err = new FileError(e.message, { operation: 'statfs', code: e.code, path: filepath })
|
|
610
|
-
} finally {
|
|
611
|
-
req.return()
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
return done(err, st, cb)
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
function statfsSync(filepath) {
|
|
618
|
-
filepath = toNamespacedPath(filepath)
|
|
619
|
-
|
|
620
|
-
const req = FileRequest.borrow()
|
|
621
|
-
|
|
622
|
-
try {
|
|
623
|
-
binding.statfsSync(req.handle, filepath)
|
|
624
|
-
|
|
625
|
-
return new StatFs(...binding.requestResultStatfs(req.handle))
|
|
626
|
-
} catch (e) {
|
|
627
|
-
throw new FileError(e.message, { operation: 'statfs', code: e.code, path: filepath })
|
|
628
|
-
} finally {
|
|
629
|
-
req.return()
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
async function ftruncate(fd, len = 0, cb) {
|
|
634
|
-
if (typeof len === 'function') {
|
|
635
|
-
cb = len
|
|
636
|
-
len = 0
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
if (typeof len !== 'number') len = 0
|
|
640
|
-
|
|
641
|
-
const req = FileRequest.borrow()
|
|
642
|
-
|
|
643
|
-
let err = null
|
|
644
|
-
try {
|
|
645
|
-
binding.ftruncate(req.handle, fd, len)
|
|
646
|
-
|
|
647
|
-
await req
|
|
648
|
-
} catch (e) {
|
|
649
|
-
err = new FileError(e.message, { operation: 'ftruncate', code: e.code, fd })
|
|
650
|
-
} finally {
|
|
651
|
-
req.return()
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
return done(err, cb)
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
function ftruncateSync(fd, len = 0) {
|
|
658
|
-
if (typeof len !== 'number') len = 0
|
|
659
|
-
|
|
660
|
-
const req = FileRequest.borrow()
|
|
661
|
-
|
|
662
|
-
try {
|
|
663
|
-
binding.ftruncateSync(req.handle, fd, len)
|
|
664
|
-
} catch (e) {
|
|
665
|
-
throw new FileError(e.message, { operation: 'ftruncate', code: e.code, fd })
|
|
666
|
-
} finally {
|
|
667
|
-
req.return()
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
async function truncate(filepath, len, cb) {
|
|
672
|
-
let fd = -1
|
|
673
|
-
let err
|
|
674
|
-
|
|
675
|
-
try {
|
|
676
|
-
fd = await open(filepath, 'r+')
|
|
677
|
-
|
|
678
|
-
await ftruncate(fd, len)
|
|
679
|
-
} catch (e) {
|
|
680
|
-
err = e
|
|
681
|
-
} finally {
|
|
682
|
-
if (fd !== -1) await close(fd)
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
return done(err, cb)
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
function truncateSync(filepath, len) {
|
|
689
|
-
let fd = -1
|
|
690
|
-
let err
|
|
691
|
-
|
|
692
|
-
try {
|
|
693
|
-
fd = openSync(filepath, 'r+')
|
|
694
|
-
|
|
695
|
-
ftruncateSync(fd, len)
|
|
696
|
-
} catch (e) {
|
|
697
|
-
err = e
|
|
698
|
-
} finally {
|
|
699
|
-
if (fd !== -1) closeSync(fd)
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
async function chmod(filepath, mode, cb) {
|
|
704
|
-
if (typeof mode === 'string') mode = toMode(mode)
|
|
705
|
-
|
|
706
|
-
filepath = toNamespacedPath(filepath)
|
|
707
|
-
|
|
708
|
-
const req = FileRequest.borrow()
|
|
709
|
-
|
|
710
|
-
let err = null
|
|
711
|
-
try {
|
|
712
|
-
binding.chmod(req.handle, filepath, mode)
|
|
713
|
-
|
|
714
|
-
await req
|
|
715
|
-
} catch (e) {
|
|
716
|
-
err = new FileError(e.message, {
|
|
717
|
-
operation: 'chmod',
|
|
718
|
-
code: e.code,
|
|
719
|
-
path: filepath
|
|
720
|
-
})
|
|
721
|
-
} finally {
|
|
722
|
-
req.return()
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
return done(err, cb)
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
function chmodSync(filepath, mode) {
|
|
729
|
-
if (typeof mode === 'string') mode = toMode(mode)
|
|
730
|
-
|
|
731
|
-
filepath = toNamespacedPath(filepath)
|
|
732
|
-
|
|
733
|
-
const req = FileRequest.borrow()
|
|
734
|
-
|
|
735
|
-
try {
|
|
736
|
-
binding.chmodSync(req.handle, filepath, mode)
|
|
737
|
-
} catch (e) {
|
|
738
|
-
throw new FileError(e.message, {
|
|
739
|
-
operation: 'chmod',
|
|
740
|
-
code: e.code,
|
|
741
|
-
path: filepath
|
|
742
|
-
})
|
|
743
|
-
} finally {
|
|
744
|
-
req.return()
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
async function fchmod(fd, mode, cb) {
|
|
749
|
-
if (typeof mode === 'string') mode = toMode(mode)
|
|
750
|
-
|
|
751
|
-
const req = FileRequest.borrow()
|
|
752
|
-
|
|
753
|
-
let err = null
|
|
754
|
-
try {
|
|
755
|
-
binding.fchmod(req.handle, fd, mode)
|
|
756
|
-
|
|
757
|
-
await req
|
|
758
|
-
} catch (e) {
|
|
759
|
-
err = new FileError(e.message, { operation: 'fchmod', code: e.code, fd })
|
|
760
|
-
} finally {
|
|
761
|
-
req.return()
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
return done(err, cb)
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
function fchmodSync(fd, mode) {
|
|
768
|
-
if (typeof mode === 'string') mode = toMode(mode)
|
|
769
|
-
|
|
770
|
-
const req = FileRequest.borrow()
|
|
771
|
-
|
|
772
|
-
try {
|
|
773
|
-
binding.fchmodSync(req.handle, fd, mode)
|
|
774
|
-
} catch (e) {
|
|
775
|
-
throw new FileError(e.message, { operation: 'fchmod', code: e.code, fd })
|
|
776
|
-
} finally {
|
|
777
|
-
req.return()
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
async function chown(filepath, uid, gid, cb) {
|
|
782
|
-
filepath = toNamespacedPath(filepath)
|
|
783
|
-
|
|
784
|
-
const req = FileRequest.borrow()
|
|
785
|
-
|
|
786
|
-
let err = null
|
|
787
|
-
try {
|
|
788
|
-
binding.chown(req.handle, filepath, uid, gid)
|
|
789
|
-
|
|
790
|
-
await req
|
|
791
|
-
} catch (e) {
|
|
792
|
-
err = new FileError(e.message, { operation: 'chown', code: e.code, path: filepath })
|
|
793
|
-
} finally {
|
|
794
|
-
req.return()
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
return done(err, cb)
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
function chownSync(filepath, uid, gid) {
|
|
801
|
-
filepath = toNamespacedPath(filepath)
|
|
802
|
-
|
|
803
|
-
const req = FileRequest.borrow()
|
|
804
|
-
|
|
805
|
-
try {
|
|
806
|
-
binding.chownSync(req.handle, filepath, uid, gid)
|
|
807
|
-
} catch (e) {
|
|
808
|
-
throw new FileError(e.message, { operation: 'chownSync', code: e.code, path: filepath })
|
|
809
|
-
} finally {
|
|
810
|
-
req.return()
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
async function lchown(filepath, uid, gid, cb) {
|
|
815
|
-
filepath = toNamespacedPath(filepath)
|
|
816
|
-
|
|
817
|
-
const req = FileRequest.borrow()
|
|
818
|
-
|
|
819
|
-
let err = null
|
|
820
|
-
try {
|
|
821
|
-
binding.lchown(req.handle, filepath, uid, gid)
|
|
822
|
-
|
|
823
|
-
await req
|
|
824
|
-
} catch (e) {
|
|
825
|
-
err = new FileError(e.message, { operation: 'lchown', code: e.code, path: filepath })
|
|
826
|
-
} finally {
|
|
827
|
-
req.return()
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
return done(err, cb)
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
function lchownSync(filepath, uid, gid) {
|
|
834
|
-
filepath = toNamespacedPath(filepath)
|
|
835
|
-
|
|
836
|
-
const req = FileRequest.borrow()
|
|
837
|
-
|
|
838
|
-
try {
|
|
839
|
-
binding.lchownSync(req.handle, filepath, uid, gid)
|
|
840
|
-
} catch (e) {
|
|
841
|
-
throw new FileError(e.message, { operation: 'lchownSync', code: e.code, path: filepath })
|
|
842
|
-
} finally {
|
|
843
|
-
req.return()
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
async function fchown(fd, uid, gid, cb) {
|
|
848
|
-
const req = FileRequest.borrow()
|
|
849
|
-
|
|
850
|
-
let err = null
|
|
851
|
-
try {
|
|
852
|
-
binding.fchown(req.handle, fd, uid, gid)
|
|
853
|
-
|
|
854
|
-
await req
|
|
855
|
-
} catch (e) {
|
|
856
|
-
err = new FileError(e.message, { operation: 'fchown', code: e.code, fd })
|
|
857
|
-
} finally {
|
|
858
|
-
req.return()
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
return done(err, cb)
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
function fchownSync(fd, uid, gid) {
|
|
865
|
-
const req = FileRequest.borrow()
|
|
866
|
-
|
|
867
|
-
try {
|
|
868
|
-
binding.fchownSync(req.handle, fd, uid, gid)
|
|
869
|
-
} catch (e) {
|
|
870
|
-
throw new FileError(e.message, { operation: 'fchownSync', code: e.code, fd })
|
|
871
|
-
} finally {
|
|
872
|
-
req.return()
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
async function utimes(filepath, atime, mtime, cb) {
|
|
877
|
-
if (typeof atime !== 'number') atime = atime.getTime() / 1000
|
|
878
|
-
if (typeof mtime !== 'number') mtime = mtime.getTime() / 1000
|
|
879
|
-
|
|
880
|
-
filepath = toNamespacedPath(filepath)
|
|
881
|
-
|
|
882
|
-
const req = FileRequest.borrow()
|
|
883
|
-
|
|
884
|
-
let err = null
|
|
885
|
-
try {
|
|
886
|
-
binding.utimes(req.handle, filepath, atime, mtime)
|
|
887
|
-
|
|
888
|
-
await req
|
|
889
|
-
} catch (e) {
|
|
890
|
-
err = new FileError(e.message, { operation: 'utimes', code: e.code, path: filepath })
|
|
891
|
-
} finally {
|
|
892
|
-
req.return()
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
return done(err, cb)
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
function utimesSync(filepath, atime, mtime) {
|
|
899
|
-
if (typeof atime !== 'number') atime = atime.getTime() / 1000
|
|
900
|
-
if (typeof mtime !== 'number') mtime = mtime.getTime() / 1000
|
|
901
|
-
|
|
902
|
-
filepath = toNamespacedPath(filepath)
|
|
903
|
-
|
|
904
|
-
const req = FileRequest.borrow()
|
|
905
|
-
|
|
906
|
-
try {
|
|
907
|
-
binding.utimesSync(req.handle, filepath, atime, mtime)
|
|
908
|
-
} catch (e) {
|
|
909
|
-
throw new FileError(e.message, { operation: 'utimes', code: e.code, path: filepath })
|
|
910
|
-
} finally {
|
|
911
|
-
req.return()
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
async function lutimes(filepath, atime, mtime, cb) {
|
|
916
|
-
if (typeof atime !== 'number') atime = atime.getTime() / 1000
|
|
917
|
-
if (typeof mtime !== 'number') mtime = mtime.getTime() / 1000
|
|
918
|
-
|
|
919
|
-
filepath = toNamespacedPath(filepath)
|
|
920
|
-
|
|
921
|
-
const req = FileRequest.borrow()
|
|
922
|
-
|
|
923
|
-
let err = null
|
|
924
|
-
try {
|
|
925
|
-
binding.lutimes(req.handle, filepath, atime, mtime)
|
|
926
|
-
|
|
927
|
-
await req
|
|
928
|
-
} catch (e) {
|
|
929
|
-
err = new FileError(e.message, { operation: 'lutimes', code: e.code, path: filepath })
|
|
930
|
-
} finally {
|
|
931
|
-
req.return()
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
return done(err, cb)
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
function lutimesSync(filepath, atime, mtime) {
|
|
938
|
-
if (typeof atime !== 'number') atime = atime.getTime() / 1000
|
|
939
|
-
if (typeof mtime !== 'number') mtime = mtime.getTime() / 1000
|
|
940
|
-
|
|
941
|
-
filepath = toNamespacedPath(filepath)
|
|
942
|
-
|
|
943
|
-
const req = FileRequest.borrow()
|
|
944
|
-
|
|
945
|
-
try {
|
|
946
|
-
binding.lutimesSync(req.handle, filepath, atime, mtime)
|
|
947
|
-
} catch (e) {
|
|
948
|
-
throw new FileError(e.message, { operation: 'lutimes', code: e.code, path: filepath })
|
|
949
|
-
} finally {
|
|
950
|
-
req.return()
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
async function futimes(fd, atime, mtime, cb) {
|
|
955
|
-
if (typeof atime !== 'number') atime = atime.getTime() / 1000
|
|
956
|
-
if (typeof mtime !== 'number') mtime = mtime.getTime() / 1000
|
|
957
|
-
|
|
958
|
-
const req = FileRequest.borrow()
|
|
959
|
-
|
|
960
|
-
let err = null
|
|
961
|
-
try {
|
|
962
|
-
binding.futimes(req.handle, fd, atime, mtime)
|
|
963
|
-
|
|
964
|
-
await req
|
|
965
|
-
} catch (e) {
|
|
966
|
-
err = new FileError(e.message, { operation: 'futimes', code: e.code, fd })
|
|
967
|
-
} finally {
|
|
968
|
-
req.return()
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
return done(err, cb)
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
function futimesSync(fd, atime, mtime) {
|
|
975
|
-
if (typeof atime !== 'number') atime = atime.getTime() / 1000
|
|
976
|
-
if (typeof mtime !== 'number') mtime = mtime.getTime() / 1000
|
|
977
|
-
|
|
978
|
-
const req = FileRequest.borrow()
|
|
979
|
-
|
|
980
|
-
try {
|
|
981
|
-
binding.futimesSync(req.handle, fd, atime, mtime)
|
|
982
|
-
} catch (e) {
|
|
983
|
-
throw new FileError(e.message, { operation: 'futimesSync', code: e.code, fd })
|
|
984
|
-
} finally {
|
|
985
|
-
req.return()
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
async function link(src, dst, cb) {
|
|
990
|
-
src = toNamespacedPath(src)
|
|
991
|
-
dst = toNamespacedPath(dst)
|
|
992
|
-
|
|
993
|
-
const req = FileRequest.borrow()
|
|
994
|
-
|
|
995
|
-
let err = null
|
|
996
|
-
try {
|
|
997
|
-
binding.link(req.handle, src, dst)
|
|
998
|
-
|
|
999
|
-
await req
|
|
1000
|
-
} catch (e) {
|
|
1001
|
-
err = new FileError(e.message, { operation: 'link', code: e.code, path: src, destination: dst })
|
|
1002
|
-
} finally {
|
|
1003
|
-
req.return()
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
return done(err, cb)
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
function linkSync(src, dst) {
|
|
1010
|
-
src = toNamespacedPath(src)
|
|
1011
|
-
dst = toNamespacedPath(dst)
|
|
1012
|
-
|
|
1013
|
-
const req = FileRequest.borrow()
|
|
1014
|
-
|
|
1015
|
-
try {
|
|
1016
|
-
binding.linkSync(req.handle, src, dst)
|
|
1017
|
-
} catch (e) {
|
|
1018
|
-
throw new FileError(e.message, {
|
|
1019
|
-
operation: 'linkSync',
|
|
1020
|
-
code: e.code,
|
|
1021
|
-
path: src,
|
|
1022
|
-
destination: dst
|
|
1023
|
-
})
|
|
1024
|
-
} finally {
|
|
1025
|
-
req.return()
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
async function mkdir(filepath, opts, cb) {
|
|
1030
|
-
if (typeof opts === 'function') {
|
|
1031
|
-
cb = opts
|
|
1032
|
-
opts = { mode: 0o777 }
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
if (typeof opts === 'number') opts = { mode: opts }
|
|
1036
|
-
else if (!opts) opts = {}
|
|
1037
|
-
|
|
1038
|
-
const mode = typeof opts.mode === 'number' ? opts.mode : 0o777
|
|
1039
|
-
|
|
1040
|
-
filepath = toNamespacedPath(filepath)
|
|
1041
|
-
|
|
1042
|
-
if (opts.recursive) {
|
|
1043
|
-
let err = null
|
|
1044
|
-
try {
|
|
1045
|
-
try {
|
|
1046
|
-
await mkdir(filepath, { mode })
|
|
1047
|
-
} catch (err) {
|
|
1048
|
-
if (err.code !== 'ENOENT') {
|
|
1049
|
-
if (!(await stat(filepath)).isDirectory()) throw err
|
|
1050
|
-
} else {
|
|
1051
|
-
while (filepath.endsWith(path.sep)) filepath = filepath.slice(0, -1)
|
|
1052
|
-
const i = filepath.lastIndexOf(path.sep)
|
|
1053
|
-
if (i <= 0) throw err
|
|
1054
|
-
|
|
1055
|
-
await mkdir(filepath.slice(0, i), { mode, recursive: true })
|
|
1056
|
-
|
|
1057
|
-
try {
|
|
1058
|
-
await mkdir(filepath, { mode })
|
|
1059
|
-
} catch (err) {
|
|
1060
|
-
if (!(await stat(filepath)).isDirectory()) throw err
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
} catch (e) {
|
|
1065
|
-
err = e
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
return done(err, cb)
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
const req = FileRequest.borrow()
|
|
1072
|
-
|
|
1073
|
-
let err = null
|
|
1074
|
-
try {
|
|
1075
|
-
binding.mkdir(req.handle, filepath, mode)
|
|
1076
|
-
|
|
1077
|
-
await req
|
|
1078
|
-
} catch (e) {
|
|
1079
|
-
err = new FileError(e.message, {
|
|
1080
|
-
operation: 'mkdir',
|
|
1081
|
-
code: e.code,
|
|
1082
|
-
path: filepath
|
|
1083
|
-
})
|
|
1084
|
-
} finally {
|
|
1085
|
-
req.return()
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
return done(err, cb)
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
function mkdirSync(filepath, opts) {
|
|
1092
|
-
if (typeof opts === 'number') opts = { mode: opts }
|
|
1093
|
-
else if (!opts) opts = {}
|
|
1094
|
-
|
|
1095
|
-
const mode = typeof opts.mode === 'number' ? opts.mode : 0o777
|
|
1096
|
-
|
|
1097
|
-
filepath = toNamespacedPath(filepath)
|
|
1098
|
-
|
|
1099
|
-
if (opts.recursive) {
|
|
1100
|
-
try {
|
|
1101
|
-
mkdirSync(filepath, { mode })
|
|
1102
|
-
} catch (err) {
|
|
1103
|
-
if (err.code !== 'ENOENT') {
|
|
1104
|
-
if (!statSync(filepath).isDirectory()) throw err
|
|
1105
|
-
} else {
|
|
1106
|
-
while (filepath.endsWith(path.sep)) filepath = filepath.slice(0, -1)
|
|
1107
|
-
const i = filepath.lastIndexOf(path.sep)
|
|
1108
|
-
if (i <= 0) throw err
|
|
1109
|
-
|
|
1110
|
-
mkdirSync(filepath.slice(0, i), { mode, recursive: true })
|
|
1111
|
-
|
|
1112
|
-
try {
|
|
1113
|
-
mkdirSync(filepath, { mode })
|
|
1114
|
-
} catch (err) {
|
|
1115
|
-
if (!statSync(filepath).isDirectory()) throw err
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
return
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
const req = FileRequest.borrow()
|
|
1124
|
-
|
|
1125
|
-
try {
|
|
1126
|
-
binding.mkdirSync(req.handle, filepath, mode)
|
|
1127
|
-
} catch (e) {
|
|
1128
|
-
throw new FileError(e.message, {
|
|
1129
|
-
operation: 'mkdir',
|
|
1130
|
-
code: e.code,
|
|
1131
|
-
path: filepath
|
|
1132
|
-
})
|
|
1133
|
-
} finally {
|
|
1134
|
-
req.return()
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
async function mkdtemp(prefix, cb) {
|
|
1139
|
-
prefix = toNamespacedPath(prefix)
|
|
1140
|
-
|
|
1141
|
-
const req = FileRequest.borrow()
|
|
1142
|
-
|
|
1143
|
-
let res
|
|
1144
|
-
let err = null
|
|
1145
|
-
try {
|
|
1146
|
-
binding.mkdtemp(req.handle, prefix + 'XXXXXX')
|
|
1147
|
-
|
|
1148
|
-
await req
|
|
1149
|
-
|
|
1150
|
-
res = binding.requestResultPath(req.handle)
|
|
1151
|
-
} catch (e) {
|
|
1152
|
-
err = new FileError(e.message, { operation: 'mkdtemp', code: e.code, path: prefix })
|
|
1153
|
-
} finally {
|
|
1154
|
-
req.return()
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
return done(err, res, cb)
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
function mkdtempSync(prefix) {
|
|
1161
|
-
prefix = toNamespacedPath(prefix)
|
|
1162
|
-
|
|
1163
|
-
const req = FileRequest.borrow()
|
|
1164
|
-
|
|
1165
|
-
try {
|
|
1166
|
-
binding.mkdtempSync(req.handle, prefix + 'XXXXXX')
|
|
1167
|
-
|
|
1168
|
-
return binding.requestResultPath(req.handle)
|
|
1169
|
-
} catch (e) {
|
|
1170
|
-
throw new FileError(e.message, { operation: 'mkdtempSync', code: e.code, path: prefix })
|
|
1171
|
-
} finally {
|
|
1172
|
-
req.return()
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
async function rmdir(filepath, cb) {
|
|
1177
|
-
filepath = toNamespacedPath(filepath)
|
|
1178
|
-
|
|
1179
|
-
const req = FileRequest.borrow()
|
|
1180
|
-
|
|
1181
|
-
let err = null
|
|
1182
|
-
try {
|
|
1183
|
-
binding.rmdir(req.handle, filepath)
|
|
1184
|
-
|
|
1185
|
-
await req
|
|
1186
|
-
} catch (e) {
|
|
1187
|
-
err = new FileError(e.message, {
|
|
1188
|
-
operation: 'rmdir',
|
|
1189
|
-
code: e.code,
|
|
1190
|
-
path: filepath
|
|
1191
|
-
})
|
|
1192
|
-
} finally {
|
|
1193
|
-
req.return()
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
return done(err, cb)
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
function rmdirSync(filepath) {
|
|
1200
|
-
filepath = toNamespacedPath(filepath)
|
|
1201
|
-
|
|
1202
|
-
const req = FileRequest.borrow()
|
|
1203
|
-
|
|
1204
|
-
try {
|
|
1205
|
-
binding.rmdirSync(req.handle, filepath)
|
|
1206
|
-
} catch (e) {
|
|
1207
|
-
throw new FileError(e.message, {
|
|
1208
|
-
operation: 'rmdir',
|
|
1209
|
-
code: e.code,
|
|
1210
|
-
path: filepath
|
|
1211
|
-
})
|
|
1212
|
-
} finally {
|
|
1213
|
-
req.return()
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
async function rm(filepath, opts, cb) {
|
|
1218
|
-
if (typeof opts === 'function') {
|
|
1219
|
-
cb = opts
|
|
1220
|
-
opts = {}
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
if (!opts) opts = {}
|
|
1224
|
-
|
|
1225
|
-
filepath = toNamespacedPath(filepath)
|
|
1226
|
-
|
|
1227
|
-
let err = null
|
|
1228
|
-
try {
|
|
1229
|
-
const st = await lstat(filepath)
|
|
1230
|
-
|
|
1231
|
-
if (st.isDirectory()) {
|
|
1232
|
-
if (opts.recursive) {
|
|
1233
|
-
try {
|
|
1234
|
-
await rmdir(filepath)
|
|
1235
|
-
} catch (err) {
|
|
1236
|
-
if (err.code !== 'ENOTEMPTY') throw err
|
|
1237
|
-
|
|
1238
|
-
const files = await readdir(filepath)
|
|
1239
|
-
|
|
1240
|
-
for (const file of files) {
|
|
1241
|
-
await rm(filepath + path.sep + file, opts)
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
await rmdir(filepath)
|
|
1245
|
-
}
|
|
1246
|
-
} else {
|
|
1247
|
-
throw new FileError('is a directory', {
|
|
1248
|
-
operation: 'rm',
|
|
1249
|
-
code: 'EISDIR',
|
|
1250
|
-
path: filepath
|
|
1251
|
-
})
|
|
1252
|
-
}
|
|
1253
|
-
} else {
|
|
1254
|
-
await unlink(filepath)
|
|
1255
|
-
}
|
|
1256
|
-
} catch (e) {
|
|
1257
|
-
if (e.code !== 'ENOENT' || !opts.force) err = e
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
return done(err, cb)
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
function rmSync(filepath, opts) {
|
|
1264
|
-
if (!opts) opts = {}
|
|
1265
|
-
|
|
1266
|
-
filepath = toNamespacedPath(filepath)
|
|
1267
|
-
|
|
1268
|
-
try {
|
|
1269
|
-
const st = lstatSync(filepath)
|
|
1270
|
-
|
|
1271
|
-
if (st.isDirectory()) {
|
|
1272
|
-
if (opts.recursive) {
|
|
1273
|
-
try {
|
|
1274
|
-
rmdirSync(filepath)
|
|
1275
|
-
} catch (err) {
|
|
1276
|
-
if (err.code !== 'ENOTEMPTY') throw err
|
|
1277
|
-
|
|
1278
|
-
const files = readdirSync(filepath)
|
|
1279
|
-
|
|
1280
|
-
for (const file of files) {
|
|
1281
|
-
rmSync(filepath + path.sep + file, opts)
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
rmdirSync(filepath)
|
|
1285
|
-
}
|
|
1286
|
-
} else {
|
|
1287
|
-
throw new FileError('is a directory', {
|
|
1288
|
-
operation: 'rm',
|
|
1289
|
-
code: 'EISDIR',
|
|
1290
|
-
path: filepath
|
|
1291
|
-
})
|
|
1292
|
-
}
|
|
1293
|
-
} else {
|
|
1294
|
-
unlinkSync(filepath)
|
|
1295
|
-
}
|
|
1296
|
-
} catch (err) {
|
|
1297
|
-
if (err.code !== 'ENOENT' || !opts.force) throw err
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
async function unlink(filepath, cb) {
|
|
1302
|
-
filepath = toNamespacedPath(filepath)
|
|
1303
|
-
|
|
1304
|
-
const req = FileRequest.borrow()
|
|
1305
|
-
|
|
1306
|
-
let err = null
|
|
1307
|
-
try {
|
|
1308
|
-
binding.unlink(req.handle, filepath)
|
|
1309
|
-
|
|
1310
|
-
await req
|
|
1311
|
-
} catch (e) {
|
|
1312
|
-
err = new FileError(e.message, {
|
|
1313
|
-
operation: 'unlink',
|
|
1314
|
-
code: e.code,
|
|
1315
|
-
path: filepath
|
|
1316
|
-
})
|
|
1317
|
-
} finally {
|
|
1318
|
-
req.return()
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
return done(err, cb)
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
function unlinkSync(filepath) {
|
|
1325
|
-
filepath = toNamespacedPath(filepath)
|
|
1326
|
-
|
|
1327
|
-
const req = FileRequest.borrow()
|
|
1328
|
-
|
|
1329
|
-
try {
|
|
1330
|
-
binding.unlinkSync(req.handle, filepath)
|
|
1331
|
-
} catch (e) {
|
|
1332
|
-
throw new FileError(e.message, {
|
|
1333
|
-
operation: 'unlink',
|
|
1334
|
-
code: e.code,
|
|
1335
|
-
path: filepath
|
|
1336
|
-
})
|
|
1337
|
-
} finally {
|
|
1338
|
-
req.return()
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
async function rename(src, dst, cb) {
|
|
1343
|
-
src = toNamespacedPath(src)
|
|
1344
|
-
dst = toNamespacedPath(dst)
|
|
1345
|
-
|
|
1346
|
-
const req = FileRequest.borrow()
|
|
1347
|
-
|
|
1348
|
-
let err = null
|
|
1349
|
-
try {
|
|
1350
|
-
binding.rename(req.handle, src, dst)
|
|
1351
|
-
|
|
1352
|
-
await req
|
|
1353
|
-
} catch (e) {
|
|
1354
|
-
err = new FileError(e.message, {
|
|
1355
|
-
operation: 'rename',
|
|
1356
|
-
code: e.code,
|
|
1357
|
-
path: src,
|
|
1358
|
-
destination: dst
|
|
1359
|
-
})
|
|
1360
|
-
} finally {
|
|
1361
|
-
req.return()
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
return done(err, cb)
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
function renameSync(src, dst) {
|
|
1368
|
-
src = toNamespacedPath(src)
|
|
1369
|
-
dst = toNamespacedPath(dst)
|
|
1370
|
-
|
|
1371
|
-
const req = FileRequest.borrow()
|
|
1372
|
-
|
|
1373
|
-
try {
|
|
1374
|
-
binding.renameSync(req.handle, src, dst)
|
|
1375
|
-
} catch (e) {
|
|
1376
|
-
throw new FileError(e.message, {
|
|
1377
|
-
operation: 'rename',
|
|
1378
|
-
code: e.code,
|
|
1379
|
-
path: src,
|
|
1380
|
-
destination: dst
|
|
1381
|
-
})
|
|
1382
|
-
} finally {
|
|
1383
|
-
req.return()
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
async function copyFile(src, dst, mode = 0, cb) {
|
|
1388
|
-
if (typeof mode === 'function') {
|
|
1389
|
-
cb = mode
|
|
1390
|
-
mode = 0
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
src = toNamespacedPath(src)
|
|
1394
|
-
dst = toNamespacedPath(dst)
|
|
1395
|
-
|
|
1396
|
-
const req = FileRequest.borrow()
|
|
1397
|
-
|
|
1398
|
-
let err = null
|
|
1399
|
-
try {
|
|
1400
|
-
binding.copyfile(req.handle, src, dst, mode)
|
|
1401
|
-
|
|
1402
|
-
await req
|
|
1403
|
-
} catch (e) {
|
|
1404
|
-
err = new FileError(e.message, {
|
|
1405
|
-
operation: 'copyfile',
|
|
1406
|
-
code: e.code,
|
|
1407
|
-
path: src,
|
|
1408
|
-
destination: dst
|
|
1409
|
-
})
|
|
1410
|
-
} finally {
|
|
1411
|
-
req.return()
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
return done(err, cb)
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
function copyFileSync(src, dst, mode = 0) {
|
|
1418
|
-
src = toNamespacedPath(src)
|
|
1419
|
-
dst = toNamespacedPath(dst)
|
|
1420
|
-
|
|
1421
|
-
const req = FileRequest.borrow()
|
|
1422
|
-
|
|
1423
|
-
try {
|
|
1424
|
-
binding.copyfileSync(req.handle, src, dst, mode)
|
|
1425
|
-
} catch (e) {
|
|
1426
|
-
throw new FileError(e.message, {
|
|
1427
|
-
operation: 'copyfile',
|
|
1428
|
-
code: e.code,
|
|
1429
|
-
path: src,
|
|
1430
|
-
destination: dst
|
|
1431
|
-
})
|
|
1432
|
-
} finally {
|
|
1433
|
-
req.return()
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
async function cp(src, dst, opts, cb) {
|
|
1438
|
-
if (typeof opts === 'function') {
|
|
1439
|
-
cb = opts
|
|
1440
|
-
opts = {}
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
if (!opts) opts = {}
|
|
1444
|
-
|
|
1445
|
-
src = toNamespacedPath(src)
|
|
1446
|
-
dst = toNamespacedPath(dst)
|
|
1447
|
-
|
|
1448
|
-
let err = null
|
|
1449
|
-
try {
|
|
1450
|
-
const st = await lstat(src)
|
|
1451
|
-
|
|
1452
|
-
if (st.isDirectory()) {
|
|
1453
|
-
if (opts.recursive !== true) {
|
|
1454
|
-
throw new FileError('is a directory', { operation: 'cp', code: 'EISDIR', path: src })
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
try {
|
|
1458
|
-
await lstat(dst)
|
|
1459
|
-
} catch (e) {
|
|
1460
|
-
if (e.code !== 'ENOENT') throw e
|
|
1461
|
-
|
|
1462
|
-
await mkdir(dst, { mode: st.mode, recursive: true })
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
const dir = await opendir(src)
|
|
1466
|
-
for await (const { name } of dir) {
|
|
1467
|
-
await cp(path.join(src, name), path.join(dst, name), opts)
|
|
1468
|
-
}
|
|
1469
|
-
} else if (st.isFile()) {
|
|
1470
|
-
await copyFile(src, dst)
|
|
1471
|
-
await chmod(dst, st.mode)
|
|
1472
|
-
}
|
|
1473
|
-
} catch (e) {
|
|
1474
|
-
err = e
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
return done(err, cb)
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
function cpSync(src, dst, opts = {}) {
|
|
1481
|
-
src = toNamespacedPath(src)
|
|
1482
|
-
dst = toNamespacedPath(dst)
|
|
1483
|
-
|
|
1484
|
-
const st = lstatSync(src)
|
|
1485
|
-
|
|
1486
|
-
if (st.isDirectory()) {
|
|
1487
|
-
if (opts.recursive !== true) {
|
|
1488
|
-
throw new FileError('is a directory', { operation: 'cp', code: 'EISDIR', path: src })
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
try {
|
|
1492
|
-
lstatSync(dst)
|
|
1493
|
-
} catch (e) {
|
|
1494
|
-
if (e.code !== 'ENOENT') throw e
|
|
1495
|
-
|
|
1496
|
-
mkdirSync(dst, { mode: st.mode, recursive: true })
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
const dir = opendirSync(src)
|
|
1500
|
-
for (const { name } of dir) {
|
|
1501
|
-
cpSync(path.join(src, name), path.join(dst, name), opts)
|
|
1502
|
-
}
|
|
1503
|
-
} else if (st.isFile()) {
|
|
1504
|
-
copyFileSync(src, dst)
|
|
1505
|
-
chmodSync(dst, st.mode)
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
async function realpath(filepath, opts, cb) {
|
|
1510
|
-
if (typeof opts === 'function') {
|
|
1511
|
-
cb = opts
|
|
1512
|
-
opts = {}
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1516
|
-
else if (!opts) opts = {}
|
|
1517
|
-
|
|
1518
|
-
const { encoding = 'utf8' } = opts
|
|
1519
|
-
|
|
1520
|
-
filepath = toNamespacedPath(filepath)
|
|
1521
|
-
|
|
1522
|
-
const req = FileRequest.borrow()
|
|
1523
|
-
|
|
1524
|
-
let res
|
|
1525
|
-
let err = null
|
|
1526
|
-
try {
|
|
1527
|
-
binding.realpath(req.handle, filepath)
|
|
1528
|
-
|
|
1529
|
-
await req
|
|
1530
|
-
|
|
1531
|
-
res = Buffer.from(binding.requestResultString(req.handle))
|
|
1532
|
-
|
|
1533
|
-
if (encoding !== 'buffer') res = res.toString(encoding)
|
|
1534
|
-
} catch (e) {
|
|
1535
|
-
err = new FileError(e.message, {
|
|
1536
|
-
operation: 'realpath',
|
|
1537
|
-
code: e.code,
|
|
1538
|
-
path: filepath
|
|
1539
|
-
})
|
|
1540
|
-
} finally {
|
|
1541
|
-
req.return()
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
return done(err, res, cb)
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
function realpathSync(filepath, opts) {
|
|
1548
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1549
|
-
else if (!opts) opts = {}
|
|
1550
|
-
|
|
1551
|
-
const { encoding = 'utf8' } = opts
|
|
1552
|
-
|
|
1553
|
-
filepath = toNamespacedPath(filepath)
|
|
1554
|
-
|
|
1555
|
-
const req = FileRequest.borrow()
|
|
1556
|
-
|
|
1557
|
-
try {
|
|
1558
|
-
binding.realpathSync(req.handle, filepath)
|
|
1559
|
-
|
|
1560
|
-
let res = Buffer.from(binding.requestResultString(req.handle))
|
|
1561
|
-
|
|
1562
|
-
if (encoding !== 'buffer') res = res.toString(encoding)
|
|
1563
|
-
|
|
1564
|
-
return res
|
|
1565
|
-
} catch (e) {
|
|
1566
|
-
throw new FileError(e.message, {
|
|
1567
|
-
operation: 'realpath',
|
|
1568
|
-
code: e.code,
|
|
1569
|
-
path: filepath
|
|
1570
|
-
})
|
|
1571
|
-
} finally {
|
|
1572
|
-
req.return()
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
async function readlink(filepath, opts, cb) {
|
|
1577
|
-
if (typeof opts === 'function') {
|
|
1578
|
-
cb = opts
|
|
1579
|
-
opts = {}
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1583
|
-
else if (!opts) opts = {}
|
|
1584
|
-
|
|
1585
|
-
const { encoding = 'utf8' } = opts
|
|
1586
|
-
|
|
1587
|
-
filepath = toNamespacedPath(filepath)
|
|
1588
|
-
|
|
1589
|
-
const req = FileRequest.borrow()
|
|
1590
|
-
|
|
1591
|
-
let res
|
|
1592
|
-
let err = null
|
|
1593
|
-
try {
|
|
1594
|
-
binding.readlink(req.handle, filepath)
|
|
1595
|
-
|
|
1596
|
-
await req
|
|
1597
|
-
|
|
1598
|
-
res = Buffer.from(binding.requestResultString(req.handle))
|
|
1599
|
-
|
|
1600
|
-
if (encoding !== 'buffer') res = res.toString(encoding)
|
|
1601
|
-
} catch (e) {
|
|
1602
|
-
err = new FileError(e.message, {
|
|
1603
|
-
operation: 'readlink',
|
|
1604
|
-
code: e.code,
|
|
1605
|
-
path: filepath
|
|
1606
|
-
})
|
|
1607
|
-
} finally {
|
|
1608
|
-
req.return()
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
return done(err, res, cb)
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
function readlinkSync(filepath, opts) {
|
|
1615
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1616
|
-
else if (!opts) opts = {}
|
|
1617
|
-
|
|
1618
|
-
const { encoding = 'utf8' } = opts
|
|
1619
|
-
|
|
1620
|
-
filepath = toNamespacedPath(filepath)
|
|
1621
|
-
|
|
1622
|
-
const req = FileRequest.borrow()
|
|
1623
|
-
|
|
1624
|
-
try {
|
|
1625
|
-
binding.readlinkSync(req.handle, filepath)
|
|
1626
|
-
|
|
1627
|
-
let res = Buffer.from(binding.requestResultString(req.handle))
|
|
1628
|
-
|
|
1629
|
-
if (encoding !== 'buffer') res = res.toString(encoding)
|
|
1630
|
-
|
|
1631
|
-
return res
|
|
1632
|
-
} catch (e) {
|
|
1633
|
-
throw new FileError(e.message, {
|
|
1634
|
-
operation: 'readlink',
|
|
1635
|
-
code: e.code,
|
|
1636
|
-
path: filepath
|
|
1637
|
-
})
|
|
1638
|
-
} finally {
|
|
1639
|
-
req.return()
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
async function fsync(fd, cb) {
|
|
1644
|
-
const req = FileRequest.borrow()
|
|
1645
|
-
|
|
1646
|
-
let err = null
|
|
1647
|
-
try {
|
|
1648
|
-
binding.fsync(req.handle, fd)
|
|
1649
|
-
|
|
1650
|
-
await req
|
|
1651
|
-
} catch (e) {
|
|
1652
|
-
err = new FileError(e.message, { operation: 'fsync', code: e.code, fd })
|
|
1653
|
-
} finally {
|
|
1654
|
-
req.return()
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
return done(err, cb)
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1660
|
-
function fsyncSync(fd) {
|
|
1661
|
-
const req = FileRequest.borrow()
|
|
1662
|
-
|
|
1663
|
-
try {
|
|
1664
|
-
binding.fsyncSync(req.handle, fd)
|
|
1665
|
-
} catch (e) {
|
|
1666
|
-
throw new FileError(e.message, { operation: 'fsyncSync', code: e.code, fd })
|
|
1667
|
-
} finally {
|
|
1668
|
-
req.return()
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
async function fdatasync(fd, cb) {
|
|
1673
|
-
const req = FileRequest.borrow()
|
|
1674
|
-
|
|
1675
|
-
let err = null
|
|
1676
|
-
try {
|
|
1677
|
-
binding.fdatasync(req.handle, fd)
|
|
1678
|
-
|
|
1679
|
-
await req
|
|
1680
|
-
} catch (e) {
|
|
1681
|
-
err = new FileError(e.message, { operation: 'fdatasync', code: e.code, fd })
|
|
1682
|
-
} finally {
|
|
1683
|
-
req.return()
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
return done(err, cb)
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
function fdatasyncSync(fd) {
|
|
1690
|
-
const req = FileRequest.borrow()
|
|
1691
|
-
|
|
1692
|
-
try {
|
|
1693
|
-
binding.fdatasyncSync(req.handle, fd)
|
|
1694
|
-
} catch (e) {
|
|
1695
|
-
throw new FileError(e.message, { operation: 'fdatasyncSync', code: e.code, fd })
|
|
1696
|
-
} finally {
|
|
1697
|
-
req.return()
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
function normalizeSymlinkTarget(target, type, filepath) {
|
|
1702
|
-
if (isWindows) {
|
|
1703
|
-
if (type === constants.UV_FS_SYMLINK_JUNCTION) target = path.resolve(filepath, '..', target)
|
|
1704
|
-
|
|
1705
|
-
if (path.isAbsolute(target)) return path.toNamespacedPath(target)
|
|
1706
|
-
|
|
1707
|
-
return target.replace(/\//g, path.sep)
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
return target
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
async function symlink(target, filepath, type, cb) {
|
|
1714
|
-
if (typeof type === 'function') {
|
|
1715
|
-
cb = type
|
|
1716
|
-
type = null
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
filepath = toNamespacedPath(filepath)
|
|
1720
|
-
|
|
1721
|
-
if (typeof type === 'string') {
|
|
1722
|
-
switch (type) {
|
|
1723
|
-
case 'dir':
|
|
1724
|
-
type = constants.UV_FS_SYMLINK_DIR
|
|
1725
|
-
break
|
|
1726
|
-
case 'junction':
|
|
1727
|
-
type = constants.UV_FS_SYMLINK_JUNCTION
|
|
1728
|
-
break
|
|
1729
|
-
case 'file':
|
|
1730
|
-
default:
|
|
1731
|
-
type = 0
|
|
1732
|
-
break
|
|
1733
|
-
}
|
|
1734
|
-
} else if (typeof type !== 'number') {
|
|
1735
|
-
if (isWindows) {
|
|
1736
|
-
target = path.resolve(filepath, '..', target)
|
|
1737
|
-
|
|
1738
|
-
try {
|
|
1739
|
-
type = (await stat(target)).isDirectory()
|
|
1740
|
-
? constants.UV_FS_SYMLINK_DIR
|
|
1741
|
-
: constants.UV_FS_SYMLINK_JUNCTION
|
|
1742
|
-
} catch {
|
|
1743
|
-
type = 0
|
|
1744
|
-
}
|
|
1745
|
-
} else {
|
|
1746
|
-
type = 0
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
target = normalizeSymlinkTarget(target, type, filepath)
|
|
1751
|
-
|
|
1752
|
-
const req = FileRequest.borrow()
|
|
1753
|
-
|
|
1754
|
-
let err = null
|
|
1755
|
-
try {
|
|
1756
|
-
binding.symlink(req.handle, target, filepath, type)
|
|
1757
|
-
|
|
1758
|
-
await req
|
|
1759
|
-
} catch (e) {
|
|
1760
|
-
err = new FileError(e.message, {
|
|
1761
|
-
operation: 'symlink',
|
|
1762
|
-
code: e.code,
|
|
1763
|
-
path: target,
|
|
1764
|
-
destination: filepath
|
|
1765
|
-
})
|
|
1766
|
-
} finally {
|
|
1767
|
-
req.return()
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
return done(err, cb)
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
function symlinkSync(target, filepath, type) {
|
|
1774
|
-
filepath = toNamespacedPath(filepath)
|
|
1775
|
-
|
|
1776
|
-
if (typeof type === 'string') {
|
|
1777
|
-
switch (type) {
|
|
1778
|
-
case 'dir':
|
|
1779
|
-
type = constants.UV_FS_SYMLINK_DIR
|
|
1780
|
-
break
|
|
1781
|
-
case 'junction':
|
|
1782
|
-
type = constants.UV_FS_SYMLINK_JUNCTION
|
|
1783
|
-
break
|
|
1784
|
-
case 'file':
|
|
1785
|
-
default:
|
|
1786
|
-
type = 0
|
|
1787
|
-
break
|
|
1788
|
-
}
|
|
1789
|
-
} else if (typeof type !== 'number') {
|
|
1790
|
-
if (isWindows) {
|
|
1791
|
-
target = path.resolve(filepath, '..', target)
|
|
1792
|
-
|
|
1793
|
-
try {
|
|
1794
|
-
type = statSync(target).isDirectory()
|
|
1795
|
-
? constants.UV_FS_SYMLINK_DIR
|
|
1796
|
-
: constants.UV_FS_SYMLINK_JUNCTION
|
|
1797
|
-
} catch {
|
|
1798
|
-
type = 0
|
|
1799
|
-
}
|
|
1800
|
-
} else {
|
|
1801
|
-
type = 0
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
target = normalizeSymlinkTarget(target, type, filepath)
|
|
1806
|
-
|
|
1807
|
-
const req = FileRequest.borrow()
|
|
1808
|
-
|
|
1809
|
-
try {
|
|
1810
|
-
binding.symlinkSync(req.handle, target, filepath, type)
|
|
1811
|
-
} catch (e) {
|
|
1812
|
-
throw new FileError(e.message, {
|
|
1813
|
-
operation: 'symlink',
|
|
1814
|
-
code: e.code,
|
|
1815
|
-
path: target,
|
|
1816
|
-
destination: filepath
|
|
1817
|
-
})
|
|
1818
|
-
} finally {
|
|
1819
|
-
req.return()
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
async function opendir(filepath, opts, cb) {
|
|
1824
|
-
if (typeof opts === 'function') {
|
|
1825
|
-
cb = opts
|
|
1826
|
-
opts = {}
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1830
|
-
else if (!opts) opts = {}
|
|
1831
|
-
|
|
1832
|
-
filepath = toNamespacedPath(filepath)
|
|
1833
|
-
|
|
1834
|
-
const req = FileRequest.borrow()
|
|
1835
|
-
|
|
1836
|
-
let dir
|
|
1837
|
-
let err = null
|
|
1838
|
-
try {
|
|
1839
|
-
binding.opendir(req.handle, filepath)
|
|
1840
|
-
|
|
1841
|
-
await req
|
|
1842
|
-
|
|
1843
|
-
dir = new Dir(filepath, binding.requestResultDir(req.handle), opts)
|
|
1844
|
-
} catch (e) {
|
|
1845
|
-
err = new FileError(e.message, {
|
|
1846
|
-
operation: 'opendir',
|
|
1847
|
-
code: e.code,
|
|
1848
|
-
path: filepath
|
|
1849
|
-
})
|
|
1850
|
-
} finally {
|
|
1851
|
-
req.return()
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
return done(err, dir, cb)
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
function opendirSync(filepath, opts) {
|
|
1858
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1859
|
-
else if (!opts) opts = {}
|
|
1860
|
-
|
|
1861
|
-
filepath = toNamespacedPath(filepath)
|
|
1862
|
-
|
|
1863
|
-
const req = FileRequest.borrow()
|
|
1864
|
-
|
|
1865
|
-
try {
|
|
1866
|
-
binding.opendirSync(req.handle, filepath)
|
|
1867
|
-
|
|
1868
|
-
return new Dir(filepath, binding.requestResultDir(req.handle), opts)
|
|
1869
|
-
} catch (e) {
|
|
1870
|
-
throw new FileError(e.message, {
|
|
1871
|
-
operation: 'opendir',
|
|
1872
|
-
code: e.code,
|
|
1873
|
-
path: filepath
|
|
1874
|
-
})
|
|
1875
|
-
} finally {
|
|
1876
|
-
req.return()
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
async function readdir(filepath, opts, cb) {
|
|
1881
|
-
if (typeof opts === 'function') {
|
|
1882
|
-
cb = opts
|
|
1883
|
-
opts = {}
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1887
|
-
else if (!opts) opts = {}
|
|
1888
|
-
|
|
1889
|
-
const { withFileTypes = false, recursive = false } = opts
|
|
1890
|
-
|
|
1891
|
-
filepath = toNamespacedPath(filepath)
|
|
1892
|
-
|
|
1893
|
-
const queue = [filepath]
|
|
1894
|
-
let result = []
|
|
1895
|
-
let err = null
|
|
1896
|
-
try {
|
|
1897
|
-
while (queue.length !== 0) {
|
|
1898
|
-
const dir = await opendir(queue.pop())
|
|
1899
|
-
|
|
1900
|
-
for await (const entry of dir) {
|
|
1901
|
-
const entryPath = path.join(entry.parentPath, entry.name)
|
|
1902
|
-
|
|
1903
|
-
if (withFileTypes) {
|
|
1904
|
-
result.push(entry)
|
|
1905
|
-
} else {
|
|
1906
|
-
result.push(path.relative(filepath, entryPath))
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
if (recursive && entry.isDirectory()) queue.push(entryPath)
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
} catch (e) {
|
|
1913
|
-
result = []
|
|
1914
|
-
err = e
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
return done(err, result, cb)
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
function readdirSync(filepath, opts) {
|
|
1921
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1922
|
-
else if (!opts) opts = {}
|
|
1923
|
-
|
|
1924
|
-
const { withFileTypes = false, recursive = false } = opts
|
|
1925
|
-
|
|
1926
|
-
filepath = toNamespacedPath(filepath)
|
|
1927
|
-
|
|
1928
|
-
const queue = [filepath]
|
|
1929
|
-
const result = []
|
|
1930
|
-
|
|
1931
|
-
while (queue.length !== 0) {
|
|
1932
|
-
const dir = opendirSync(queue.pop(), opts)
|
|
1933
|
-
|
|
1934
|
-
for (const entry of dir) {
|
|
1935
|
-
const entryPath = path.join(entry.parentPath, entry.name)
|
|
1936
|
-
|
|
1937
|
-
if (withFileTypes) {
|
|
1938
|
-
result.push(entry)
|
|
1939
|
-
} else {
|
|
1940
|
-
result.push(path.relative(filepath, entryPath))
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
if (recursive && entry.isDirectory()) queue.push(entryPath)
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
return result
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
async function readFile(filepath, opts, cb) {
|
|
1951
|
-
if (typeof opts === 'function') {
|
|
1952
|
-
cb = opts
|
|
1953
|
-
opts = {}
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
1957
|
-
else if (!opts) opts = {}
|
|
1958
|
-
|
|
1959
|
-
const { encoding = 'buffer' } = opts
|
|
1960
|
-
|
|
1961
|
-
let fd = -1
|
|
1962
|
-
let buffer = null
|
|
1963
|
-
let err = null
|
|
1964
|
-
try {
|
|
1965
|
-
fd = await open(filepath, opts.flag || 'r')
|
|
1966
|
-
|
|
1967
|
-
const st = await fstat(fd)
|
|
1968
|
-
|
|
1969
|
-
let len = 0
|
|
1970
|
-
|
|
1971
|
-
if (st.size === 0) {
|
|
1972
|
-
const buffers = []
|
|
1973
|
-
|
|
1974
|
-
while (true) {
|
|
1975
|
-
buffer = Buffer.allocUnsafe(8192)
|
|
1976
|
-
const r = await read(fd, buffer)
|
|
1977
|
-
len += r
|
|
1978
|
-
if (r === 0) break
|
|
1979
|
-
buffers.push(buffer.subarray(0, r))
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
buffer = Buffer.concat(buffers)
|
|
1983
|
-
} else {
|
|
1984
|
-
buffer = Buffer.allocUnsafe(st.size)
|
|
1985
|
-
|
|
1986
|
-
while (true) {
|
|
1987
|
-
const r = await read(fd, len ? buffer.subarray(len) : buffer)
|
|
1988
|
-
len += r
|
|
1989
|
-
if (r === 0 || len === buffer.byteLength) break
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
if (len !== buffer.byteLength) buffer = buffer.subarray(0, len)
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
if (encoding !== 'buffer') buffer = buffer.toString(encoding)
|
|
1996
|
-
} catch (e) {
|
|
1997
|
-
err = e
|
|
1998
|
-
} finally {
|
|
1999
|
-
if (fd !== -1) await close(fd)
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
return done(err, buffer, cb)
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
function readFileSync(filepath, opts) {
|
|
2006
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
2007
|
-
else if (!opts) opts = {}
|
|
2008
|
-
|
|
2009
|
-
const { encoding = 'buffer' } = opts
|
|
2010
|
-
|
|
2011
|
-
let fd = -1
|
|
2012
|
-
try {
|
|
2013
|
-
fd = openSync(filepath, opts.flag || 'r')
|
|
2014
|
-
|
|
2015
|
-
const st = fstatSync(fd)
|
|
2016
|
-
|
|
2017
|
-
let buffer
|
|
2018
|
-
let len = 0
|
|
2019
|
-
|
|
2020
|
-
if (st.size === 0) {
|
|
2021
|
-
const buffers = []
|
|
2022
|
-
|
|
2023
|
-
while (true) {
|
|
2024
|
-
buffer = Buffer.allocUnsafe(8192)
|
|
2025
|
-
const r = readSync(fd, buffer)
|
|
2026
|
-
len += r
|
|
2027
|
-
if (r === 0) break
|
|
2028
|
-
buffers.push(buffer.subarray(0, r))
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
buffer = Buffer.concat(buffers)
|
|
2032
|
-
} else {
|
|
2033
|
-
buffer = Buffer.allocUnsafe(st.size)
|
|
2034
|
-
|
|
2035
|
-
while (true) {
|
|
2036
|
-
const r = readSync(fd, len ? buffer.subarray(len) : buffer)
|
|
2037
|
-
len += r
|
|
2038
|
-
if (r === 0 || len === buffer.byteLength) break
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
if (len !== buffer.byteLength) buffer = buffer.subarray(0, len)
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
if (encoding !== 'buffer') buffer = buffer.toString(encoding)
|
|
2045
|
-
|
|
2046
|
-
return buffer
|
|
2047
|
-
} finally {
|
|
2048
|
-
if (fd !== -1) closeSync(fd)
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
async function writeFile(filepath, data, opts, cb) {
|
|
2053
|
-
if (typeof opts === 'function') {
|
|
2054
|
-
cb = opts
|
|
2055
|
-
opts = {}
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
2059
|
-
else if (!opts) opts = {}
|
|
2060
|
-
|
|
2061
|
-
if (typeof data === 'string') data = Buffer.from(data, opts.encoding)
|
|
2062
|
-
|
|
2063
|
-
let fd = -1
|
|
2064
|
-
let len = 0
|
|
2065
|
-
let err = null
|
|
2066
|
-
try {
|
|
2067
|
-
fd = await open(filepath, opts.flag || 'w', opts.mode || 0o666)
|
|
2068
|
-
|
|
2069
|
-
while (true) {
|
|
2070
|
-
len += await write(fd, len ? data.subarray(len) : data)
|
|
2071
|
-
if (len === data.byteLength) break
|
|
2072
|
-
}
|
|
2073
|
-
} catch (e) {
|
|
2074
|
-
err = e
|
|
2075
|
-
} finally {
|
|
2076
|
-
if (fd !== -1) await close(fd)
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
return done(err, len, cb)
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
function writeFileSync(filepath, data, opts) {
|
|
2083
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
2084
|
-
else if (!opts) opts = {}
|
|
2085
|
-
|
|
2086
|
-
if (typeof data === 'string') data = Buffer.from(data, opts.encoding)
|
|
2087
|
-
|
|
2088
|
-
let fd = -1
|
|
2089
|
-
try {
|
|
2090
|
-
fd = openSync(filepath, opts.flag || 'w', opts.mode || 0o666)
|
|
2091
|
-
|
|
2092
|
-
let len = 0
|
|
2093
|
-
|
|
2094
|
-
while (true) {
|
|
2095
|
-
len += writeSync(fd, len ? data.subarray(len) : data)
|
|
2096
|
-
if (len === data.byteLength) break
|
|
2097
|
-
}
|
|
2098
|
-
} finally {
|
|
2099
|
-
if (fd !== -1) closeSync(fd)
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
function appendFile(filepath, data, opts, cb) {
|
|
2104
|
-
if (typeof opts === 'function') {
|
|
2105
|
-
cb = opts
|
|
2106
|
-
opts = {}
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
2110
|
-
else if (!opts) opts = {}
|
|
2111
|
-
|
|
2112
|
-
if (!opts.flag) opts = { ...opts, flag: 'a' }
|
|
2113
|
-
|
|
2114
|
-
return writeFile(filepath, data, opts, cb)
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
function appendFileSync(filepath, data, opts) {
|
|
2118
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
2119
|
-
else if (!opts) opts = {}
|
|
2120
|
-
|
|
2121
|
-
if (!opts.flag) opts = { ...opts, flag: 'a' }
|
|
2122
|
-
|
|
2123
|
-
return writeFileSync(filepath, data, opts)
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
function watch(filepath, opts, cb) {
|
|
2127
|
-
if (typeof opts === 'function') {
|
|
2128
|
-
cb = opts
|
|
2129
|
-
opts = {}
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
if (typeof opts === 'string') opts = { encoding: opts }
|
|
2133
|
-
else if (!opts) opts = {}
|
|
2134
|
-
|
|
2135
|
-
filepath = toNamespacedPath(filepath)
|
|
2136
|
-
|
|
2137
|
-
return new Watcher(filepath, opts, cb)
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
class Stats {
|
|
2141
|
-
constructor(
|
|
2142
|
-
dev,
|
|
2143
|
-
mode,
|
|
2144
|
-
nlink,
|
|
2145
|
-
uid,
|
|
2146
|
-
gid,
|
|
2147
|
-
rdev,
|
|
2148
|
-
blksize,
|
|
2149
|
-
ino,
|
|
2150
|
-
size,
|
|
2151
|
-
blocks,
|
|
2152
|
-
atimeMs,
|
|
2153
|
-
mtimeMs,
|
|
2154
|
-
ctimeMs,
|
|
2155
|
-
birthtimeMs
|
|
2156
|
-
) {
|
|
2157
|
-
this.dev = dev
|
|
2158
|
-
this.mode = mode
|
|
2159
|
-
this.nlink = nlink
|
|
2160
|
-
this.uid = uid
|
|
2161
|
-
this.gid = gid
|
|
2162
|
-
this.rdev = rdev
|
|
2163
|
-
this.blksize = blksize
|
|
2164
|
-
this.ino = ino
|
|
2165
|
-
this.size = size
|
|
2166
|
-
this.blocks = blocks
|
|
2167
|
-
this.atimeMs = atimeMs
|
|
2168
|
-
this.mtimeMs = mtimeMs
|
|
2169
|
-
this.ctimeMs = ctimeMs
|
|
2170
|
-
this.birthtimeMs = birthtimeMs
|
|
2171
|
-
this.atime = new Date(atimeMs)
|
|
2172
|
-
this.mtime = new Date(mtimeMs)
|
|
2173
|
-
this.ctime = new Date(ctimeMs)
|
|
2174
|
-
this.birthtime = new Date(birthtimeMs)
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
isDirectory() {
|
|
2178
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFDIR
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
isFile() {
|
|
2182
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFREG
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
isBlockDevice() {
|
|
2186
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFBLK
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
isCharacterDevice() {
|
|
2190
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFCHR
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
isFIFO() {
|
|
2194
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFIFO
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
isSymbolicLink() {
|
|
2198
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFLNK
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
isSocket() {
|
|
2202
|
-
return (this.mode & constants.S_IFMT) === constants.S_IFSOCK
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
class StatFs {
|
|
2207
|
-
constructor(type, bsize, blocks, bfree, bavail, files, ffree) {
|
|
2208
|
-
this.type = type
|
|
2209
|
-
this.bsize = bsize
|
|
2210
|
-
this.blocks = blocks
|
|
2211
|
-
this.bfree = bfree
|
|
2212
|
-
this.bavail = bavail
|
|
2213
|
-
this.files = files
|
|
2214
|
-
this.ffree = ffree
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
class Dir {
|
|
2219
|
-
constructor(path, handle, opts = {}) {
|
|
2220
|
-
const { encoding = 'utf8', bufferSize = 32 } = opts
|
|
2221
|
-
|
|
2222
|
-
this.path = path
|
|
2223
|
-
|
|
2224
|
-
this._encoding = encoding
|
|
2225
|
-
this._capacity = bufferSize
|
|
2226
|
-
this._buffer = new FIFO()
|
|
2227
|
-
this._ended = false
|
|
2228
|
-
this._handle = handle
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
async read(cb) {
|
|
2232
|
-
if (this._buffer.length) return ok(this._buffer.shift(), cb)
|
|
2233
|
-
if (this._ended) return ok(null, cb)
|
|
2234
|
-
|
|
2235
|
-
const req = FileRequest.borrow()
|
|
2236
|
-
|
|
2237
|
-
let entries
|
|
2238
|
-
let err = null
|
|
2239
|
-
try {
|
|
2240
|
-
req.retain(binding.readdir(req.handle, this._handle, this._capacity))
|
|
2241
|
-
|
|
2242
|
-
await req
|
|
2243
|
-
|
|
2244
|
-
entries = binding.requestResultDirents(req.handle)
|
|
2245
|
-
} catch (e) {
|
|
2246
|
-
err = new FileError(e.message, {
|
|
2247
|
-
operation: 'readdir',
|
|
2248
|
-
code: e.code,
|
|
2249
|
-
path: this.path
|
|
2250
|
-
})
|
|
2251
|
-
} finally {
|
|
2252
|
-
req.return()
|
|
2253
|
-
}
|
|
2254
|
-
|
|
2255
|
-
if (err) return fail(err, cb)
|
|
2256
|
-
|
|
2257
|
-
if (entries.length === 0) {
|
|
2258
|
-
this._ended = true
|
|
2259
|
-
|
|
2260
|
-
return ok(null, cb)
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
for (const entry of entries) {
|
|
2264
|
-
let name = Buffer.from(entry.name)
|
|
2265
|
-
|
|
2266
|
-
if (this._encoding !== 'buffer') name = name.toString(this._encoding)
|
|
2267
|
-
|
|
2268
|
-
this._buffer.push(new Dirent(this.path, name, entry.type))
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
return ok(this._buffer.shift(), cb)
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
readSync() {
|
|
2275
|
-
if (this._buffer.length) return this._buffer.shift()
|
|
2276
|
-
if (this._ended) return null
|
|
2277
|
-
|
|
2278
|
-
const req = FileRequest.borrow()
|
|
2279
|
-
|
|
2280
|
-
let entries
|
|
2281
|
-
try {
|
|
2282
|
-
req.retain(binding.readdirSync(req.handle, this._handle, this._capacity))
|
|
2283
|
-
|
|
2284
|
-
entries = binding.requestResultDirents(req.handle)
|
|
2285
|
-
} catch (e) {
|
|
2286
|
-
throw new FileError(e.message, {
|
|
2287
|
-
operation: 'readdir',
|
|
2288
|
-
code: e.code,
|
|
2289
|
-
path: this.path
|
|
2290
|
-
})
|
|
2291
|
-
} finally {
|
|
2292
|
-
req.return()
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
if (entries.length === 0) {
|
|
2296
|
-
this._ended = true
|
|
2297
|
-
|
|
2298
|
-
return null
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
for (const entry of entries) {
|
|
2302
|
-
let name = Buffer.from(entry.name)
|
|
2303
|
-
|
|
2304
|
-
if (this._encoding !== 'buffer') name = name.toString(this._encoding)
|
|
2305
|
-
|
|
2306
|
-
this._buffer.push(new Dirent(this.path, name, entry.type))
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
return this._buffer.shift()
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2312
|
-
async close(cb) {
|
|
2313
|
-
const req = FileRequest.borrow()
|
|
2314
|
-
|
|
2315
|
-
let err = null
|
|
2316
|
-
try {
|
|
2317
|
-
binding.closedir(req.handle, this._handle)
|
|
2318
|
-
|
|
2319
|
-
await req
|
|
2320
|
-
} catch (e) {
|
|
2321
|
-
err = new FileError(e.message, {
|
|
2322
|
-
operation: 'closedir',
|
|
2323
|
-
code: e.code,
|
|
2324
|
-
path: this.path
|
|
2325
|
-
})
|
|
2326
|
-
} finally {
|
|
2327
|
-
req.return()
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
this._handle = null
|
|
2331
|
-
|
|
2332
|
-
return done(err, cb)
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
closeSync() {
|
|
2336
|
-
const req = FileRequest.borrow()
|
|
2337
|
-
|
|
2338
|
-
try {
|
|
2339
|
-
binding.closedirSync(req.handle, this._handle)
|
|
2340
|
-
} catch (e) {
|
|
2341
|
-
throw new FileError(e.message, {
|
|
2342
|
-
operation: 'closedir',
|
|
2343
|
-
code: e.code,
|
|
2344
|
-
path: this.path
|
|
2345
|
-
})
|
|
2346
|
-
} finally {
|
|
2347
|
-
req.return()
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
this._handle = null
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
[Symbol.dispose]() {
|
|
2354
|
-
this.closeSync()
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
async [Symbol.asyncDispose]() {
|
|
2358
|
-
await this.close()
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
*[Symbol.iterator]() {
|
|
2362
|
-
while (true) {
|
|
2363
|
-
const entry = this.readSync()
|
|
2364
|
-
if (entry === null) break
|
|
2365
|
-
yield entry
|
|
2366
|
-
}
|
|
2367
|
-
|
|
2368
|
-
this.closeSync()
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
async *[Symbol.asyncIterator]() {
|
|
2372
|
-
while (true) {
|
|
2373
|
-
const entry = await this.read()
|
|
2374
|
-
if (entry === null) break
|
|
2375
|
-
yield entry
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
await this.close()
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
class Dirent {
|
|
2383
|
-
constructor(parentPath, name, type) {
|
|
2384
|
-
this.parentPath = parentPath
|
|
2385
|
-
this.name = name
|
|
2386
|
-
this.type = type
|
|
2387
|
-
}
|
|
2388
|
-
|
|
2389
|
-
isFile() {
|
|
2390
|
-
return this.type === constants.UV_DIRENT_FILE
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
isDirectory() {
|
|
2394
|
-
return this.type === constants.UV_DIRENT_DIR
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
isSymbolicLink() {
|
|
2398
|
-
return this.type === constants.UV_DIRENT_LINK
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
isFIFO() {
|
|
2402
|
-
return this.type === constants.UV_DIRENT_FIFO
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
isSocket() {
|
|
2406
|
-
return this.type === constants.UV_DIRENT_SOCKET
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
isCharacterDevice() {
|
|
2410
|
-
return this.type === constants.UV_DIRENT_CHAR
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
isBlockDevice() {
|
|
2414
|
-
return this.type === constants.UV_DIRENT_BLOCK
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
class FileReadStream extends Readable {
|
|
2419
|
-
constructor(path, opts = {}) {
|
|
2420
|
-
const { eagerOpen = true } = opts
|
|
2421
|
-
|
|
2422
|
-
super({ eagerOpen, ...opts })
|
|
2423
|
-
|
|
2424
|
-
this.path = path
|
|
2425
|
-
this.fd = typeof opts.fd === 'number' ? opts.fd : -1
|
|
2426
|
-
this.flags = opts.flags || 'r'
|
|
2427
|
-
this.mode = opts.mode || 0o666
|
|
2428
|
-
|
|
2429
|
-
this._offset = opts.start || 0
|
|
2430
|
-
this._missing = 0
|
|
2431
|
-
|
|
2432
|
-
if (opts.length) {
|
|
2433
|
-
this._missing = opts.length
|
|
2434
|
-
} else if (typeof opts.end === 'number') {
|
|
2435
|
-
this._missing = opts.end - this._offset + 1
|
|
2436
|
-
} else {
|
|
2437
|
-
this._missing = -1
|
|
2438
|
-
}
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
async _open(cb) {
|
|
2442
|
-
let err
|
|
2443
|
-
|
|
2444
|
-
if (this.fd === -1) {
|
|
2445
|
-
err = null
|
|
2446
|
-
try {
|
|
2447
|
-
this.fd = await open(this.path, this.flags, this.mode)
|
|
2448
|
-
} catch (e) {
|
|
2449
|
-
err = e
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
|
-
if (err) return cb(err)
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
let st
|
|
2456
|
-
err = null
|
|
2457
|
-
try {
|
|
2458
|
-
st = await fstat(this.fd)
|
|
2459
|
-
} catch (e) {
|
|
2460
|
-
err = e
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2463
|
-
if (err) return cb(err)
|
|
2464
|
-
|
|
2465
|
-
if (this._missing === -1) this._missing = st.size
|
|
2466
|
-
|
|
2467
|
-
if (st.size < this._offset) {
|
|
2468
|
-
this._offset = st.size
|
|
2469
|
-
this._missing = 0
|
|
2470
|
-
} else if (st.size < this._offset + this._missing) {
|
|
2471
|
-
this._missing = st.size - this._offset
|
|
2472
|
-
}
|
|
2473
|
-
|
|
2474
|
-
cb(null)
|
|
2475
|
-
}
|
|
2476
|
-
|
|
2477
|
-
async _read(size) {
|
|
2478
|
-
if (this._missing <= 0) return this.push(null)
|
|
2479
|
-
|
|
2480
|
-
const data = Buffer.allocUnsafe(Math.min(this._missing, size))
|
|
2481
|
-
|
|
2482
|
-
let len
|
|
2483
|
-
let err = null
|
|
2484
|
-
try {
|
|
2485
|
-
len = await read(this.fd, data, 0, data.byteLength, this._offset)
|
|
2486
|
-
} catch (e) {
|
|
2487
|
-
err = e
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
if (err) return this.destroy(err)
|
|
2491
|
-
|
|
2492
|
-
if (len === 0) return this.push(null)
|
|
2493
|
-
|
|
2494
|
-
if (this._missing < len) len = this._missing
|
|
2495
|
-
|
|
2496
|
-
this._missing -= len
|
|
2497
|
-
this._offset += len
|
|
2498
|
-
|
|
2499
|
-
this.push(data.subarray(0, len))
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
async _destroy(err, cb) {
|
|
2503
|
-
if (this.fd === -1) return cb(err)
|
|
2504
|
-
|
|
2505
|
-
try {
|
|
2506
|
-
await close(this.fd)
|
|
2507
|
-
} catch (e) {
|
|
2508
|
-
err = err || e
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
cb(err)
|
|
2512
|
-
}
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2515
|
-
class FileWriteStream extends Writable {
|
|
2516
|
-
constructor(path, opts = {}) {
|
|
2517
|
-
const { eagerOpen = true } = opts
|
|
2518
|
-
|
|
2519
|
-
super({ eagerOpen, ...opts })
|
|
2520
|
-
|
|
2521
|
-
this.path = path
|
|
2522
|
-
this.fd = typeof opts.fd === 'number' ? opts.fd : -1
|
|
2523
|
-
this.flags = opts.flags || 'w'
|
|
2524
|
-
this.mode = opts.mode || 0o666
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
async _open(cb) {
|
|
2528
|
-
if (this.fd !== -1) return cb(null)
|
|
2529
|
-
|
|
2530
|
-
let err = null
|
|
2531
|
-
try {
|
|
2532
|
-
this.fd = await open(this.path, this.flags, this.mode)
|
|
2533
|
-
} catch (e) {
|
|
2534
|
-
err = e
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
cb(err)
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
async _writev(batch, cb) {
|
|
2541
|
-
let err = null
|
|
2542
|
-
try {
|
|
2543
|
-
await writev(
|
|
2544
|
-
this.fd,
|
|
2545
|
-
batch.map(({ chunk }) => chunk)
|
|
2546
|
-
)
|
|
2547
|
-
} catch (e) {
|
|
2548
|
-
err = e
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
cb(err)
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
async _destroy(err, cb) {
|
|
2555
|
-
if (this.fd === -1) return cb(err)
|
|
2556
|
-
|
|
2557
|
-
try {
|
|
2558
|
-
await close(this.fd)
|
|
2559
|
-
} catch (e) {
|
|
2560
|
-
err = err || e
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
cb(err)
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
class Watcher extends EventEmitter {
|
|
2568
|
-
constructor(path, opts, onchange) {
|
|
2569
|
-
if (typeof opts === 'function') {
|
|
2570
|
-
onchange = opts
|
|
2571
|
-
opts = {}
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
if (!opts) opts = {}
|
|
2575
|
-
|
|
2576
|
-
const { persistent = true, recursive = false, encoding = 'utf8' } = opts
|
|
2577
|
-
|
|
2578
|
-
super()
|
|
2579
|
-
|
|
2580
|
-
this._closed = false
|
|
2581
|
-
this._encoding = encoding
|
|
2582
|
-
this._handle = binding.watcherInit(path, recursive, this, this._onevent, this._onclose)
|
|
2583
|
-
|
|
2584
|
-
if (!persistent) this.unref()
|
|
2585
|
-
|
|
2586
|
-
if (onchange) this.on('change', onchange)
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
close() {
|
|
2590
|
-
if (this._closed) return
|
|
2591
|
-
this._closed = true
|
|
2592
|
-
|
|
2593
|
-
binding.watcherClose(this._handle)
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
ref() {
|
|
2597
|
-
if (this._handle) binding.watcherRef(this._handle)
|
|
2598
|
-
return this
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
unref() {
|
|
2602
|
-
if (this._handle) binding.watcherUnref(this._handle)
|
|
2603
|
-
return this
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
|
-
[Symbol.asyncIterator]() {
|
|
2607
|
-
const buffer = []
|
|
2608
|
-
let done = false
|
|
2609
|
-
let error = null
|
|
2610
|
-
let next = null
|
|
2611
|
-
|
|
2612
|
-
this.on('change', (eventType, filename) => {
|
|
2613
|
-
if (next) {
|
|
2614
|
-
next.resolve({ done: false, value: { eventType, filename } })
|
|
2615
|
-
next = null
|
|
2616
|
-
} else {
|
|
2617
|
-
buffer.push({ eventType, filename })
|
|
2618
|
-
}
|
|
2619
|
-
})
|
|
2620
|
-
.on('error', (err) => {
|
|
2621
|
-
done = true
|
|
2622
|
-
error = err
|
|
2623
|
-
|
|
2624
|
-
if (next) {
|
|
2625
|
-
next.reject(error)
|
|
2626
|
-
next = null
|
|
2627
|
-
}
|
|
2628
|
-
})
|
|
2629
|
-
.on('close', () => {
|
|
2630
|
-
done = true
|
|
2631
|
-
|
|
2632
|
-
if (next) {
|
|
2633
|
-
next.resolve({ done })
|
|
2634
|
-
next = null
|
|
2635
|
-
}
|
|
2636
|
-
})
|
|
2637
|
-
|
|
2638
|
-
return {
|
|
2639
|
-
next: () =>
|
|
2640
|
-
new Promise((resolve, reject) => {
|
|
2641
|
-
if (error) return reject(error)
|
|
2642
|
-
|
|
2643
|
-
if (buffer.length) return resolve({ done: false, value: buffer.shift() })
|
|
2644
|
-
|
|
2645
|
-
if (done) return resolve({ done })
|
|
2646
|
-
|
|
2647
|
-
next = { resolve, reject }
|
|
2648
|
-
})
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
_onevent(err, events, filename) {
|
|
2653
|
-
if (err) {
|
|
2654
|
-
this.close()
|
|
2655
|
-
this.emit('error', err)
|
|
2656
|
-
} else {
|
|
2657
|
-
const path =
|
|
2658
|
-
this._encoding === 'buffer'
|
|
2659
|
-
? Buffer.from(filename)
|
|
2660
|
-
: Buffer.from(filename).toString(this._encoding)
|
|
2661
|
-
|
|
2662
|
-
if (events & binding.UV_RENAME) {
|
|
2663
|
-
this.emit('change', 'rename', path)
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
if (events & binding.UV_CHANGE) {
|
|
2667
|
-
this.emit('change', 'change', path)
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
_onclose() {
|
|
2673
|
-
this._handle = null
|
|
2674
|
-
|
|
2675
|
-
this.emit('close')
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
|
-
exports.access = access
|
|
2680
|
-
exports.appendFile = appendFile
|
|
2681
|
-
exports.chmod = chmod
|
|
2682
|
-
exports.chown = chown
|
|
2683
|
-
exports.close = close
|
|
2684
|
-
exports.copyFile = copyFile
|
|
2685
|
-
exports.cp = cp
|
|
2686
|
-
exports.exists = exists
|
|
2687
|
-
exports.fchmod = fchmod
|
|
2688
|
-
exports.fchown = fchown
|
|
2689
|
-
exports.fdatasync = fdatasync
|
|
2690
|
-
exports.fstat = fstat
|
|
2691
|
-
exports.fsync = fsync
|
|
2692
|
-
exports.ftruncate = ftruncate
|
|
2693
|
-
exports.futimes = futimes
|
|
2694
|
-
exports.lchown = lchown
|
|
2695
|
-
exports.lutimes = lutimes
|
|
2696
|
-
exports.link = link
|
|
2697
|
-
exports.lstat = lstat
|
|
2698
|
-
exports.mkdir = mkdir
|
|
2699
|
-
exports.mkdtemp = mkdtemp
|
|
2700
|
-
exports.open = open
|
|
2701
|
-
exports.opendir = opendir
|
|
2702
|
-
exports.read = read
|
|
2703
|
-
exports.readFile = readFile
|
|
2704
|
-
exports.readdir = readdir
|
|
2705
|
-
exports.readlink = readlink
|
|
2706
|
-
exports.readv = readv
|
|
2707
|
-
exports.realpath = realpath
|
|
2708
|
-
exports.rename = rename
|
|
2709
|
-
exports.rm = rm
|
|
2710
|
-
exports.rmdir = rmdir
|
|
2711
|
-
exports.stat = stat
|
|
2712
|
-
exports.statfs = statfs
|
|
2713
|
-
exports.symlink = symlink
|
|
2714
|
-
exports.truncate = truncate
|
|
2715
|
-
exports.unlink = unlink
|
|
2716
|
-
exports.utimes = utimes
|
|
2717
|
-
exports.watch = watch
|
|
2718
|
-
exports.write = write
|
|
2719
|
-
exports.writeFile = writeFile
|
|
2720
|
-
exports.writev = writev
|
|
2721
|
-
|
|
2722
|
-
exports.accessSync = accessSync
|
|
2723
|
-
exports.appendFileSync = appendFileSync
|
|
2724
|
-
exports.chmodSync = chmodSync
|
|
2725
|
-
exports.chownSync = chownSync
|
|
2726
|
-
exports.closeSync = closeSync
|
|
2727
|
-
exports.copyFileSync = copyFileSync
|
|
2728
|
-
exports.cpSync = cpSync
|
|
2729
|
-
exports.existsSync = existsSync
|
|
2730
|
-
exports.fchmodSync = fchmodSync
|
|
2731
|
-
exports.fchownSync = fchownSync
|
|
2732
|
-
exports.fdatasyncSync = fdatasyncSync
|
|
2733
|
-
exports.fstatSync = fstatSync
|
|
2734
|
-
exports.fsyncSync = fsyncSync
|
|
2735
|
-
exports.ftruncateSync = ftruncateSync
|
|
2736
|
-
exports.futimesSync = futimesSync
|
|
2737
|
-
exports.lchownSync = lchownSync
|
|
2738
|
-
exports.lutimesSync = lutimesSync
|
|
2739
|
-
exports.linkSync = linkSync
|
|
2740
|
-
exports.lstatSync = lstatSync
|
|
2741
|
-
exports.mkdirSync = mkdirSync
|
|
2742
|
-
exports.mkdtempSync = mkdtempSync
|
|
2743
|
-
exports.openSync = openSync
|
|
2744
|
-
exports.opendirSync = opendirSync
|
|
2745
|
-
exports.readFileSync = readFileSync
|
|
2746
|
-
exports.readSync = readSync
|
|
2747
|
-
exports.readdirSync = readdirSync
|
|
2748
|
-
exports.readlinkSync = readlinkSync
|
|
2749
|
-
exports.readvSync = readvSync
|
|
2750
|
-
exports.realpathSync = realpathSync
|
|
2751
|
-
exports.renameSync = renameSync
|
|
2752
|
-
exports.rmSync = rmSync
|
|
2753
|
-
exports.rmdirSync = rmdirSync
|
|
2754
|
-
exports.statSync = statSync
|
|
2755
|
-
exports.statfsSync = statfsSync
|
|
2756
|
-
exports.symlinkSync = symlinkSync
|
|
2757
|
-
exports.truncateSync = truncateSync
|
|
2758
|
-
exports.unlinkSync = unlinkSync
|
|
2759
|
-
exports.utimesSync = utimesSync
|
|
2760
|
-
exports.writeFileSync = writeFileSync
|
|
2761
|
-
exports.writeSync = writeSync
|
|
2762
|
-
exports.writevSync = writevSync
|
|
2763
|
-
|
|
2764
|
-
exports.promises = require('./promises')
|
|
2765
|
-
|
|
2766
|
-
exports.Stats = Stats
|
|
2767
|
-
exports.StatFs = StatFs
|
|
2768
|
-
exports.Dir = Dir
|
|
2769
|
-
exports.Dirent = Dirent
|
|
2770
|
-
exports.Watcher = Watcher
|
|
2771
|
-
|
|
2772
|
-
exports.ReadStream = FileReadStream
|
|
2773
|
-
|
|
2774
|
-
exports.createReadStream = function createReadStream(path, opts) {
|
|
2775
|
-
return new FileReadStream(path, opts)
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
exports.WriteStream = FileWriteStream
|
|
2779
|
-
|
|
2780
|
-
exports.createWriteStream = function createWriteStream(path, opts) {
|
|
2781
|
-
return new FileWriteStream(path, opts)
|
|
2782
|
-
}
|
|
2783
|
-
|
|
2784
|
-
function toNamespacedPath(filepath) {
|
|
2785
|
-
if (typeof filepath !== 'string') {
|
|
2786
|
-
if (isURL(filepath)) filepath = fileURLToPath(filepath)
|
|
2787
|
-
else filepath = filepath.toString()
|
|
2788
|
-
}
|
|
2789
|
-
|
|
2790
|
-
return path.toNamespacedPath(filepath)
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
function toFlags(flags) {
|
|
2794
|
-
switch (flags) {
|
|
2795
|
-
case 'r':
|
|
2796
|
-
return constants.O_RDONLY
|
|
2797
|
-
case 'rs': // Fall through.
|
|
2798
|
-
case 'sr':
|
|
2799
|
-
return constants.O_RDONLY | constants.O_SYNC
|
|
2800
|
-
case 'r+':
|
|
2801
|
-
return constants.O_RDWR
|
|
2802
|
-
case 'rs+': // Fall through.
|
|
2803
|
-
case 'sr+':
|
|
2804
|
-
return constants.O_RDWR | constants.O_SYNC
|
|
2805
|
-
|
|
2806
|
-
case 'w':
|
|
2807
|
-
return constants.O_TRUNC | constants.O_CREAT | constants.O_WRONLY
|
|
2808
|
-
case 'wx': // Fall through.
|
|
2809
|
-
case 'xw':
|
|
2810
|
-
return constants.O_TRUNC | constants.O_CREAT | constants.O_WRONLY | constants.O_EXCL
|
|
2811
|
-
|
|
2812
|
-
case 'w+':
|
|
2813
|
-
return constants.O_TRUNC | constants.O_CREAT | constants.O_RDWR
|
|
2814
|
-
case 'wx+': // Fall through.
|
|
2815
|
-
case 'xw+':
|
|
2816
|
-
return constants.O_TRUNC | constants.O_CREAT | constants.O_RDWR | constants.O_EXCL
|
|
2817
|
-
|
|
2818
|
-
case 'a':
|
|
2819
|
-
return constants.O_APPEND | constants.O_CREAT | constants.O_WRONLY
|
|
2820
|
-
case 'ax': // Fall through.
|
|
2821
|
-
case 'xa':
|
|
2822
|
-
return constants.O_APPEND | constants.O_CREAT | constants.O_WRONLY | constants.O_EXCL
|
|
2823
|
-
case 'as': // Fall through.
|
|
2824
|
-
case 'sa':
|
|
2825
|
-
return constants.O_APPEND | constants.O_CREAT | constants.O_WRONLY | constants.O_SYNC
|
|
2826
|
-
|
|
2827
|
-
case 'a+':
|
|
2828
|
-
return constants.O_APPEND | constants.O_CREAT | constants.O_RDWR
|
|
2829
|
-
case 'ax+': // Fall through.
|
|
2830
|
-
case 'xa+':
|
|
2831
|
-
return constants.O_APPEND | constants.O_CREAT | constants.O_RDWR | constants.O_EXCL
|
|
2832
|
-
case 'as+': // Fall through.
|
|
2833
|
-
case 'sa+':
|
|
2834
|
-
return constants.O_APPEND | constants.O_CREAT | constants.O_RDWR | constants.O_SYNC
|
|
2835
|
-
default:
|
|
2836
|
-
return 0
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
|
|
2840
|
-
function toMode(mode) {
|
|
2841
|
-
return parseInt(mode, 8)
|
|
2842
|
-
}
|