@microsoft/terraform-cdk-constructs 0.0.3-pre.6
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/.devcontainer/devcontainer.json +62 -0
- package/.jsii +17693 -0
- package/API.md +17465 -0
- package/CODE_OF_CONDUCT.md +9 -0
- package/CONTRIBUTING.md +85 -0
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/SECURITY.md +41 -0
- package/SUPPORT.md +25 -0
- package/cdktf.json +11 -0
- package/cdktf.out/manifest.json +13 -0
- package/cdktf.out/stacks/testAzureActionGroup/cdk.tf.json +111 -0
- package/cdktf.out/stacks/testAzureApplicationGateway/cdk.tf.json +588 -0
- package/cdktf.out/stacks/testAzureApplicationInsights/cdk.tf.json +245 -0
- package/cdktf.out/stacks/testAzureContainerRegistry/cdk.tf.json +179 -0
- package/cdktf.out/stacks/testAzureEventhub/cdk.tf.json +236 -0
- package/cdktf.out/stacks/testAzureKeyVault/cdk.tf.json +436 -0
- package/cdktf.out/stacks/testAzureKubernetesCluster/cdk.tf.json +152 -0
- package/cdktf.out/stacks/testAzureKusto/cdk.tf.json +209 -0
- package/cdktf.out/stacks/testAzureLinuxFunctionApp/cdk.tf.json +439 -0
- package/cdktf.out/stacks/testAzureLinuxVirtualMachineExample/cdk.tf.json +283 -0
- package/cdktf.out/stacks/testAzureLinuxVirtualMachineScaleSetExample/cdk.tf.json +261 -0
- package/cdktf.out/stacks/testAzureLogAnalytics/cdk.tf.json +309 -0
- package/cdktf.out/stacks/testAzureMetricAlert/cdk.tf.json +161 -0
- package/cdktf.out/stacks/testAzureNetworkSecurityGroup/cdk.tf.json +271 -0
- package/cdktf.out/stacks/testAzureQueryRuleAlert/cdk.tf.json +122 -0
- package/cdktf.out/stacks/testAzureResourceGroup/cdk.tf.json +88 -0
- package/cdktf.out/stacks/testAzureStorageAccount/cdk.tf.json +339 -0
- package/cdktf.out/stacks/testAzureVirtualNetwork/cdk.tf.json +264 -0
- package/cdktf.out/stacks/testAzureWindowVirtualMachineScaleSetExample/cdk.tf.json +261 -0
- package/cdktf.out/stacks/testAzureWindowsVirtualMachineExample/cdk.tf.json +280 -0
- package/cdktf.out/stacks/testExampleAzureResource/cdk.tf.json +167 -0
- package/docs/design_guide.md +309 -0
- package/docs/testing.md +347 -0
- package/go.mod +73 -0
- package/go.sum +1006 -0
- package/help +51 -0
- package/jest.config.js.old +187 -0
- package/lib/azure-actiongroup/index.d.ts +1 -0
- package/lib/azure-actiongroup/index.js +18 -0
- package/lib/azure-actiongroup/lib/actiongroup.d.ts +10 -0
- package/lib/azure-actiongroup/lib/actiongroup.js +46 -0
- package/lib/azure-actiongroup/lib/index.d.ts +1 -0
- package/lib/azure-actiongroup/lib/index.js +18 -0
- package/lib/azure-actiongroup/model/action-group-props.d.ts +47 -0
- package/lib/azure-actiongroup/model/action-group-props.js +3 -0
- package/lib/azure-actiongroup/model/arm-role-receiver-props.d.ts +20 -0
- package/lib/azure-actiongroup/model/arm-role-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/azure-app-push-receiver-props.d.ts +14 -0
- package/lib/azure-actiongroup/model/azure-app-push-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/email-receiver-props.d.ts +19 -0
- package/lib/azure-actiongroup/model/email-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/eventhub-receiver-props.d.ts +23 -0
- package/lib/azure-actiongroup/model/eventhub-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/function.d.ts +40 -0
- package/lib/azure-actiongroup/model/function.js +118 -0
- package/lib/azure-actiongroup/model/index.d.ts +10 -0
- package/lib/azure-actiongroup/model/index.js +27 -0
- package/lib/azure-actiongroup/model/logic-app-receiver-props.d.ts +23 -0
- package/lib/azure-actiongroup/model/logic-app-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/sms-receiver-props.d.ts +18 -0
- package/lib/azure-actiongroup/model/sms-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/voice-receiver-props.d.ts +18 -0
- package/lib/azure-actiongroup/model/voice-receiver-props.js +3 -0
- package/lib/azure-actiongroup/model/webhook-receiver-props.d.ts +18 -0
- package/lib/azure-actiongroup/model/webhook-receiver-props.js +3 -0
- package/lib/azure-actiongroup/test/AzureActionGroup.spec.d.ts +1 -0
- package/lib/azure-actiongroup/test/AzureActionGroup.spec.js +294 -0
- package/lib/azure-actiongroup/test/ExampleAzureActionGroup.d.ts +5 -0
- package/lib/azure-actiongroup/test/ExampleAzureActionGroup.js +66 -0
- package/lib/azure-applicationgateway/index.d.ts +1 -0
- package/lib/azure-applicationgateway/index.js +18 -0
- package/lib/azure-applicationgateway/lib/gateway.d.ts +172 -0
- package/lib/azure-applicationgateway/lib/gateway.js +123 -0
- package/lib/azure-applicationgateway/lib/index.d.ts +1 -0
- package/lib/azure-applicationgateway/lib/index.js +18 -0
- package/lib/azure-applicationgateway/test/AzureApplicationGateway.spec.d.ts +1 -0
- package/lib/azure-applicationgateway/test/AzureApplicationGateway.spec.js +106 -0
- package/lib/azure-applicationgateway/test/ExampleAzureApplicationGateway.d.ts +5 -0
- package/lib/azure-applicationgateway/test/ExampleAzureApplicationGateway.js +267 -0
- package/lib/azure-applicationinsights/index.d.ts +1 -0
- package/lib/azure-applicationinsights/index.js +18 -0
- package/lib/azure-applicationinsights/lib/appinsights.d.ts +60 -0
- package/lib/azure-applicationinsights/lib/appinsights.js +85 -0
- package/lib/azure-applicationinsights/lib/index.d.ts +1 -0
- package/lib/azure-applicationinsights/lib/index.js +18 -0
- package/lib/azure-applicationinsights/test/AzureAppInsights.spec.d.ts +1 -0
- package/lib/azure-applicationinsights/test/AzureAppInsights.spec.js +55 -0
- package/lib/azure-applicationinsights/test/ExampleAzureApplicationInsights.d.ts +5 -0
- package/lib/azure-applicationinsights/test/ExampleAzureApplicationInsights.js +87 -0
- package/lib/azure-containerregistry/index.d.ts +1 -0
- package/lib/azure-containerregistry/index.js +18 -0
- package/lib/azure-containerregistry/lib/index.d.ts +1 -0
- package/lib/azure-containerregistry/lib/index.js +18 -0
- package/lib/azure-containerregistry/lib/registry.d.ts +41 -0
- package/lib/azure-containerregistry/lib/registry.js +47 -0
- package/lib/azure-containerregistry/test/AzureContainerRegistry.spec.d.ts +1 -0
- package/lib/azure-containerregistry/test/AzureContainerRegistry.spec.js +50 -0
- package/lib/azure-containerregistry/test/ExampleAzureContainerRegistry.d.ts +5 -0
- package/lib/azure-containerregistry/test/ExampleAzureContainerRegistry.js +57 -0
- package/lib/azure-datalake/index.d.ts +1 -0
- package/lib/azure-datalake/index.js +18 -0
- package/lib/azure-datalake/lib/datalake.d.ts +14 -0
- package/lib/azure-datalake/lib/datalake.js +42 -0
- package/lib/azure-datalake/lib/filesystem.d.ts +19 -0
- package/lib/azure-datalake/lib/filesystem.js +32 -0
- package/lib/azure-datalake/lib/index.d.ts +3 -0
- package/lib/azure-datalake/lib/index.js +20 -0
- package/lib/azure-datalake/lib/path.d.ts +12 -0
- package/lib/azure-datalake/lib/path.js +14 -0
- package/lib/azure-eventhub/index.d.ts +1 -0
- package/lib/azure-eventhub/index.js +18 -0
- package/lib/azure-eventhub/lib/authorization.d.ts +28 -0
- package/lib/azure-eventhub/lib/authorization.js +54 -0
- package/lib/azure-eventhub/lib/cluster.d.ts +27 -0
- package/lib/azure-eventhub/lib/cluster.js +35 -0
- package/lib/azure-eventhub/lib/consumer.d.ts +26 -0
- package/lib/azure-eventhub/lib/consumer.js +31 -0
- package/lib/azure-eventhub/lib/index.d.ts +6 -0
- package/lib/azure-eventhub/lib/index.js +23 -0
- package/lib/azure-eventhub/lib/instance.d.ts +46 -0
- package/lib/azure-eventhub/lib/instance.js +66 -0
- package/lib/azure-eventhub/lib/kusto-connection.d.ts +68 -0
- package/lib/azure-eventhub/lib/kusto-connection.js +35 -0
- package/lib/azure-eventhub/lib/namespace.d.ts +77 -0
- package/lib/azure-eventhub/lib/namespace.js +58 -0
- package/lib/azure-eventhub/test/AzureEventhub.spec.d.ts +1 -0
- package/lib/azure-eventhub/test/AzureEventhub.spec.js +56 -0
- package/lib/azure-eventhub/test/ExampleAzureEventhub.d.ts +5 -0
- package/lib/azure-eventhub/test/ExampleAzureEventhub.js +72 -0
- package/lib/azure-functionapp/index.d.ts +1 -0
- package/lib/azure-functionapp/index.js +18 -0
- package/lib/azure-functionapp/lib/functionapplinux.d.ts +211 -0
- package/lib/azure-functionapp/lib/functionapplinux.js +141 -0
- package/lib/azure-functionapp/lib/index.d.ts +1 -0
- package/lib/azure-functionapp/lib/index.js +18 -0
- package/lib/azure-functionapp/serviceplanskus.d.ts +70 -0
- package/lib/azure-functionapp/serviceplanskus.js +81 -0
- package/lib/azure-functionapp/test/AzureLinuxFunctionApp.spec.d.ts +1 -0
- package/lib/azure-functionapp/test/AzureLinuxFunctionApp.spec.js +48 -0
- package/lib/azure-functionapp/test/ExampleAzureLinuxFunctionApp.d.ts +5 -0
- package/lib/azure-functionapp/test/ExampleAzureLinuxFunctionApp.js +123 -0
- package/lib/azure-keyvault/index.d.ts +1 -0
- package/lib/azure-keyvault/index.js +18 -0
- package/lib/azure-keyvault/lib/certificate.d.ts +39 -0
- package/lib/azure-keyvault/lib/certificate.js +94 -0
- package/lib/azure-keyvault/lib/index.d.ts +5 -0
- package/lib/azure-keyvault/lib/index.js +22 -0
- package/lib/azure-keyvault/lib/key.d.ts +36 -0
- package/lib/azure-keyvault/lib/key.js +33 -0
- package/lib/azure-keyvault/lib/policy.d.ts +46 -0
- package/lib/azure-keyvault/lib/policy.js +26 -0
- package/lib/azure-keyvault/lib/secret.d.ts +39 -0
- package/lib/azure-keyvault/lib/secret.js +33 -0
- package/lib/azure-keyvault/lib/vault.d.ts +94 -0
- package/lib/azure-keyvault/lib/vault.js +208 -0
- package/lib/azure-keyvault/test/AzureKeyVault.spec.d.ts +1 -0
- package/lib/azure-keyvault/test/AzureKeyVault.spec.js +63 -0
- package/lib/azure-keyvault/test/ExampleAzureKeyVault.d.ts +5 -0
- package/lib/azure-keyvault/test/ExampleAzureKeyVault.js +112 -0
- package/lib/azure-kubernetes/index.d.ts +1 -0
- package/lib/azure-kubernetes/index.js +18 -0
- package/lib/azure-kubernetes/lib/cluster.d.ts +72 -0
- package/lib/azure-kubernetes/lib/cluster.js +42 -0
- package/lib/azure-kubernetes/lib/index.d.ts +1 -0
- package/lib/azure-kubernetes/lib/index.js +18 -0
- package/lib/azure-kubernetes/test/AzureKubernetesCluster.spec.d.ts +1 -0
- package/lib/azure-kubernetes/test/AzureKubernetesCluster.spec.js +56 -0
- package/lib/azure-kubernetes/test/ExampleAzureKubernetesCluster.d.ts +5 -0
- package/lib/azure-kubernetes/test/ExampleAzureKubernetesCluster.js +65 -0
- package/lib/azure-kusto/index.d.ts +1 -0
- package/lib/azure-kusto/index.js +18 -0
- package/lib/azure-kusto/lib/cluster.d.ts +83 -0
- package/lib/azure-kusto/lib/cluster.js +85 -0
- package/lib/azure-kusto/lib/compute-specification.d.ts +71 -0
- package/lib/azure-kusto/lib/compute-specification.js +651 -0
- package/lib/azure-kusto/lib/database.d.ts +59 -0
- package/lib/azure-kusto/lib/database.js +77 -0
- package/lib/azure-kusto/lib/index.d.ts +3 -0
- package/lib/azure-kusto/lib/index.js +20 -0
- package/lib/azure-kusto/test/AzureKusto.spec.d.ts +1 -0
- package/lib/azure-kusto/test/AzureKusto.spec.js +50 -0
- package/lib/azure-kusto/test/ExampleAzureKusto.d.ts +5 -0
- package/lib/azure-kusto/test/ExampleAzureKusto.js +71 -0
- package/lib/azure-loganalytics/index.d.ts +1 -0
- package/lib/azure-loganalytics/index.js +18 -0
- package/lib/azure-loganalytics/lib/index.d.ts +1 -0
- package/lib/azure-loganalytics/lib/index.js +18 -0
- package/lib/azure-loganalytics/lib/workspace.d.ts +116 -0
- package/lib/azure-loganalytics/lib/workspace.js +79 -0
- package/lib/azure-loganalytics/test/AzureLogAnalytics.spec.d.ts +1 -0
- package/lib/azure-loganalytics/test/AzureLogAnalytics.spec.js +50 -0
- package/lib/azure-loganalytics/test/ExampleAzureLogAnalytics.d.ts +5 -0
- package/lib/azure-loganalytics/test/ExampleAzureLogAnalytics.js +115 -0
- package/lib/azure-metricalert/index.d.ts +2 -0
- package/lib/azure-metricalert/index.js +19 -0
- package/lib/azure-metricalert/lib/index.d.ts +1 -0
- package/lib/azure-metricalert/lib/index.js +18 -0
- package/lib/azure-metricalert/lib/metric-alert.d.ts +17 -0
- package/lib/azure-metricalert/lib/metric-alert.js +89 -0
- package/lib/azure-metricalert/model/action-props.d.ts +11 -0
- package/lib/azure-metricalert/model/action-props.js +3 -0
- package/lib/azure-metricalert/model/criteria-base-props.d.ts +38 -0
- package/lib/azure-metricalert/model/criteria-base-props.js +3 -0
- package/lib/azure-metricalert/model/criteria-dimension-props.d.ts +21 -0
- package/lib/azure-metricalert/model/criteria-dimension-props.js +3 -0
- package/lib/azure-metricalert/model/criteria-props.d.ts +12 -0
- package/lib/azure-metricalert/model/criteria-props.js +3 -0
- package/lib/azure-metricalert/model/dynamic-criteria-props.d.ts +29 -0
- package/lib/azure-metricalert/model/dynamic-criteria-props.js +3 -0
- package/lib/azure-metricalert/model/function.d.ts +28 -0
- package/lib/azure-metricalert/model/function.js +78 -0
- package/lib/azure-metricalert/model/index.d.ts +7 -0
- package/lib/azure-metricalert/model/index.js +24 -0
- package/lib/azure-metricalert/model/metric-alert-props.d.ts +86 -0
- package/lib/azure-metricalert/model/metric-alert-props.js +3 -0
- package/lib/azure-metricalert/test/AzureMetricAlert.spec.d.ts +1 -0
- package/lib/azure-metricalert/test/AzureMetricAlert.spec.js +63 -0
- package/lib/azure-metricalert/test/ExampleAzureMetricAlert.d.ts +5 -0
- package/lib/azure-metricalert/test/ExampleAzureMetricAlert.js +81 -0
- package/lib/azure-networksecuritygroup/index.d.ts +1 -0
- package/lib/azure-networksecuritygroup/index.js +18 -0
- package/lib/azure-networksecuritygroup/lib/index.d.ts +2 -0
- package/lib/azure-networksecuritygroup/lib/index.js +19 -0
- package/lib/azure-networksecuritygroup/lib/preconfigured-rules.d.ts +77 -0
- package/lib/azure-networksecuritygroup/lib/preconfigured-rules.js +608 -0
- package/lib/azure-networksecuritygroup/lib/securitygroup.d.ts +98 -0
- package/lib/azure-networksecuritygroup/lib/securitygroup.js +82 -0
- package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.spec.d.ts +1 -0
- package/lib/azure-networksecuritygroup/test/AzureNetworkSecurityGroup.spec.js +54 -0
- package/lib/azure-networksecuritygroup/test/ExampleAzureNetworkSecurityGroup.d.ts +5 -0
- package/lib/azure-networksecuritygroup/test/ExampleAzureNetworkSecurityGroup.js +97 -0
- package/lib/azure-queryrulealert/index.d.ts +1 -0
- package/lib/azure-queryrulealert/index.js +18 -0
- package/lib/azure-queryrulealert/lib/index.d.ts +1 -0
- package/lib/azure-queryrulealert/lib/index.js +18 -0
- package/lib/azure-queryrulealert/lib/query-rule-alert.d.ts +144 -0
- package/lib/azure-queryrulealert/lib/query-rule-alert.js +174 -0
- package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.spec.d.ts +1 -0
- package/lib/azure-queryrulealert/test/AzureQueryRuleAlert.spec.js +67 -0
- package/lib/azure-queryrulealert/test/ExampleAzureQueryRuleAlert.d.ts +5 -0
- package/lib/azure-queryrulealert/test/ExampleAzureQueryRuleAlert.js +67 -0
- package/lib/azure-resourcegroup/index.d.ts +1 -0
- package/lib/azure-resourcegroup/index.js +18 -0
- package/lib/azure-resourcegroup/lib/index.d.ts +1 -0
- package/lib/azure-resourcegroup/lib/index.js +18 -0
- package/lib/azure-resourcegroup/lib/resource-group.d.ts +38 -0
- package/lib/azure-resourcegroup/lib/resource-group.js +49 -0
- package/lib/azure-resourcegroup/test/AzureResourceGroup.spec.d.ts +1 -0
- package/lib/azure-resourcegroup/test/AzureResourceGroup.spec.js +41 -0
- package/lib/azure-resourcegroup/test/ExampleAzureResourceGroup.d.ts +5 -0
- package/lib/azure-resourcegroup/test/ExampleAzureResourceGroup.js +29 -0
- package/lib/azure-storageaccount/index.d.ts +1 -0
- package/lib/azure-storageaccount/index.js +18 -0
- package/lib/azure-storageaccount/lib/account.d.ts +205 -0
- package/lib/azure-storageaccount/lib/account.js +198 -0
- package/lib/azure-storageaccount/lib/container.d.ts +40 -0
- package/lib/azure-storageaccount/lib/container.js +85 -0
- package/lib/azure-storageaccount/lib/fileshare.d.ts +69 -0
- package/lib/azure-storageaccount/lib/fileshare.js +90 -0
- package/lib/azure-storageaccount/lib/index.d.ts +5 -0
- package/lib/azure-storageaccount/lib/index.js +22 -0
- package/lib/azure-storageaccount/lib/queue.d.ts +6 -0
- package/lib/azure-storageaccount/lib/queue.js +23 -0
- package/lib/azure-storageaccount/lib/table.d.ts +6 -0
- package/lib/azure-storageaccount/lib/table.js +23 -0
- package/lib/azure-storageaccount/test/AzureStorageAccount.spec.d.ts +1 -0
- package/lib/azure-storageaccount/test/AzureStorageAccount.spec.js +45 -0
- package/lib/azure-storageaccount/test/ExampleAzureStorageAccount.d.ts +5 -0
- package/lib/azure-storageaccount/test/ExampleAzureStorageAccount.js +102 -0
- package/lib/azure-virtualmachine/index.d.ts +1 -0
- package/lib/azure-virtualmachine/index.js +18 -0
- package/lib/azure-virtualmachine/lib/image-references.d.ts +22 -0
- package/lib/azure-virtualmachine/lib/image-references.js +128 -0
- package/lib/azure-virtualmachine/lib/index.d.ts +2 -0
- package/lib/azure-virtualmachine/lib/index.js +19 -0
- package/lib/azure-virtualmachine/lib/vm.d.ts +205 -0
- package/lib/azure-virtualmachine/lib/vm.js +207 -0
- package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.spec.d.ts +1 -0
- package/lib/azure-virtualmachine/test/AzureLinuxVirtualMachine.spec.js +48 -0
- package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.spec.d.ts +1 -0
- package/lib/azure-virtualmachine/test/AzureWindowsVirtualMachine.spec.js +50 -0
- package/lib/azure-virtualmachine/test/ExampleAzureLinuxVirtualMachine.d.ts +5 -0
- package/lib/azure-virtualmachine/test/ExampleAzureLinuxVirtualMachine.js +106 -0
- package/lib/azure-virtualmachine/test/ExampleAzureWindowsVirtualMachine.d.ts +5 -0
- package/lib/azure-virtualmachine/test/ExampleAzureWindowsVirtualMachine.js +102 -0
- package/lib/azure-virtualmachinescaleset/index.d.ts +1 -0
- package/lib/azure-virtualmachinescaleset/index.js +18 -0
- package/lib/azure-virtualmachinescaleset/lib/cluster.d.ts +234 -0
- package/lib/azure-virtualmachinescaleset/lib/cluster.js +174 -0
- package/lib/azure-virtualmachinescaleset/lib/index.d.ts +1 -0
- package/lib/azure-virtualmachinescaleset/lib/index.js +18 -0
- package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.spec.d.ts +1 -0
- package/lib/azure-virtualmachinescaleset/test/AzureLinuxVirtualMachineScaleSet.spec.js +48 -0
- package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.spec.d.ts +1 -0
- package/lib/azure-virtualmachinescaleset/test/AzureWindowsVirtualMachineScaleSet.spec.js +50 -0
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureLinuxVirtualMachineScaleSet.d.ts +5 -0
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureLinuxVirtualMachineScaleSet.js +107 -0
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureWindowsVirtualMachineScaleSet.d.ts +5 -0
- package/lib/azure-virtualmachinescaleset/test/ExampleAzureWindowsVirtualMachineScaleSet.js +103 -0
- package/lib/azure-virtualnetwork/index.d.ts +1 -0
- package/lib/azure-virtualnetwork/index.js +18 -0
- package/lib/azure-virtualnetwork/lib/index.d.ts +2 -0
- package/lib/azure-virtualnetwork/lib/index.js +19 -0
- package/lib/azure-virtualnetwork/lib/network.d.ts +61 -0
- package/lib/azure-virtualnetwork/lib/network.js +60 -0
- package/lib/azure-virtualnetwork/lib/peering.d.ts +51 -0
- package/lib/azure-virtualnetwork/lib/peering.js +32 -0
- package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.spec.d.ts +1 -0
- package/lib/azure-virtualnetwork/test/AzureVirtualNetwork.spec.js +48 -0
- package/lib/azure-virtualnetwork/test/ExampleAzureVirtualNetwork.d.ts +5 -0
- package/lib/azure-virtualnetwork/test/ExampleAzureVirtualNetwork.js +88 -0
- package/lib/core-azure/index.d.ts +1 -0
- package/lib/core-azure/index.js +18 -0
- package/lib/core-azure/lib/diagsettings.d.ts +52 -0
- package/lib/core-azure/lib/diagsettings.js +46 -0
- package/lib/core-azure/lib/index.d.ts +3 -0
- package/lib/core-azure/lib/index.js +20 -0
- package/lib/core-azure/lib/rbac.d.ts +32 -0
- package/lib/core-azure/lib/rbac.js +30 -0
- package/lib/core-azure/lib/resource.d.ts +17 -0
- package/lib/core-azure/lib/resource.js +74 -0
- package/lib/core-azure/test/AzureResource.spec.d.ts +1 -0
- package/lib/core-azure/test/AzureResource.spec.js +19 -0
- package/lib/core-azure/test/ExampleAzureResource.d.ts +5 -0
- package/lib/core-azure/test/ExampleAzureResource.js +67 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +22 -0
- package/lib/testing/index.d.ts +6 -0
- package/lib/testing/index.js +18 -0
- package/lib/util/azureTenantIdHelpers.d.ts +2 -0
- package/lib/util/azureTenantIdHelpers.js +34 -0
- package/lib/util/randomName.d.ts +1 -0
- package/lib/util/randomName.js +13 -0
- package/node_modules/moment/CHANGELOG.md +996 -0
- package/node_modules/moment/LICENSE +22 -0
- package/node_modules/moment/README.md +55 -0
- package/node_modules/moment/dist/locale/af.js +71 -0
- package/node_modules/moment/dist/locale/ar-dz.js +156 -0
- package/node_modules/moment/dist/locale/ar-kw.js +55 -0
- package/node_modules/moment/dist/locale/ar-ly.js +171 -0
- package/node_modules/moment/dist/locale/ar-ma.js +56 -0
- package/node_modules/moment/dist/locale/ar-ps.js +112 -0
- package/node_modules/moment/dist/locale/ar-sa.js +105 -0
- package/node_modules/moment/dist/locale/ar-tn.js +55 -0
- package/node_modules/moment/dist/locale/ar.js +189 -0
- package/node_modules/moment/dist/locale/az.js +102 -0
- package/node_modules/moment/dist/locale/be.js +142 -0
- package/node_modules/moment/dist/locale/bg.js +87 -0
- package/node_modules/moment/dist/locale/bm.js +52 -0
- package/node_modules/moment/dist/locale/bn-bd.js +129 -0
- package/node_modules/moment/dist/locale/bn.js +119 -0
- package/node_modules/moment/dist/locale/bo.js +124 -0
- package/node_modules/moment/dist/locale/br.js +168 -0
- package/node_modules/moment/dist/locale/bs.js +160 -0
- package/node_modules/moment/dist/locale/ca.js +100 -0
- package/node_modules/moment/dist/locale/cs.js +181 -0
- package/node_modules/moment/dist/locale/cv.js +63 -0
- package/node_modules/moment/dist/locale/cy.js +98 -0
- package/node_modules/moment/dist/locale/da.js +53 -0
- package/node_modules/moment/dist/locale/de-at.js +79 -0
- package/node_modules/moment/dist/locale/de-ch.js +78 -0
- package/node_modules/moment/dist/locale/de.js +78 -0
- package/node_modules/moment/dist/locale/dv.js +90 -0
- package/node_modules/moment/dist/locale/el.js +106 -0
- package/node_modules/moment/dist/locale/en-au.js +68 -0
- package/node_modules/moment/dist/locale/en-ca.js +64 -0
- package/node_modules/moment/dist/locale/en-gb.js +68 -0
- package/node_modules/moment/dist/locale/en-ie.js +68 -0
- package/node_modules/moment/dist/locale/en-il.js +64 -0
- package/node_modules/moment/dist/locale/en-in.js +68 -0
- package/node_modules/moment/dist/locale/en-nz.js +68 -0
- package/node_modules/moment/dist/locale/en-sg.js +68 -0
- package/node_modules/moment/dist/locale/eo.js +68 -0
- package/node_modules/moment/dist/locale/es-do.js +108 -0
- package/node_modules/moment/dist/locale/es-mx.js +110 -0
- package/node_modules/moment/dist/locale/es-us.js +110 -0
- package/node_modules/moment/dist/locale/es.js +110 -0
- package/node_modules/moment/dist/locale/et.js +78 -0
- package/node_modules/moment/dist/locale/eu.js +65 -0
- package/node_modules/moment/dist/locale/fa.js +113 -0
- package/node_modules/moment/dist/locale/fi.js +124 -0
- package/node_modules/moment/dist/locale/fil.js +58 -0
- package/node_modules/moment/dist/locale/fo.js +57 -0
- package/node_modules/moment/dist/locale/fr-ca.js +70 -0
- package/node_modules/moment/dist/locale/fr-ch.js +74 -0
- package/node_modules/moment/dist/locale/fr.js +108 -0
- package/node_modules/moment/dist/locale/fy.js +75 -0
- package/node_modules/moment/dist/locale/ga.js +95 -0
- package/node_modules/moment/dist/locale/gd.js +95 -0
- package/node_modules/moment/dist/locale/gl.js +75 -0
- package/node_modules/moment/dist/locale/gom-deva.js +126 -0
- package/node_modules/moment/dist/locale/gom-latn.js +124 -0
- package/node_modules/moment/dist/locale/gu.js +122 -0
- package/node_modules/moment/dist/locale/he.js +94 -0
- package/node_modules/moment/dist/locale/hi.js +168 -0
- package/node_modules/moment/dist/locale/hr.js +156 -0
- package/node_modules/moment/dist/locale/hu.js +118 -0
- package/node_modules/moment/dist/locale/hy-am.js +94 -0
- package/node_modules/moment/dist/locale/id.js +76 -0
- package/node_modules/moment/dist/locale/is.js +140 -0
- package/node_modules/moment/dist/locale/it-ch.js +64 -0
- package/node_modules/moment/dist/locale/it.js +106 -0
- package/node_modules/moment/dist/locale/ja.js +148 -0
- package/node_modules/moment/dist/locale/jv.js +76 -0
- package/node_modules/moment/dist/locale/ka.js +92 -0
- package/node_modules/moment/dist/locale/kk.js +82 -0
- package/node_modules/moment/dist/locale/km.js +103 -0
- package/node_modules/moment/dist/locale/kn.js +124 -0
- package/node_modules/moment/dist/locale/ko.js +75 -0
- package/node_modules/moment/dist/locale/ku-kmr.js +121 -0
- package/node_modules/moment/dist/locale/ku.js +118 -0
- package/node_modules/moment/dist/locale/ky.js +84 -0
- package/node_modules/moment/dist/locale/lb.js +137 -0
- package/node_modules/moment/dist/locale/lo.js +66 -0
- package/node_modules/moment/dist/locale/lt.js +125 -0
- package/node_modules/moment/dist/locale/lv.js +94 -0
- package/node_modules/moment/dist/locale/me.js +117 -0
- package/node_modules/moment/dist/locale/mi.js +60 -0
- package/node_modules/moment/dist/locale/mk.js +85 -0
- package/node_modules/moment/dist/locale/ml.js +82 -0
- package/node_modules/moment/dist/locale/mn.js +100 -0
- package/node_modules/moment/dist/locale/mr.js +203 -0
- package/node_modules/moment/dist/locale/ms-my.js +76 -0
- package/node_modules/moment/dist/locale/ms.js +75 -0
- package/node_modules/moment/dist/locale/mt.js +56 -0
- package/node_modules/moment/dist/locale/my.js +91 -0
- package/node_modules/moment/dist/locale/nb.js +60 -0
- package/node_modules/moment/dist/locale/ne.js +121 -0
- package/node_modules/moment/dist/locale/nl-be.js +102 -0
- package/node_modules/moment/dist/locale/nl.js +104 -0
- package/node_modules/moment/dist/locale/nn.js +59 -0
- package/node_modules/moment/dist/locale/oc-lnc.js +85 -0
- package/node_modules/moment/dist/locale/pa-in.js +122 -0
- package/node_modules/moment/dist/locale/pl.js +140 -0
- package/node_modules/moment/dist/locale/pt-br.js +58 -0
- package/node_modules/moment/dist/locale/pt.js +63 -0
- package/node_modules/moment/dist/locale/ro.js +76 -0
- package/node_modules/moment/dist/locale/ru.js +213 -0
- package/node_modules/moment/dist/locale/sd.js +81 -0
- package/node_modules/moment/dist/locale/se.js +57 -0
- package/node_modules/moment/dist/locale/si.js +69 -0
- package/node_modules/moment/dist/locale/sk.js +145 -0
- package/node_modules/moment/dist/locale/sl.js +171 -0
- package/node_modules/moment/dist/locale/sq.js +65 -0
- package/node_modules/moment/dist/locale/sr-cyrl.js +127 -0
- package/node_modules/moment/dist/locale/sr.js +129 -0
- package/node_modules/moment/dist/locale/ss.js +84 -0
- package/node_modules/moment/dist/locale/sv.js +68 -0
- package/node_modules/moment/dist/locale/sw.js +55 -0
- package/node_modules/moment/dist/locale/ta.js +131 -0
- package/node_modules/moment/dist/locale/te.js +88 -0
- package/node_modules/moment/dist/locale/tet.js +68 -0
- package/node_modules/moment/dist/locale/tg.js +117 -0
- package/node_modules/moment/dist/locale/th.js +65 -0
- package/node_modules/moment/dist/locale/tk.js +91 -0
- package/node_modules/moment/dist/locale/tl-ph.js +57 -0
- package/node_modules/moment/dist/locale/tlh.js +124 -0
- package/node_modules/moment/dist/locale/tr.js +106 -0
- package/node_modules/moment/dist/locale/tzl.js +89 -0
- package/node_modules/moment/dist/locale/tzm-latn.js +54 -0
- package/node_modules/moment/dist/locale/tzm.js +54 -0
- package/node_modules/moment/dist/locale/ug-cn.js +111 -0
- package/node_modules/moment/dist/locale/uk.js +167 -0
- package/node_modules/moment/dist/locale/ur.js +82 -0
- package/node_modules/moment/dist/locale/uz-latn.js +54 -0
- package/node_modules/moment/dist/locale/uz.js +51 -0
- package/node_modules/moment/dist/locale/vi.js +80 -0
- package/node_modules/moment/dist/locale/x-pseudo.js +73 -0
- package/node_modules/moment/dist/locale/yo.js +53 -0
- package/node_modules/moment/dist/locale/zh-cn.js +120 -0
- package/node_modules/moment/dist/locale/zh-hk.js +101 -0
- package/node_modules/moment/dist/locale/zh-mo.js +100 -0
- package/node_modules/moment/dist/locale/zh-tw.js +99 -0
- package/node_modules/moment/dist/moment.js +5680 -0
- package/node_modules/moment/ender.js +1 -0
- package/node_modules/moment/locale/af.js +82 -0
- package/node_modules/moment/locale/ar-dz.js +167 -0
- package/node_modules/moment/locale/ar-kw.js +66 -0
- package/node_modules/moment/locale/ar-ly.js +182 -0
- package/node_modules/moment/locale/ar-ma.js +67 -0
- package/node_modules/moment/locale/ar-ps.js +123 -0
- package/node_modules/moment/locale/ar-sa.js +116 -0
- package/node_modules/moment/locale/ar-tn.js +66 -0
- package/node_modules/moment/locale/ar.js +200 -0
- package/node_modules/moment/locale/az.js +113 -0
- package/node_modules/moment/locale/be.js +153 -0
- package/node_modules/moment/locale/bg.js +98 -0
- package/node_modules/moment/locale/bm.js +62 -0
- package/node_modules/moment/locale/bn-bd.js +140 -0
- package/node_modules/moment/locale/bn.js +130 -0
- package/node_modules/moment/locale/bo.js +135 -0
- package/node_modules/moment/locale/br.js +179 -0
- package/node_modules/moment/locale/bs.js +171 -0
- package/node_modules/moment/locale/ca.js +111 -0
- package/node_modules/moment/locale/cs.js +192 -0
- package/node_modules/moment/locale/cv.js +74 -0
- package/node_modules/moment/locale/cy.js +109 -0
- package/node_modules/moment/locale/da.js +64 -0
- package/node_modules/moment/locale/de-at.js +90 -0
- package/node_modules/moment/locale/de-ch.js +87 -0
- package/node_modules/moment/locale/de.js +89 -0
- package/node_modules/moment/locale/dv.js +101 -0
- package/node_modules/moment/locale/el.js +117 -0
- package/node_modules/moment/locale/en-au.js +79 -0
- package/node_modules/moment/locale/en-ca.js +75 -0
- package/node_modules/moment/locale/en-gb.js +79 -0
- package/node_modules/moment/locale/en-ie.js +79 -0
- package/node_modules/moment/locale/en-il.js +75 -0
- package/node_modules/moment/locale/en-in.js +79 -0
- package/node_modules/moment/locale/en-nz.js +79 -0
- package/node_modules/moment/locale/en-sg.js +79 -0
- package/node_modules/moment/locale/eo.js +79 -0
- package/node_modules/moment/locale/es-do.js +119 -0
- package/node_modules/moment/locale/es-mx.js +121 -0
- package/node_modules/moment/locale/es-us.js +121 -0
- package/node_modules/moment/locale/es.js +121 -0
- package/node_modules/moment/locale/et.js +89 -0
- package/node_modules/moment/locale/eu.js +76 -0
- package/node_modules/moment/locale/fa.js +124 -0
- package/node_modules/moment/locale/fi.js +135 -0
- package/node_modules/moment/locale/fil.js +69 -0
- package/node_modules/moment/locale/fo.js +68 -0
- package/node_modules/moment/locale/fr-ca.js +81 -0
- package/node_modules/moment/locale/fr-ch.js +85 -0
- package/node_modules/moment/locale/fr.js +119 -0
- package/node_modules/moment/locale/fy.js +86 -0
- package/node_modules/moment/locale/ga.js +106 -0
- package/node_modules/moment/locale/gd.js +106 -0
- package/node_modules/moment/locale/gl.js +86 -0
- package/node_modules/moment/locale/gom-deva.js +137 -0
- package/node_modules/moment/locale/gom-latn.js +135 -0
- package/node_modules/moment/locale/gu.js +133 -0
- package/node_modules/moment/locale/he.js +105 -0
- package/node_modules/moment/locale/hi.js +179 -0
- package/node_modules/moment/locale/hr.js +167 -0
- package/node_modules/moment/locale/hu.js +129 -0
- package/node_modules/moment/locale/hy-am.js +105 -0
- package/node_modules/moment/locale/id.js +87 -0
- package/node_modules/moment/locale/is.js +151 -0
- package/node_modules/moment/locale/it-ch.js +75 -0
- package/node_modules/moment/locale/it.js +117 -0
- package/node_modules/moment/locale/ja.js +159 -0
- package/node_modules/moment/locale/jv.js +87 -0
- package/node_modules/moment/locale/ka.js +103 -0
- package/node_modules/moment/locale/kk.js +93 -0
- package/node_modules/moment/locale/km.js +114 -0
- package/node_modules/moment/locale/kn.js +135 -0
- package/node_modules/moment/locale/ko.js +86 -0
- package/node_modules/moment/locale/ku-kmr.js +125 -0
- package/node_modules/moment/locale/ku.js +129 -0
- package/node_modules/moment/locale/ky.js +95 -0
- package/node_modules/moment/locale/lb.js +148 -0
- package/node_modules/moment/locale/lo.js +77 -0
- package/node_modules/moment/locale/lt.js +136 -0
- package/node_modules/moment/locale/lv.js +105 -0
- package/node_modules/moment/locale/me.js +128 -0
- package/node_modules/moment/locale/mi.js +71 -0
- package/node_modules/moment/locale/mk.js +97 -0
- package/node_modules/moment/locale/ml.js +93 -0
- package/node_modules/moment/locale/mn.js +111 -0
- package/node_modules/moment/locale/mr.js +214 -0
- package/node_modules/moment/locale/ms-my.js +87 -0
- package/node_modules/moment/locale/ms.js +86 -0
- package/node_modules/moment/locale/mt.js +67 -0
- package/node_modules/moment/locale/my.js +102 -0
- package/node_modules/moment/locale/nb.js +71 -0
- package/node_modules/moment/locale/ne.js +132 -0
- package/node_modules/moment/locale/nl-be.js +113 -0
- package/node_modules/moment/locale/nl.js +115 -0
- package/node_modules/moment/locale/nn.js +70 -0
- package/node_modules/moment/locale/oc-lnc.js +96 -0
- package/node_modules/moment/locale/pa-in.js +133 -0
- package/node_modules/moment/locale/pl.js +151 -0
- package/node_modules/moment/locale/pt-br.js +69 -0
- package/node_modules/moment/locale/pt.js +74 -0
- package/node_modules/moment/locale/ro.js +87 -0
- package/node_modules/moment/locale/ru.js +224 -0
- package/node_modules/moment/locale/sd.js +92 -0
- package/node_modules/moment/locale/se.js +68 -0
- package/node_modules/moment/locale/si.js +80 -0
- package/node_modules/moment/locale/sk.js +156 -0
- package/node_modules/moment/locale/sl.js +182 -0
- package/node_modules/moment/locale/sq.js +76 -0
- package/node_modules/moment/locale/sr-cyrl.js +138 -0
- package/node_modules/moment/locale/sr.js +140 -0
- package/node_modules/moment/locale/ss.js +95 -0
- package/node_modules/moment/locale/sv.js +79 -0
- package/node_modules/moment/locale/sw.js +66 -0
- package/node_modules/moment/locale/ta.js +142 -0
- package/node_modules/moment/locale/te.js +99 -0
- package/node_modules/moment/locale/tet.js +79 -0
- package/node_modules/moment/locale/tg.js +128 -0
- package/node_modules/moment/locale/th.js +76 -0
- package/node_modules/moment/locale/tk.js +102 -0
- package/node_modules/moment/locale/tl-ph.js +68 -0
- package/node_modules/moment/locale/tlh.js +135 -0
- package/node_modules/moment/locale/tr.js +117 -0
- package/node_modules/moment/locale/tzl.js +100 -0
- package/node_modules/moment/locale/tzm-latn.js +65 -0
- package/node_modules/moment/locale/tzm.js +65 -0
- package/node_modules/moment/locale/ug-cn.js +122 -0
- package/node_modules/moment/locale/uk.js +178 -0
- package/node_modules/moment/locale/ur.js +93 -0
- package/node_modules/moment/locale/uz-latn.js +65 -0
- package/node_modules/moment/locale/uz.js +62 -0
- package/node_modules/moment/locale/vi.js +91 -0
- package/node_modules/moment/locale/x-pseudo.js +84 -0
- package/node_modules/moment/locale/yo.js +64 -0
- package/node_modules/moment/locale/zh-cn.js +131 -0
- package/node_modules/moment/locale/zh-hk.js +112 -0
- package/node_modules/moment/locale/zh-mo.js +111 -0
- package/node_modules/moment/locale/zh-tw.js +110 -0
- package/node_modules/moment/min/locales.js +12800 -0
- package/node_modules/moment/min/locales.min.js +2 -0
- package/node_modules/moment/min/locales.min.js.map +1 -0
- package/node_modules/moment/min/moment-with-locales.js +18472 -0
- package/node_modules/moment/min/moment-with-locales.min.js +2 -0
- package/node_modules/moment/min/moment-with-locales.min.js.map +1 -0
- package/node_modules/moment/min/moment.min.js +2 -0
- package/node_modules/moment/min/moment.min.js.map +1 -0
- package/node_modules/moment/moment.d.ts +796 -0
- package/node_modules/moment/moment.js +5688 -0
- package/node_modules/moment/package.js +11 -0
- package/node_modules/moment/package.json +116 -0
- package/node_modules/moment/src/lib/create/check-overflow.js +57 -0
- package/node_modules/moment/src/lib/create/date-from-array.js +35 -0
- package/node_modules/moment/src/lib/create/from-anything.js +117 -0
- package/node_modules/moment/src/lib/create/from-array.js +187 -0
- package/node_modules/moment/src/lib/create/from-object.js +20 -0
- package/node_modules/moment/src/lib/create/from-string-and-array.js +67 -0
- package/node_modules/moment/src/lib/create/from-string-and-format.js +135 -0
- package/node_modules/moment/src/lib/create/from-string.js +258 -0
- package/node_modules/moment/src/lib/create/local.js +5 -0
- package/node_modules/moment/src/lib/create/parsing-flags.js +28 -0
- package/node_modules/moment/src/lib/create/utc.js +5 -0
- package/node_modules/moment/src/lib/create/valid.js +51 -0
- package/node_modules/moment/src/lib/duration/abs.js +18 -0
- package/node_modules/moment/src/lib/duration/add-subtract.js +21 -0
- package/node_modules/moment/src/lib/duration/as.js +76 -0
- package/node_modules/moment/src/lib/duration/bubble.js +68 -0
- package/node_modules/moment/src/lib/duration/clone.js +5 -0
- package/node_modules/moment/src/lib/duration/constructor.js +42 -0
- package/node_modules/moment/src/lib/duration/create.js +133 -0
- package/node_modules/moment/src/lib/duration/duration.js +16 -0
- package/node_modules/moment/src/lib/duration/get.js +27 -0
- package/node_modules/moment/src/lib/duration/humanize.js +114 -0
- package/node_modules/moment/src/lib/duration/iso-string.js +68 -0
- package/node_modules/moment/src/lib/duration/prototype.js +78 -0
- package/node_modules/moment/src/lib/duration/valid.js +55 -0
- package/node_modules/moment/src/lib/format/format.js +104 -0
- package/node_modules/moment/src/lib/locale/base-config.js +41 -0
- package/node_modules/moment/src/lib/locale/calendar.js +15 -0
- package/node_modules/moment/src/lib/locale/constructor.js +5 -0
- package/node_modules/moment/src/lib/locale/en.js +39 -0
- package/node_modules/moment/src/lib/locale/formats.js +36 -0
- package/node_modules/moment/src/lib/locale/invalid.js +5 -0
- package/node_modules/moment/src/lib/locale/lists.js +93 -0
- package/node_modules/moment/src/lib/locale/locale.js +45 -0
- package/node_modules/moment/src/lib/locale/locales.js +249 -0
- package/node_modules/moment/src/lib/locale/ordinal.js +8 -0
- package/node_modules/moment/src/lib/locale/pre-post-format.js +3 -0
- package/node_modules/moment/src/lib/locale/prototype.js +88 -0
- package/node_modules/moment/src/lib/locale/relative.js +32 -0
- package/node_modules/moment/src/lib/locale/set.js +56 -0
- package/node_modules/moment/src/lib/moment/add-subtract.js +61 -0
- package/node_modules/moment/src/lib/moment/calendar.js +53 -0
- package/node_modules/moment/src/lib/moment/clone.js +5 -0
- package/node_modules/moment/src/lib/moment/compare.js +72 -0
- package/node_modules/moment/src/lib/moment/constructor.js +80 -0
- package/node_modules/moment/src/lib/moment/creation-data.js +9 -0
- package/node_modules/moment/src/lib/moment/diff.js +79 -0
- package/node_modules/moment/src/lib/moment/format.js +78 -0
- package/node_modules/moment/src/lib/moment/from.js +20 -0
- package/node_modules/moment/src/lib/moment/get-set.js +117 -0
- package/node_modules/moment/src/lib/moment/locale.js +34 -0
- package/node_modules/moment/src/lib/moment/min-max.js +62 -0
- package/node_modules/moment/src/lib/moment/moment.js +28 -0
- package/node_modules/moment/src/lib/moment/now.js +3 -0
- package/node_modules/moment/src/lib/moment/prototype.js +197 -0
- package/node_modules/moment/src/lib/moment/start-end-of.js +164 -0
- package/node_modules/moment/src/lib/moment/to-type.js +42 -0
- package/node_modules/moment/src/lib/moment/to.js +20 -0
- package/node_modules/moment/src/lib/moment/valid.js +15 -0
- package/node_modules/moment/src/lib/parse/regex.js +84 -0
- package/node_modules/moment/src/lib/parse/token.js +36 -0
- package/node_modules/moment/src/lib/units/aliases.js +75 -0
- package/node_modules/moment/src/lib/units/constants.js +9 -0
- package/node_modules/moment/src/lib/units/day-of-month.js +35 -0
- package/node_modules/moment/src/lib/units/day-of-week.js +432 -0
- package/node_modules/moment/src/lib/units/day-of-year.js +28 -0
- package/node_modules/moment/src/lib/units/era.js +293 -0
- package/node_modules/moment/src/lib/units/hour.js +152 -0
- package/node_modules/moment/src/lib/units/millisecond.js +66 -0
- package/node_modules/moment/src/lib/units/minute.js +24 -0
- package/node_modules/moment/src/lib/units/month.js +340 -0
- package/node_modules/moment/src/lib/units/offset.js +249 -0
- package/node_modules/moment/src/lib/units/priorities.js +34 -0
- package/node_modules/moment/src/lib/units/quarter.js +24 -0
- package/node_modules/moment/src/lib/units/second.js +24 -0
- package/node_modules/moment/src/lib/units/timestamp.js +20 -0
- package/node_modules/moment/src/lib/units/timezone.js +16 -0
- package/node_modules/moment/src/lib/units/units.js +20 -0
- package/node_modules/moment/src/lib/units/week-calendar-utils.js +66 -0
- package/node_modules/moment/src/lib/units/week-year.js +128 -0
- package/node_modules/moment/src/lib/units/week.js +62 -0
- package/node_modules/moment/src/lib/units/year.js +75 -0
- package/node_modules/moment/src/lib/utils/abs-ceil.js +7 -0
- package/node_modules/moment/src/lib/utils/abs-floor.js +8 -0
- package/node_modules/moment/src/lib/utils/abs-round.js +7 -0
- package/node_modules/moment/src/lib/utils/compare-arrays.js +18 -0
- package/node_modules/moment/src/lib/utils/defaults.js +10 -0
- package/node_modules/moment/src/lib/utils/deprecate.js +69 -0
- package/node_modules/moment/src/lib/utils/extend.js +19 -0
- package/node_modules/moment/src/lib/utils/has-own-prop.js +3 -0
- package/node_modules/moment/src/lib/utils/hooks.js +13 -0
- package/node_modules/moment/src/lib/utils/index-of.js +18 -0
- package/node_modules/moment/src/lib/utils/is-array.js +6 -0
- package/node_modules/moment/src/lib/utils/is-calendar-spec.js +25 -0
- package/node_modules/moment/src/lib/utils/is-date.js +6 -0
- package/node_modules/moment/src/lib/utils/is-function.js +6 -0
- package/node_modules/moment/src/lib/utils/is-leap-year.js +3 -0
- package/node_modules/moment/src/lib/utils/is-moment-input.js +75 -0
- package/node_modules/moment/src/lib/utils/is-number.js +6 -0
- package/node_modules/moment/src/lib/utils/is-object-empty.js +15 -0
- package/node_modules/moment/src/lib/utils/is-object.js +8 -0
- package/node_modules/moment/src/lib/utils/is-string.js +3 -0
- package/node_modules/moment/src/lib/utils/is-undefined.js +3 -0
- package/node_modules/moment/src/lib/utils/keys.js +20 -0
- package/node_modules/moment/src/lib/utils/map.js +9 -0
- package/node_modules/moment/src/lib/utils/mod.js +3 -0
- package/node_modules/moment/src/lib/utils/some.js +20 -0
- package/node_modules/moment/src/lib/utils/to-int.js +12 -0
- package/node_modules/moment/src/lib/utils/zero-fill.js +10 -0
- package/node_modules/moment/src/locale/af.js +71 -0
- package/node_modules/moment/src/locale/ar-dz.js +156 -0
- package/node_modules/moment/src/locale/ar-kw.js +55 -0
- package/node_modules/moment/src/locale/ar-ly.js +171 -0
- package/node_modules/moment/src/locale/ar-ma.js +56 -0
- package/node_modules/moment/src/locale/ar-ps.js +112 -0
- package/node_modules/moment/src/locale/ar-sa.js +105 -0
- package/node_modules/moment/src/locale/ar-tn.js +55 -0
- package/node_modules/moment/src/locale/ar.js +189 -0
- package/node_modules/moment/src/locale/az.js +102 -0
- package/node_modules/moment/src/locale/be.js +142 -0
- package/node_modules/moment/src/locale/bg.js +87 -0
- package/node_modules/moment/src/locale/bm.js +52 -0
- package/node_modules/moment/src/locale/bn-bd.js +129 -0
- package/node_modules/moment/src/locale/bn.js +119 -0
- package/node_modules/moment/src/locale/bo.js +124 -0
- package/node_modules/moment/src/locale/br.js +168 -0
- package/node_modules/moment/src/locale/bs.js +160 -0
- package/node_modules/moment/src/locale/ca.js +100 -0
- package/node_modules/moment/src/locale/cs.js +181 -0
- package/node_modules/moment/src/locale/cv.js +63 -0
- package/node_modules/moment/src/locale/cy.js +98 -0
- package/node_modules/moment/src/locale/da.js +53 -0
- package/node_modules/moment/src/locale/de-at.js +79 -0
- package/node_modules/moment/src/locale/de-ch.js +78 -0
- package/node_modules/moment/src/locale/de.js +78 -0
- package/node_modules/moment/src/locale/dv.js +90 -0
- package/node_modules/moment/src/locale/el.js +106 -0
- package/node_modules/moment/src/locale/en-au.js +68 -0
- package/node_modules/moment/src/locale/en-ca.js +64 -0
- package/node_modules/moment/src/locale/en-gb.js +68 -0
- package/node_modules/moment/src/locale/en-ie.js +68 -0
- package/node_modules/moment/src/locale/en-il.js +64 -0
- package/node_modules/moment/src/locale/en-in.js +68 -0
- package/node_modules/moment/src/locale/en-nz.js +68 -0
- package/node_modules/moment/src/locale/en-sg.js +68 -0
- package/node_modules/moment/src/locale/eo.js +68 -0
- package/node_modules/moment/src/locale/es-do.js +108 -0
- package/node_modules/moment/src/locale/es-mx.js +110 -0
- package/node_modules/moment/src/locale/es-us.js +110 -0
- package/node_modules/moment/src/locale/es.js +110 -0
- package/node_modules/moment/src/locale/et.js +78 -0
- package/node_modules/moment/src/locale/eu.js +65 -0
- package/node_modules/moment/src/locale/fa.js +113 -0
- package/node_modules/moment/src/locale/fi.js +124 -0
- package/node_modules/moment/src/locale/fil.js +58 -0
- package/node_modules/moment/src/locale/fo.js +57 -0
- package/node_modules/moment/src/locale/fr-ca.js +70 -0
- package/node_modules/moment/src/locale/fr-ch.js +74 -0
- package/node_modules/moment/src/locale/fr.js +108 -0
- package/node_modules/moment/src/locale/fy.js +75 -0
- package/node_modules/moment/src/locale/ga.js +95 -0
- package/node_modules/moment/src/locale/gd.js +95 -0
- package/node_modules/moment/src/locale/gl.js +75 -0
- package/node_modules/moment/src/locale/gom-deva.js +126 -0
- package/node_modules/moment/src/locale/gom-latn.js +124 -0
- package/node_modules/moment/src/locale/gu.js +122 -0
- package/node_modules/moment/src/locale/he.js +94 -0
- package/node_modules/moment/src/locale/hi.js +168 -0
- package/node_modules/moment/src/locale/hr.js +156 -0
- package/node_modules/moment/src/locale/hu.js +118 -0
- package/node_modules/moment/src/locale/hy-am.js +94 -0
- package/node_modules/moment/src/locale/id.js +76 -0
- package/node_modules/moment/src/locale/is.js +140 -0
- package/node_modules/moment/src/locale/it-ch.js +64 -0
- package/node_modules/moment/src/locale/it.js +106 -0
- package/node_modules/moment/src/locale/ja.js +148 -0
- package/node_modules/moment/src/locale/jv.js +76 -0
- package/node_modules/moment/src/locale/ka.js +92 -0
- package/node_modules/moment/src/locale/kk.js +82 -0
- package/node_modules/moment/src/locale/km.js +103 -0
- package/node_modules/moment/src/locale/kn.js +124 -0
- package/node_modules/moment/src/locale/ko.js +75 -0
- package/node_modules/moment/src/locale/ku-kmr.js +121 -0
- package/node_modules/moment/src/locale/ku.js +118 -0
- package/node_modules/moment/src/locale/ky.js +84 -0
- package/node_modules/moment/src/locale/lb.js +137 -0
- package/node_modules/moment/src/locale/lo.js +66 -0
- package/node_modules/moment/src/locale/lt.js +125 -0
- package/node_modules/moment/src/locale/lv.js +94 -0
- package/node_modules/moment/src/locale/me.js +117 -0
- package/node_modules/moment/src/locale/mi.js +60 -0
- package/node_modules/moment/src/locale/mk.js +85 -0
- package/node_modules/moment/src/locale/ml.js +82 -0
- package/node_modules/moment/src/locale/mn.js +100 -0
- package/node_modules/moment/src/locale/mr.js +203 -0
- package/node_modules/moment/src/locale/ms-my.js +76 -0
- package/node_modules/moment/src/locale/ms.js +75 -0
- package/node_modules/moment/src/locale/mt.js +56 -0
- package/node_modules/moment/src/locale/my.js +91 -0
- package/node_modules/moment/src/locale/nb.js +60 -0
- package/node_modules/moment/src/locale/ne.js +121 -0
- package/node_modules/moment/src/locale/nl-be.js +102 -0
- package/node_modules/moment/src/locale/nl.js +104 -0
- package/node_modules/moment/src/locale/nn.js +59 -0
- package/node_modules/moment/src/locale/oc-lnc.js +85 -0
- package/node_modules/moment/src/locale/pa-in.js +122 -0
- package/node_modules/moment/src/locale/pl.js +140 -0
- package/node_modules/moment/src/locale/pt-br.js +58 -0
- package/node_modules/moment/src/locale/pt.js +63 -0
- package/node_modules/moment/src/locale/ro.js +76 -0
- package/node_modules/moment/src/locale/ru.js +213 -0
- package/node_modules/moment/src/locale/sd.js +81 -0
- package/node_modules/moment/src/locale/se.js +57 -0
- package/node_modules/moment/src/locale/si.js +69 -0
- package/node_modules/moment/src/locale/sk.js +145 -0
- package/node_modules/moment/src/locale/sl.js +171 -0
- package/node_modules/moment/src/locale/sq.js +65 -0
- package/node_modules/moment/src/locale/sr-cyrl.js +127 -0
- package/node_modules/moment/src/locale/sr.js +129 -0
- package/node_modules/moment/src/locale/ss.js +84 -0
- package/node_modules/moment/src/locale/sv.js +68 -0
- package/node_modules/moment/src/locale/sw.js +55 -0
- package/node_modules/moment/src/locale/ta.js +131 -0
- package/node_modules/moment/src/locale/te.js +88 -0
- package/node_modules/moment/src/locale/tet.js +68 -0
- package/node_modules/moment/src/locale/tg.js +117 -0
- package/node_modules/moment/src/locale/th.js +65 -0
- package/node_modules/moment/src/locale/tk.js +91 -0
- package/node_modules/moment/src/locale/tl-ph.js +57 -0
- package/node_modules/moment/src/locale/tlh.js +124 -0
- package/node_modules/moment/src/locale/tr.js +106 -0
- package/node_modules/moment/src/locale/tzl.js +89 -0
- package/node_modules/moment/src/locale/tzm-latn.js +54 -0
- package/node_modules/moment/src/locale/tzm.js +54 -0
- package/node_modules/moment/src/locale/ug-cn.js +111 -0
- package/node_modules/moment/src/locale/uk.js +167 -0
- package/node_modules/moment/src/locale/ur.js +82 -0
- package/node_modules/moment/src/locale/uz-latn.js +54 -0
- package/node_modules/moment/src/locale/uz.js +51 -0
- package/node_modules/moment/src/locale/vi.js +80 -0
- package/node_modules/moment/src/locale/x-pseudo.js +73 -0
- package/node_modules/moment/src/locale/yo.js +53 -0
- package/node_modules/moment/src/locale/zh-cn.js +120 -0
- package/node_modules/moment/src/locale/zh-hk.js +101 -0
- package/node_modules/moment/src/locale/zh-mo.js +100 -0
- package/node_modules/moment/src/locale/zh-tw.js +99 -0
- package/node_modules/moment/src/moment.js +93 -0
- package/node_modules/moment/ts3.1-typings/moment.d.ts +785 -0
- package/node_modules/nanoid/LICENSE +20 -0
- package/node_modules/nanoid/README.md +38 -0
- package/node_modules/nanoid/async/index.browser.js +33 -0
- package/node_modules/nanoid/async/index.d.ts +56 -0
- package/node_modules/nanoid/async/index.js +34 -0
- package/node_modules/nanoid/async/index.native.js +25 -0
- package/node_modules/nanoid/bin/nanoid.js +46 -0
- package/node_modules/nanoid/index.browser.js +33 -0
- package/node_modules/nanoid/index.d.ts +91 -0
- package/node_modules/nanoid/index.js +45 -0
- package/node_modules/nanoid/nanoid.js +1 -0
- package/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/node_modules/nanoid/non-secure/index.js +20 -0
- package/node_modules/nanoid/package.json +46 -0
- package/node_modules/nanoid/url-alphabet/index.js +2 -0
- package/node_modules/ts-md5/LICENSE +21 -0
- package/node_modules/ts-md5/README.md +101 -0
- package/node_modules/ts-md5/dist/cjs/index.d.ts +3 -0
- package/node_modules/ts-md5/dist/cjs/index.js +10 -0
- package/node_modules/ts-md5/dist/cjs/index.js.map +1 -0
- package/node_modules/ts-md5/dist/cjs/md5.d.ts +70 -0
- package/node_modules/ts-md5/dist/cjs/md5.js +429 -0
- package/node_modules/ts-md5/dist/cjs/md5.js.map +1 -0
- package/node_modules/ts-md5/dist/cjs/md5_file_hasher.d.ts +25 -0
- package/node_modules/ts-md5/dist/cjs/md5_file_hasher.js +96 -0
- package/node_modules/ts-md5/dist/cjs/md5_file_hasher.js.map +1 -0
- package/node_modules/ts-md5/dist/cjs/parallel_hasher.d.ts +22 -0
- package/node_modules/ts-md5/dist/cjs/parallel_hasher.js +69 -0
- package/node_modules/ts-md5/dist/cjs/parallel_hasher.js.map +1 -0
- package/node_modules/ts-md5/dist/esm/index.d.ts +3 -0
- package/node_modules/ts-md5/dist/esm/index.js +4 -0
- package/node_modules/ts-md5/dist/esm/index.js.map +1 -0
- package/node_modules/ts-md5/dist/esm/md5.d.ts +70 -0
- package/node_modules/ts-md5/dist/esm/md5.js +421 -0
- package/node_modules/ts-md5/dist/esm/md5.js.map +1 -0
- package/node_modules/ts-md5/dist/esm/md5_file_hasher.d.ts +25 -0
- package/node_modules/ts-md5/dist/esm/md5_file_hasher.js +89 -0
- package/node_modules/ts-md5/dist/esm/md5_file_hasher.js.map +1 -0
- package/node_modules/ts-md5/dist/esm/parallel_hasher.d.ts +22 -0
- package/node_modules/ts-md5/dist/esm/parallel_hasher.js +64 -0
- package/node_modules/ts-md5/dist/esm/parallel_hasher.js.map +1 -0
- package/node_modules/ts-md5/dist/md5.js +429 -0
- package/node_modules/ts-md5/dist/md5_worker.js +523 -0
- package/node_modules/ts-md5/package.json +82 -0
- package/node_modules/ts-md5/src/index.ts +4 -0
- package/node_modules/ts-md5/src/md5.ts +473 -0
- package/node_modules/ts-md5/src/md5_file_hasher.ts +110 -0
- package/node_modules/ts-md5/src/parallel_hasher.ts +90 -0
- package/node_modules/ts-md5/src/worker.js +20 -0
- package/package.json +159 -0
- package/scripts/generate-index.js +52 -0
- package/setup.js +2 -0
- package/tfsec.json +4 -0
- package/util/compute.go +106 -0
- package/util/terraform.go +213 -0
- package/util/util.go +100 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
interface HasherState {
|
|
2
|
+
buffer: string;
|
|
3
|
+
buflen: number;
|
|
4
|
+
length: number;
|
|
5
|
+
state: number[];
|
|
6
|
+
}
|
|
7
|
+
export declare class Md5 {
|
|
8
|
+
/**
|
|
9
|
+
* Hash a UTF-8 string on the spot
|
|
10
|
+
* @param str String to hash
|
|
11
|
+
* @param raw Whether to return the value as an `Int32Array`
|
|
12
|
+
*/
|
|
13
|
+
static hashStr(str: string, raw?: false): string;
|
|
14
|
+
static hashStr(str: string, raw: true): Int32Array;
|
|
15
|
+
/**
|
|
16
|
+
* Hash a ASCII string on the spot
|
|
17
|
+
* @param str String to hash
|
|
18
|
+
* @param raw Whether to return the value as an `Int32Array`
|
|
19
|
+
*/
|
|
20
|
+
static hashAsciiStr(str: string, raw?: false): string;
|
|
21
|
+
static hashAsciiStr(str: string, raw: true): Int32Array;
|
|
22
|
+
private static stateIdentity;
|
|
23
|
+
private static buffer32Identity;
|
|
24
|
+
private static hexChars;
|
|
25
|
+
private static hexOut;
|
|
26
|
+
private static onePassHasher;
|
|
27
|
+
private static _hex;
|
|
28
|
+
private static _md5cycle;
|
|
29
|
+
private _dataLength;
|
|
30
|
+
private _bufferLength;
|
|
31
|
+
private _state;
|
|
32
|
+
private _buffer;
|
|
33
|
+
private _buffer8;
|
|
34
|
+
private _buffer32;
|
|
35
|
+
constructor();
|
|
36
|
+
/**
|
|
37
|
+
* Initialise buffer to be hashed
|
|
38
|
+
*/
|
|
39
|
+
start(): this;
|
|
40
|
+
/**
|
|
41
|
+
* Append a UTF-8 string to the hash buffer
|
|
42
|
+
* @param str String to append
|
|
43
|
+
*/
|
|
44
|
+
appendStr(str: string): this;
|
|
45
|
+
/**
|
|
46
|
+
* Append an ASCII string to the hash buffer
|
|
47
|
+
* @param str String to append
|
|
48
|
+
*/
|
|
49
|
+
appendAsciiStr(str: string): this;
|
|
50
|
+
/**
|
|
51
|
+
* Append a byte array to the hash buffer
|
|
52
|
+
* @param input array to append
|
|
53
|
+
*/
|
|
54
|
+
appendByteArray(input: Uint8Array): this;
|
|
55
|
+
/**
|
|
56
|
+
* Get the state of the hash buffer
|
|
57
|
+
*/
|
|
58
|
+
getState(): HasherState;
|
|
59
|
+
/**
|
|
60
|
+
* Override the current state of the hash buffer
|
|
61
|
+
* @param state New hash buffer state
|
|
62
|
+
*/
|
|
63
|
+
setState(state: HasherState): void;
|
|
64
|
+
/**
|
|
65
|
+
* Hash the current state of the hash buffer and return the result
|
|
66
|
+
* @param raw Whether to return the value as an `Int32Array`
|
|
67
|
+
*/
|
|
68
|
+
end(raw?: boolean): string | Int32Array | undefined;
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
|
|
4
|
+
TypeScript Md5
|
|
5
|
+
==============
|
|
6
|
+
|
|
7
|
+
Based on work by
|
|
8
|
+
* Joseph Myers: http://www.myersdaily.org/joseph/javascript/md5-text.html
|
|
9
|
+
* André Cruz: https://github.com/satazor/SparkMD5
|
|
10
|
+
* Raymond Hill: https://github.com/gorhill/yamd5.js
|
|
11
|
+
|
|
12
|
+
Effectively a TypeScrypt re-write of Raymond Hill JS Library
|
|
13
|
+
|
|
14
|
+
The MIT License (MIT)
|
|
15
|
+
|
|
16
|
+
Copyright (C) 2014 Raymond Hill
|
|
17
|
+
|
|
18
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
20
|
+
in the Software without restriction, including without limitation the rights
|
|
21
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
22
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
23
|
+
furnished to do so, subject to the following conditions:
|
|
24
|
+
|
|
25
|
+
The above copyright notice and this permission notice shall be included in
|
|
26
|
+
all copies or substantial portions of the Software.
|
|
27
|
+
|
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
30
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
31
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
32
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
33
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
34
|
+
THE SOFTWARE.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
DO WHAT YOU WANT TO PUBLIC LICENSE
|
|
39
|
+
Version 2, December 2004
|
|
40
|
+
|
|
41
|
+
Copyright (C) 2015 André Cruz <amdfcruz@gmail.com>
|
|
42
|
+
|
|
43
|
+
Everyone is permitted to copy and distribute verbatim or modified
|
|
44
|
+
copies of this license document, and changing it is allowed as long
|
|
45
|
+
as the name is changed.
|
|
46
|
+
|
|
47
|
+
DO WHAT YOU WANT TO PUBLIC LICENSE
|
|
48
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
49
|
+
|
|
50
|
+
0. You just DO WHAT YOU WANT TO.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
*/
|
|
54
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
+
exports.Md5 = void 0;
|
|
56
|
+
;
|
|
57
|
+
var Md5 = /** @class */ (function () {
|
|
58
|
+
function Md5() {
|
|
59
|
+
this._dataLength = 0;
|
|
60
|
+
this._bufferLength = 0;
|
|
61
|
+
this._state = new Int32Array(4);
|
|
62
|
+
this._buffer = new ArrayBuffer(68);
|
|
63
|
+
this._buffer8 = new Uint8Array(this._buffer, 0, 68);
|
|
64
|
+
this._buffer32 = new Uint32Array(this._buffer, 0, 17);
|
|
65
|
+
this.start();
|
|
66
|
+
}
|
|
67
|
+
Md5.hashStr = function (str, raw) {
|
|
68
|
+
if (raw === void 0) { raw = false; }
|
|
69
|
+
return this.onePassHasher
|
|
70
|
+
.start()
|
|
71
|
+
.appendStr(str)
|
|
72
|
+
.end(raw);
|
|
73
|
+
};
|
|
74
|
+
Md5.hashAsciiStr = function (str, raw) {
|
|
75
|
+
if (raw === void 0) { raw = false; }
|
|
76
|
+
return this.onePassHasher
|
|
77
|
+
.start()
|
|
78
|
+
.appendAsciiStr(str)
|
|
79
|
+
.end(raw);
|
|
80
|
+
};
|
|
81
|
+
Md5._hex = function (x) {
|
|
82
|
+
var hc = Md5.hexChars;
|
|
83
|
+
var ho = Md5.hexOut;
|
|
84
|
+
var n;
|
|
85
|
+
var offset;
|
|
86
|
+
var j;
|
|
87
|
+
var i;
|
|
88
|
+
for (i = 0; i < 4; i += 1) {
|
|
89
|
+
offset = i * 8;
|
|
90
|
+
n = x[i];
|
|
91
|
+
for (j = 0; j < 8; j += 2) {
|
|
92
|
+
ho[offset + 1 + j] = hc.charAt(n & 0x0F);
|
|
93
|
+
n >>>= 4;
|
|
94
|
+
ho[offset + 0 + j] = hc.charAt(n & 0x0F);
|
|
95
|
+
n >>>= 4;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return ho.join('');
|
|
99
|
+
};
|
|
100
|
+
Md5._md5cycle = function (x, k) {
|
|
101
|
+
var a = x[0];
|
|
102
|
+
var b = x[1];
|
|
103
|
+
var c = x[2];
|
|
104
|
+
var d = x[3];
|
|
105
|
+
// ff()
|
|
106
|
+
a += (b & c | ~b & d) + k[0] - 680876936 | 0;
|
|
107
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
108
|
+
d += (a & b | ~a & c) + k[1] - 389564586 | 0;
|
|
109
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
110
|
+
c += (d & a | ~d & b) + k[2] + 606105819 | 0;
|
|
111
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
112
|
+
b += (c & d | ~c & a) + k[3] - 1044525330 | 0;
|
|
113
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
114
|
+
a += (b & c | ~b & d) + k[4] - 176418897 | 0;
|
|
115
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
116
|
+
d += (a & b | ~a & c) + k[5] + 1200080426 | 0;
|
|
117
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
118
|
+
c += (d & a | ~d & b) + k[6] - 1473231341 | 0;
|
|
119
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
120
|
+
b += (c & d | ~c & a) + k[7] - 45705983 | 0;
|
|
121
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
122
|
+
a += (b & c | ~b & d) + k[8] + 1770035416 | 0;
|
|
123
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
124
|
+
d += (a & b | ~a & c) + k[9] - 1958414417 | 0;
|
|
125
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
126
|
+
c += (d & a | ~d & b) + k[10] - 42063 | 0;
|
|
127
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
128
|
+
b += (c & d | ~c & a) + k[11] - 1990404162 | 0;
|
|
129
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
130
|
+
a += (b & c | ~b & d) + k[12] + 1804603682 | 0;
|
|
131
|
+
a = (a << 7 | a >>> 25) + b | 0;
|
|
132
|
+
d += (a & b | ~a & c) + k[13] - 40341101 | 0;
|
|
133
|
+
d = (d << 12 | d >>> 20) + a | 0;
|
|
134
|
+
c += (d & a | ~d & b) + k[14] - 1502002290 | 0;
|
|
135
|
+
c = (c << 17 | c >>> 15) + d | 0;
|
|
136
|
+
b += (c & d | ~c & a) + k[15] + 1236535329 | 0;
|
|
137
|
+
b = (b << 22 | b >>> 10) + c | 0;
|
|
138
|
+
// gg()
|
|
139
|
+
a += (b & d | c & ~d) + k[1] - 165796510 | 0;
|
|
140
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
141
|
+
d += (a & c | b & ~c) + k[6] - 1069501632 | 0;
|
|
142
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
143
|
+
c += (d & b | a & ~b) + k[11] + 643717713 | 0;
|
|
144
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
145
|
+
b += (c & a | d & ~a) + k[0] - 373897302 | 0;
|
|
146
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
147
|
+
a += (b & d | c & ~d) + k[5] - 701558691 | 0;
|
|
148
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
149
|
+
d += (a & c | b & ~c) + k[10] + 38016083 | 0;
|
|
150
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
151
|
+
c += (d & b | a & ~b) + k[15] - 660478335 | 0;
|
|
152
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
153
|
+
b += (c & a | d & ~a) + k[4] - 405537848 | 0;
|
|
154
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
155
|
+
a += (b & d | c & ~d) + k[9] + 568446438 | 0;
|
|
156
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
157
|
+
d += (a & c | b & ~c) + k[14] - 1019803690 | 0;
|
|
158
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
159
|
+
c += (d & b | a & ~b) + k[3] - 187363961 | 0;
|
|
160
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
161
|
+
b += (c & a | d & ~a) + k[8] + 1163531501 | 0;
|
|
162
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
163
|
+
a += (b & d | c & ~d) + k[13] - 1444681467 | 0;
|
|
164
|
+
a = (a << 5 | a >>> 27) + b | 0;
|
|
165
|
+
d += (a & c | b & ~c) + k[2] - 51403784 | 0;
|
|
166
|
+
d = (d << 9 | d >>> 23) + a | 0;
|
|
167
|
+
c += (d & b | a & ~b) + k[7] + 1735328473 | 0;
|
|
168
|
+
c = (c << 14 | c >>> 18) + d | 0;
|
|
169
|
+
b += (c & a | d & ~a) + k[12] - 1926607734 | 0;
|
|
170
|
+
b = (b << 20 | b >>> 12) + c | 0;
|
|
171
|
+
// hh()
|
|
172
|
+
a += (b ^ c ^ d) + k[5] - 378558 | 0;
|
|
173
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
174
|
+
d += (a ^ b ^ c) + k[8] - 2022574463 | 0;
|
|
175
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
176
|
+
c += (d ^ a ^ b) + k[11] + 1839030562 | 0;
|
|
177
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
178
|
+
b += (c ^ d ^ a) + k[14] - 35309556 | 0;
|
|
179
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
180
|
+
a += (b ^ c ^ d) + k[1] - 1530992060 | 0;
|
|
181
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
182
|
+
d += (a ^ b ^ c) + k[4] + 1272893353 | 0;
|
|
183
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
184
|
+
c += (d ^ a ^ b) + k[7] - 155497632 | 0;
|
|
185
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
186
|
+
b += (c ^ d ^ a) + k[10] - 1094730640 | 0;
|
|
187
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
188
|
+
a += (b ^ c ^ d) + k[13] + 681279174 | 0;
|
|
189
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
190
|
+
d += (a ^ b ^ c) + k[0] - 358537222 | 0;
|
|
191
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
192
|
+
c += (d ^ a ^ b) + k[3] - 722521979 | 0;
|
|
193
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
194
|
+
b += (c ^ d ^ a) + k[6] + 76029189 | 0;
|
|
195
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
196
|
+
a += (b ^ c ^ d) + k[9] - 640364487 | 0;
|
|
197
|
+
a = (a << 4 | a >>> 28) + b | 0;
|
|
198
|
+
d += (a ^ b ^ c) + k[12] - 421815835 | 0;
|
|
199
|
+
d = (d << 11 | d >>> 21) + a | 0;
|
|
200
|
+
c += (d ^ a ^ b) + k[15] + 530742520 | 0;
|
|
201
|
+
c = (c << 16 | c >>> 16) + d | 0;
|
|
202
|
+
b += (c ^ d ^ a) + k[2] - 995338651 | 0;
|
|
203
|
+
b = (b << 23 | b >>> 9) + c | 0;
|
|
204
|
+
// ii()
|
|
205
|
+
a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;
|
|
206
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
207
|
+
d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;
|
|
208
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
209
|
+
c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;
|
|
210
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
211
|
+
b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;
|
|
212
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
213
|
+
a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;
|
|
214
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
215
|
+
d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;
|
|
216
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
217
|
+
c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;
|
|
218
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
219
|
+
b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;
|
|
220
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
221
|
+
a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;
|
|
222
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
223
|
+
d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;
|
|
224
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
225
|
+
c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;
|
|
226
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
227
|
+
b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;
|
|
228
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
229
|
+
a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;
|
|
230
|
+
a = (a << 6 | a >>> 26) + b | 0;
|
|
231
|
+
d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;
|
|
232
|
+
d = (d << 10 | d >>> 22) + a | 0;
|
|
233
|
+
c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;
|
|
234
|
+
c = (c << 15 | c >>> 17) + d | 0;
|
|
235
|
+
b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;
|
|
236
|
+
b = (b << 21 | b >>> 11) + c | 0;
|
|
237
|
+
x[0] = a + x[0] | 0;
|
|
238
|
+
x[1] = b + x[1] | 0;
|
|
239
|
+
x[2] = c + x[2] | 0;
|
|
240
|
+
x[3] = d + x[3] | 0;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Initialise buffer to be hashed
|
|
244
|
+
*/
|
|
245
|
+
Md5.prototype.start = function () {
|
|
246
|
+
this._dataLength = 0;
|
|
247
|
+
this._bufferLength = 0;
|
|
248
|
+
this._state.set(Md5.stateIdentity);
|
|
249
|
+
return this;
|
|
250
|
+
};
|
|
251
|
+
// Char to code point to to array conversion:
|
|
252
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt
|
|
253
|
+
// #Example.3A_Fixing_charCodeAt_to_handle_non-Basic-Multilingual-Plane_characters_if_their_presence_earlier_in_the_string_is_unknown
|
|
254
|
+
/**
|
|
255
|
+
* Append a UTF-8 string to the hash buffer
|
|
256
|
+
* @param str String to append
|
|
257
|
+
*/
|
|
258
|
+
Md5.prototype.appendStr = function (str) {
|
|
259
|
+
var buf8 = this._buffer8;
|
|
260
|
+
var buf32 = this._buffer32;
|
|
261
|
+
var bufLen = this._bufferLength;
|
|
262
|
+
var code;
|
|
263
|
+
var i;
|
|
264
|
+
for (i = 0; i < str.length; i += 1) {
|
|
265
|
+
code = str.charCodeAt(i);
|
|
266
|
+
if (code < 128) {
|
|
267
|
+
buf8[bufLen++] = code;
|
|
268
|
+
}
|
|
269
|
+
else if (code < 0x800) {
|
|
270
|
+
buf8[bufLen++] = (code >>> 6) + 0xC0;
|
|
271
|
+
buf8[bufLen++] = code & 0x3F | 0x80;
|
|
272
|
+
}
|
|
273
|
+
else if (code < 0xD800 || code > 0xDBFF) {
|
|
274
|
+
buf8[bufLen++] = (code >>> 12) + 0xE0;
|
|
275
|
+
buf8[bufLen++] = (code >>> 6 & 0x3F) | 0x80;
|
|
276
|
+
buf8[bufLen++] = (code & 0x3F) | 0x80;
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
code = ((code - 0xD800) * 0x400) + (str.charCodeAt(++i) - 0xDC00) + 0x10000;
|
|
280
|
+
if (code > 0x10FFFF) {
|
|
281
|
+
throw new Error('Unicode standard supports code points up to U+10FFFF');
|
|
282
|
+
}
|
|
283
|
+
buf8[bufLen++] = (code >>> 18) + 0xF0;
|
|
284
|
+
buf8[bufLen++] = (code >>> 12 & 0x3F) | 0x80;
|
|
285
|
+
buf8[bufLen++] = (code >>> 6 & 0x3F) | 0x80;
|
|
286
|
+
buf8[bufLen++] = (code & 0x3F) | 0x80;
|
|
287
|
+
}
|
|
288
|
+
if (bufLen >= 64) {
|
|
289
|
+
this._dataLength += 64;
|
|
290
|
+
Md5._md5cycle(this._state, buf32);
|
|
291
|
+
bufLen -= 64;
|
|
292
|
+
buf32[0] = buf32[16];
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
this._bufferLength = bufLen;
|
|
296
|
+
return this;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Append an ASCII string to the hash buffer
|
|
300
|
+
* @param str String to append
|
|
301
|
+
*/
|
|
302
|
+
Md5.prototype.appendAsciiStr = function (str) {
|
|
303
|
+
var buf8 = this._buffer8;
|
|
304
|
+
var buf32 = this._buffer32;
|
|
305
|
+
var bufLen = this._bufferLength;
|
|
306
|
+
var i;
|
|
307
|
+
var j = 0;
|
|
308
|
+
for (;;) {
|
|
309
|
+
i = Math.min(str.length - j, 64 - bufLen);
|
|
310
|
+
while (i--) {
|
|
311
|
+
buf8[bufLen++] = str.charCodeAt(j++);
|
|
312
|
+
}
|
|
313
|
+
if (bufLen < 64) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
this._dataLength += 64;
|
|
317
|
+
Md5._md5cycle(this._state, buf32);
|
|
318
|
+
bufLen = 0;
|
|
319
|
+
}
|
|
320
|
+
this._bufferLength = bufLen;
|
|
321
|
+
return this;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Append a byte array to the hash buffer
|
|
325
|
+
* @param input array to append
|
|
326
|
+
*/
|
|
327
|
+
Md5.prototype.appendByteArray = function (input) {
|
|
328
|
+
var buf8 = this._buffer8;
|
|
329
|
+
var buf32 = this._buffer32;
|
|
330
|
+
var bufLen = this._bufferLength;
|
|
331
|
+
var i;
|
|
332
|
+
var j = 0;
|
|
333
|
+
for (;;) {
|
|
334
|
+
i = Math.min(input.length - j, 64 - bufLen);
|
|
335
|
+
while (i--) {
|
|
336
|
+
buf8[bufLen++] = input[j++];
|
|
337
|
+
}
|
|
338
|
+
if (bufLen < 64) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
this._dataLength += 64;
|
|
342
|
+
Md5._md5cycle(this._state, buf32);
|
|
343
|
+
bufLen = 0;
|
|
344
|
+
}
|
|
345
|
+
this._bufferLength = bufLen;
|
|
346
|
+
return this;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Get the state of the hash buffer
|
|
350
|
+
*/
|
|
351
|
+
Md5.prototype.getState = function () {
|
|
352
|
+
var s = this._state;
|
|
353
|
+
return {
|
|
354
|
+
buffer: String.fromCharCode.apply(null, Array.from(this._buffer8)),
|
|
355
|
+
buflen: this._bufferLength,
|
|
356
|
+
length: this._dataLength,
|
|
357
|
+
state: [s[0], s[1], s[2], s[3]]
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Override the current state of the hash buffer
|
|
362
|
+
* @param state New hash buffer state
|
|
363
|
+
*/
|
|
364
|
+
Md5.prototype.setState = function (state) {
|
|
365
|
+
var buf = state.buffer;
|
|
366
|
+
var x = state.state;
|
|
367
|
+
var s = this._state;
|
|
368
|
+
var i;
|
|
369
|
+
this._dataLength = state.length;
|
|
370
|
+
this._bufferLength = state.buflen;
|
|
371
|
+
s[0] = x[0];
|
|
372
|
+
s[1] = x[1];
|
|
373
|
+
s[2] = x[2];
|
|
374
|
+
s[3] = x[3];
|
|
375
|
+
for (i = 0; i < buf.length; i += 1) {
|
|
376
|
+
this._buffer8[i] = buf.charCodeAt(i);
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Hash the current state of the hash buffer and return the result
|
|
381
|
+
* @param raw Whether to return the value as an `Int32Array`
|
|
382
|
+
*/
|
|
383
|
+
Md5.prototype.end = function (raw) {
|
|
384
|
+
if (raw === void 0) { raw = false; }
|
|
385
|
+
var bufLen = this._bufferLength;
|
|
386
|
+
var buf8 = this._buffer8;
|
|
387
|
+
var buf32 = this._buffer32;
|
|
388
|
+
var i = (bufLen >> 2) + 1;
|
|
389
|
+
this._dataLength += bufLen;
|
|
390
|
+
var dataBitsLen = this._dataLength * 8;
|
|
391
|
+
buf8[bufLen] = 0x80;
|
|
392
|
+
buf8[bufLen + 1] = buf8[bufLen + 2] = buf8[bufLen + 3] = 0;
|
|
393
|
+
buf32.set(Md5.buffer32Identity.subarray(i), i);
|
|
394
|
+
if (bufLen > 55) {
|
|
395
|
+
Md5._md5cycle(this._state, buf32);
|
|
396
|
+
buf32.set(Md5.buffer32Identity);
|
|
397
|
+
}
|
|
398
|
+
// Do the final computation based on the tail and length
|
|
399
|
+
// Beware that the final length may not fit in 32 bits so we take care of that
|
|
400
|
+
if (dataBitsLen <= 0xFFFFFFFF) {
|
|
401
|
+
buf32[14] = dataBitsLen;
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
var matches = dataBitsLen.toString(16).match(/(.*?)(.{0,8})$/);
|
|
405
|
+
if (matches === null) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
var lo = parseInt(matches[2], 16);
|
|
409
|
+
var hi = parseInt(matches[1], 16) || 0;
|
|
410
|
+
buf32[14] = lo;
|
|
411
|
+
buf32[15] = hi;
|
|
412
|
+
}
|
|
413
|
+
Md5._md5cycle(this._state, buf32);
|
|
414
|
+
return raw ? this._state : Md5._hex(this._state);
|
|
415
|
+
};
|
|
416
|
+
// Private Static Variables
|
|
417
|
+
Md5.stateIdentity = new Int32Array([1732584193, -271733879, -1732584194, 271733878]);
|
|
418
|
+
Md5.buffer32Identity = new Int32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
|
419
|
+
Md5.hexChars = '0123456789abcdef';
|
|
420
|
+
Md5.hexOut = [];
|
|
421
|
+
// Permanent instance is to use for one-call hashing
|
|
422
|
+
Md5.onePassHasher = new Md5();
|
|
423
|
+
return Md5;
|
|
424
|
+
}());
|
|
425
|
+
exports.Md5 = Md5;
|
|
426
|
+
if (Md5.hashStr('hello') !== '5d41402abc4b2a76b9719d911017c592') {
|
|
427
|
+
throw new Error('Md5 self test failed.');
|
|
428
|
+
}
|
|
429
|
+
//# sourceMappingURL=md5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"md5.js","sourceRoot":"","sources":["../../src/md5.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDE;;;AAQD,CAAC;AAEF;IAmNI;QARQ,gBAAW,GAAG,CAAC,CAAC;QAChB,kBAAa,GAAG,CAAC,CAAC;QAElB,WAAM,GAAe,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;QACvC,YAAO,GAAgB,IAAI,WAAW,CAAC,EAAE,CAAC,CAAC;QAK/C,IAAI,CAAC,QAAQ,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;IA9Ma,WAAO,GAArB,UAAsB,GAAW,EAAE,GAAoB;QAApB,oBAAA,EAAA,WAAoB;QACnD,OAAO,IAAI,CAAC,aAAa;aACpB,KAAK,EAAE;aACP,SAAS,CAAC,GAAG,CAAC;aACd,GAAG,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IASa,gBAAY,GAA1B,UAA2B,GAAW,EAAE,GAAoB;QAApB,oBAAA,EAAA,WAAoB;QACxD,OAAO,IAAI,CAAC,aAAa;aACpB,KAAK,EAAE;aACP,cAAc,CAAC,GAAG,CA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,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IAzXG,2BAA2B;IAChB,iBAAa,GAAG,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;IACjF,oBAAgB,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACpF,YAAQ,GAAG,kBAAkB,CAAC;IAC9B,UAAM,GAAa,EAAE,CAAC;IAErC,oDAAoD;IACrC,iBAAa,GAAG,IAAI,GAAG,EAAE,CAAC;IAmX7C,UAAC;CAAA,AAvZD,IAuZC;AAvZY,kBAAG;AAyZhB,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,kCAAkC,EAAE;IAC7D,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface HashingResponse {
|
|
2
|
+
success: boolean;
|
|
3
|
+
result?: string | Int32Array;
|
|
4
|
+
}
|
|
5
|
+
export declare class Md5FileHasher {
|
|
6
|
+
private _callback;
|
|
7
|
+
private _async;
|
|
8
|
+
private _partSize;
|
|
9
|
+
private _reader;
|
|
10
|
+
private _md5;
|
|
11
|
+
private _part;
|
|
12
|
+
private _blob;
|
|
13
|
+
constructor(_callback: (r: HashingResponse) => void, // Callback to return the result
|
|
14
|
+
_async?: boolean, // Async version is not always available in a web worker
|
|
15
|
+
_partSize?: number);
|
|
16
|
+
/**
|
|
17
|
+
* Hash a blob of data in the worker
|
|
18
|
+
* @param blob Data to hash
|
|
19
|
+
*/
|
|
20
|
+
hash(blob: any): void;
|
|
21
|
+
private _fail;
|
|
22
|
+
private _hashData;
|
|
23
|
+
private _processPart;
|
|
24
|
+
private _configureReader;
|
|
25
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Md5FileHasher = void 0;
|
|
4
|
+
var md5_1 = require("./md5");
|
|
5
|
+
// Hashes any blob
|
|
6
|
+
var Md5FileHasher = /** @class */ (function () {
|
|
7
|
+
function Md5FileHasher(_callback, // Callback to return the result
|
|
8
|
+
_async, // Async version is not always available in a web worker
|
|
9
|
+
_partSize) {
|
|
10
|
+
if (_async === void 0) { _async = true; }
|
|
11
|
+
if (_partSize === void 0) { _partSize = 1048576; }
|
|
12
|
+
this._callback = _callback;
|
|
13
|
+
this._async = _async;
|
|
14
|
+
this._partSize = _partSize;
|
|
15
|
+
this._configureReader();
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hash a blob of data in the worker
|
|
19
|
+
* @param blob Data to hash
|
|
20
|
+
*/
|
|
21
|
+
Md5FileHasher.prototype.hash = function (blob) {
|
|
22
|
+
var self = this;
|
|
23
|
+
self._blob = blob;
|
|
24
|
+
// self._length = Math.ceil(blob.size / self._partSize);
|
|
25
|
+
self._part = 0;
|
|
26
|
+
self._md5 = new md5_1.Md5();
|
|
27
|
+
self._processPart();
|
|
28
|
+
};
|
|
29
|
+
Md5FileHasher.prototype._fail = function () {
|
|
30
|
+
this._callback({
|
|
31
|
+
success: false,
|
|
32
|
+
result: 'data read failed'
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
Md5FileHasher.prototype._hashData = function (e) {
|
|
36
|
+
var self = this;
|
|
37
|
+
self._md5.appendByteArray(new Uint8Array(e.target.result));
|
|
38
|
+
if (self._part * self._partSize >= self._blob.size) {
|
|
39
|
+
self._callback({
|
|
40
|
+
success: true,
|
|
41
|
+
result: self._md5.end()
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
self._processPart();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
Md5FileHasher.prototype._processPart = function () {
|
|
49
|
+
var self = this;
|
|
50
|
+
var endbyte = 0;
|
|
51
|
+
var current_part;
|
|
52
|
+
self._part += 1;
|
|
53
|
+
if (self._blob.size > self._partSize) { // If blob bigger then part_size we will slice it up
|
|
54
|
+
endbyte = self._part * self._partSize;
|
|
55
|
+
if (endbyte > self._blob.size) {
|
|
56
|
+
endbyte = self._blob.size;
|
|
57
|
+
}
|
|
58
|
+
current_part = self._blob.slice((self._part - 1) * self._partSize, endbyte);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
current_part = self._blob;
|
|
62
|
+
}
|
|
63
|
+
if (self._async) {
|
|
64
|
+
self._reader.readAsArrayBuffer(current_part);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
setTimeout(function () {
|
|
68
|
+
try {
|
|
69
|
+
self._hashData({
|
|
70
|
+
target: {
|
|
71
|
+
result: self._reader.readAsArrayBuffer(current_part)
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
self._fail();
|
|
77
|
+
}
|
|
78
|
+
}, 0);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
Md5FileHasher.prototype._configureReader = function () {
|
|
82
|
+
var self = this;
|
|
83
|
+
if (self._async) {
|
|
84
|
+
self._reader = new FileReader();
|
|
85
|
+
self._reader.onload = self._hashData.bind(self);
|
|
86
|
+
self._reader.onerror = self._fail.bind(self);
|
|
87
|
+
self._reader.onabort = self._fail.bind(self);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
self._reader = new FileReaderSync();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return Md5FileHasher;
|
|
94
|
+
}());
|
|
95
|
+
exports.Md5FileHasher = Md5FileHasher;
|
|
96
|
+
//# sourceMappingURL=md5_file_hasher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"md5_file_hasher.js","sourceRoot":"","sources":["../../src/md5_file_hasher.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAS1B,kBAAkB;AAClB;IASI,uBACY,SAAuC,EAAK,gCAAgC;IAC5E,MAAsB,EAAsB,wDAAwD;IACpG,SAA2B;QAD3B,uBAAA,EAAA,aAAsB;QACtB,0BAAA,EAAA,mBAA2B;QAF3B,cAAS,GAAT,SAAS,CAA8B;QACvC,WAAM,GAAN,MAAM,CAAgB;QACtB,cAAS,GAAT,SAAS,CAAkB;QAEnC,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,4BAAI,GAAX,UAAY,IAAS;QACjB,IAAM,IAAI,GAAG,IAAI,CAAC;QAElB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,wDAAwD;QACxD,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,SAAG,EAAE,CAAC;QACtB,IAAI,CAAC,YAAY,EAAE,CAAC;IACxB,CAAC;IAGO,6BAAK,GAAb;QACI,IAAI,CAAC,SAAS,CAAC;YACX,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,kBAAkB;SAC7B,CAAC,CAAC;IACP,CAAC;IAEO,iCAAS,GAAjB,UAAkB,CAAM;QACpB,IAAI,IAAI,GAAG,IAAI,CAAC;QAEhB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3D,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;YAChD,IAAI,CAAC,SAAS,CAAC;gBACX,O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