@epilot360/icons 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/index.js.map +1 -1
- package/package.json +41 -8
- package/react/Account/index.d.ts +4 -0
- package/react/Account/index.js +41 -0
- package/react/Account/index.js.map +1 -0
- package/react/Add/index.d.ts +4 -0
- package/react/Add/index.js +41 -0
- package/react/Add/index.js.map +1 -0
- package/react/AddCircle/index.d.ts +4 -0
- package/react/AddCircle/index.js +41 -0
- package/react/AddCircle/index.js.map +1 -0
- package/react/Browse/index.d.ts +4 -0
- package/react/Browse/index.js +27 -0
- package/react/Browse/index.js.map +1 -0
- package/react/Calendar/index.d.ts +4 -0
- package/react/Calendar/index.js +41 -0
- package/react/Calendar/index.js.map +1 -0
- package/react/Cancel/index.d.ts +4 -0
- package/react/Cancel/index.js +41 -0
- package/react/Cancel/index.js.map +1 -0
- package/react/Check/index.d.ts +4 -0
- package/react/Check/index.js +41 -0
- package/react/Check/index.js.map +1 -0
- package/react/CheckCircle/index.d.ts +4 -0
- package/react/CheckCircle/index.js +41 -0
- package/react/CheckCircle/index.js.map +1 -0
- package/react/Close/index.d.ts +4 -0
- package/react/Close/index.js +41 -0
- package/react/Close/index.js.map +1 -0
- package/react/Compass/index.d.ts +4 -0
- package/react/Compass/index.js +27 -0
- package/react/Compass/index.js.map +1 -0
- package/react/Contact/index.d.ts +4 -0
- package/react/Contact/index.js +41 -0
- package/react/Contact/index.js.map +1 -0
- package/react/ContentCopy/index.d.ts +4 -0
- package/react/ContentCopy/index.js +41 -0
- package/react/ContentCopy/index.js.map +1 -0
- package/react/Contract/index.d.ts +4 -0
- package/react/Contract/index.js +41 -0
- package/react/Contract/index.js.map +1 -0
- package/react/Dashboard/index.d.ts +4 -0
- package/react/Dashboard/index.js +41 -0
- package/react/Dashboard/index.js.map +1 -0
- package/react/DataObject/index.d.ts +4 -0
- package/react/DataObject/index.js +41 -0
- package/react/DataObject/index.js.map +1 -0
- package/react/Delete/index.d.ts +4 -0
- package/react/Delete/index.js +41 -0
- package/react/Delete/index.js.map +1 -0
- package/react/Design/index.d.ts +4 -0
- package/react/Design/index.js +41 -0
- package/react/Design/index.js.map +1 -0
- package/react/Document/index.d.ts +4 -0
- package/react/Document/index.js +41 -0
- package/react/Document/index.js.map +1 -0
- package/react/Draft/index.d.ts +4 -0
- package/react/Draft/index.js +41 -0
- package/react/Draft/index.js.map +1 -0
- package/react/DragIndicator/index.d.ts +4 -0
- package/react/DragIndicator/index.js +41 -0
- package/react/DragIndicator/index.js.map +1 -0
- package/react/Edit/index.d.ts +4 -0
- package/react/Edit/index.js +41 -0
- package/react/Edit/index.js.map +1 -0
- package/react/Entity/index.d.ts +4 -0
- package/react/Entity/index.js +41 -0
- package/react/Entity/index.js.map +1 -0
- package/react/Epilot/index.d.ts +4 -0
- package/react/Epilot/index.js +40 -0
- package/react/Epilot/index.js.map +1 -0
- package/react/EpilotIcon.d.ts +110 -0
- package/react/EpilotIcon.js +130 -0
- package/react/EpilotIcon.js.map +1 -0
- package/react/ExpandLess/index.d.ts +4 -0
- package/react/ExpandLess/index.js +41 -0
- package/react/ExpandLess/index.js.map +1 -0
- package/react/ExpandMore/index.d.ts +4 -0
- package/react/ExpandMore/index.js +41 -0
- package/react/ExpandMore/index.js.map +1 -0
- package/react/Explore/index.d.ts +4 -0
- package/react/Explore/index.js +41 -0
- package/react/Explore/index.js.map +1 -0
- package/react/File/index.d.ts +4 -0
- package/react/File/index.js +41 -0
- package/react/File/index.js.map +1 -0
- package/react/Folder/index.d.ts +4 -0
- package/react/Folder/index.js +41 -0
- package/react/Folder/index.js.map +1 -0
- package/react/Help/index.d.ts +4 -0
- package/react/Help/index.js +41 -0
- package/react/Help/index.js.map +1 -0
- package/react/Info/index.d.ts +4 -0
- package/react/Info/index.js +41 -0
- package/react/Info/index.js.map +1 -0
- package/react/Journey/index.d.ts +4 -0
- package/react/Journey/index.js +41 -0
- package/react/Journey/index.js.map +1 -0
- package/react/Mail/index.d.ts +4 -0
- package/react/Mail/index.js +41 -0
- package/react/Mail/index.js.map +1 -0
- package/react/Menu/index.d.ts +4 -0
- package/react/Menu/index.js +41 -0
- package/react/Menu/index.js.map +1 -0
- package/react/Message/index.d.ts +4 -0
- package/react/Message/index.js +41 -0
- package/react/Message/index.js.map +1 -0
- package/react/Meter/index.d.ts +4 -0
- package/react/Meter/index.js +41 -0
- package/react/Meter/index.js.map +1 -0
- package/react/Notifications/index.d.ts +4 -0
- package/react/Notifications/index.js +41 -0
- package/react/Notifications/index.js.map +1 -0
- package/react/OpenInNew/index.d.ts +4 -0
- package/react/OpenInNew/index.js +41 -0
- package/react/OpenInNew/index.js.map +1 -0
- package/react/Opportunity/index.d.ts +4 -0
- package/react/Opportunity/index.js +41 -0
- package/react/Opportunity/index.js.map +1 -0
- package/react/Order/index.d.ts +4 -0
- package/react/Order/index.js +41 -0
- package/react/Order/index.js.map +1 -0
- package/react/Partner/index.d.ts +4 -0
- package/react/Partner/index.js +41 -0
- package/react/Partner/index.js.map +1 -0
- package/react/Price/index.d.ts +4 -0
- package/react/Price/index.js +41 -0
- package/react/Price/index.js.map +1 -0
- package/react/Product/index.d.ts +4 -0
- package/react/Product/index.js +41 -0
- package/react/Product/index.js.map +1 -0
- package/react/Refresh/index.d.ts +4 -0
- package/react/Refresh/index.js +41 -0
- package/react/Refresh/index.js.map +1 -0
- package/react/Search/index.d.ts +4 -0
- package/react/Search/index.js +41 -0
- package/react/Search/index.js.map +1 -0
- package/react/Settings/index.d.ts +4 -0
- package/react/Settings/index.js +41 -0
- package/react/Settings/index.js.map +1 -0
- package/react/Share/index.d.ts +4 -0
- package/react/Share/index.js +41 -0
- package/react/Share/index.js.map +1 -0
- package/react/Submission/index.d.ts +4 -0
- package/react/Submission/index.js +41 -0
- package/react/Submission/index.js.map +1 -0
- package/react/Tax/index.d.ts +4 -0
- package/react/Tax/index.js +41 -0
- package/react/Tax/index.js.map +1 -0
- package/react/Templates/index.d.ts +4 -0
- package/react/Templates/index.js +41 -0
- package/react/Templates/index.js.map +1 -0
- package/react/Visibility/index.d.ts +4 -0
- package/react/Visibility/index.js +41 -0
- package/react/Visibility/index.js.map +1 -0
- package/react/VisibilityOff/index.d.ts +4 -0
- package/react/VisibilityOff/index.js +41 -0
- package/react/VisibilityOff/index.js.map +1 -0
- package/react/Warning/index.d.ts +4 -0
- package/react/Warning/index.js +41 -0
- package/react/Warning/index.js.map +1 -0
- package/react/Webhook/index.d.ts +4 -0
- package/react/Webhook/index.js +41 -0
- package/react/Webhook/index.js.map +1 -0
- package/react/Workflow/index.d.ts +4 -0
- package/react/Workflow/index.js +41 -0
- package/react/Workflow/index.js.map +1 -0
- package/react/index.d.ts +50 -0
- package/react/index.js +50 -0
- package/react/index.js.map +1 -1
- package/react/types.d.ts +8 -0
- package/react/types.js +10 -0
- package/react/types.js.map +1 -0
- package/src/stories/Readme.mdx +53 -0
- package/iac/node_modules/@balena/dockerignore/LICENSE.md +0 -206
- package/iac/node_modules/@balena/dockerignore/README.md +0 -261
- package/iac/node_modules/@cspotcode/source-map-support/LICENSE.md +0 -21
- package/iac/node_modules/@cspotcode/source-map-support/README.md +0 -289
- package/iac/node_modules/@jridgewell/resolve-uri/LICENSE +0 -19
- package/iac/node_modules/@jridgewell/resolve-uri/README.md +0 -40
- package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +0 -1
- package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +0 -1
- package/iac/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
- package/iac/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
- package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -1
- package/iac/node_modules/@jridgewell/trace-mapping/LICENSE +0 -19
- package/iac/node_modules/@jridgewell/trace-mapping/README.md +0 -193
- package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +0 -1
- package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +0 -1
- package/iac/node_modules/@tsconfig/node10/LICENSE +0 -21
- package/iac/node_modules/@tsconfig/node10/README.md +0 -40
- package/iac/node_modules/@tsconfig/node12/LICENSE +0 -21
- package/iac/node_modules/@tsconfig/node12/README.md +0 -40
- package/iac/node_modules/@tsconfig/node14/LICENSE +0 -21
- package/iac/node_modules/@tsconfig/node14/README.md +0 -40
- package/iac/node_modules/@tsconfig/node16/LICENSE +0 -21
- package/iac/node_modules/@tsconfig/node16/README.md +0 -40
- package/iac/node_modules/@types/jest/LICENSE +0 -21
- package/iac/node_modules/@types/jest/README.md +0 -17
- package/iac/node_modules/@types/node/LICENSE +0 -21
- package/iac/node_modules/@types/node/README.md +0 -16
- package/iac/node_modules/@types/prettier/LICENSE +0 -21
- package/iac/node_modules/@types/prettier/README.md +0 -16
- package/iac/node_modules/acorn/LICENSE +0 -21
- package/iac/node_modules/acorn/README.md +0 -273
- package/iac/node_modules/acorn-walk/LICENSE +0 -21
- package/iac/node_modules/acorn-walk/README.md +0 -126
- package/iac/node_modules/ansi-regex/license +0 -9
- package/iac/node_modules/ansi-regex/readme.md +0 -78
- package/iac/node_modules/ansi-styles/license +0 -9
- package/iac/node_modules/ansi-styles/readme.md +0 -144
- package/iac/node_modules/arg/LICENSE.md +0 -21
- package/iac/node_modules/arg/README.md +0 -280
- package/iac/node_modules/at-least-node/LICENSE +0 -6
- package/iac/node_modules/at-least-node/README.md +0 -25
- package/iac/node_modules/aws-cdk/LICENSE +0 -201
- package/iac/node_modules/aws-cdk/README.md +0 -742
- package/iac/node_modules/aws-cdk/lib/init-templates/LICENSE +0 -16
- package/iac/node_modules/aws-cdk/lib/init-templates/app/csharp/README.md +0 -14
- package/iac/node_modules/aws-cdk/lib/init-templates/app/fsharp/README.md +0 -18
- package/iac/node_modules/aws-cdk/lib/init-templates/app/go/README.md +0 -12
- package/iac/node_modules/aws-cdk/lib/init-templates/app/java/README.md +0 -18
- package/iac/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md +0 -12
- package/iac/node_modules/aws-cdk/lib/init-templates/app/python/README.template.md +0 -58
- package/iac/node_modules/aws-cdk/lib/init-templates/app/typescript/README.md +0 -14
- package/iac/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md +0 -12
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/csharp/README.template.md +0 -19
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/fsharp/README.template.md +0 -20
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/go/README.md +0 -12
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/java/README.template.md +0 -19
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md +0 -13
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/python/README.template.md +0 -65
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/typescript/README.template.md +0 -15
- package/iac/node_modules/aws-cdk/test/integ/cli/README.md +0 -48
- package/iac/node_modules/aws-cdk/test/integ/cli-regression-patches/README.md +0 -54
- package/iac/node_modules/aws-cdk-lib/LICENSE +0 -201
- package/iac/node_modules/aws-cdk-lib/README.md +0 -1119
- package/iac/node_modules/aws-cdk-lib/alexa-ask/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/assertions/README.md +0 -571
- package/iac/node_modules/aws-cdk-lib/assets/README.md +0 -4
- package/iac/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-acmpca/README.md +0 -59
- package/iac/node_modules/aws-cdk-lib/aws-amazonmq/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-amplify/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-amplifyuibuilder/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-apigateway/README.md +0 -1335
- package/iac/node_modules/aws-cdk-lib/aws-apigatewayv2/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-appconfig/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-appflow/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-appintegrations/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-applicationautoscaling/README.md +0 -246
- package/iac/node_modules/aws-cdk-lib/aws-applicationinsights/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-appmesh/README.md +0 -883
- package/iac/node_modules/aws-cdk-lib/aws-apprunner/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-appstream/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-appsync/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-aps/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-athena/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-auditmanager/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling/README.md +0 -540
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling-common/README.md +0 -8
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling-hooktargets/README.md +0 -18
- package/iac/node_modules/aws-cdk-lib/aws-autoscalingplans/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-backup/README.md +0 -210
- package/iac/node_modules/aws-cdk-lib/aws-batch/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-billingconductor/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-budgets/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-cassandra/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-ce/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/README.md +0 -166
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/README.md +0 -2
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt +0 -8
- package/iac/node_modules/aws-cdk-lib/aws-chatbot/README.md +0 -44
- package/iac/node_modules/aws-cdk-lib/aws-cloud9/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-cloudformation/README.md +0 -4
- package/iac/node_modules/aws-cdk-lib/aws-cloudfront/README.md +0 -973
- package/iac/node_modules/aws-cdk-lib/aws-cloudfront-origins/README.md +0 -126
- package/iac/node_modules/aws-cdk-lib/aws-cloudtrail/README.md +0 -189
- package/iac/node_modules/aws-cdk-lib/aws-cloudwatch/README.md +0 -579
- package/iac/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md +0 -43
- package/iac/node_modules/aws-cdk-lib/aws-codeartifact/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-codebuild/README.md +0 -759
- package/iac/node_modules/aws-cdk-lib/aws-codecommit/README.md +0 -85
- package/iac/node_modules/aws-cdk-lib/aws-codedeploy/README.md +0 -319
- package/iac/node_modules/aws-cdk-lib/aws-codeguruprofiler/README.md +0 -37
- package/iac/node_modules/aws-cdk-lib/aws-codegurureviewer/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-codepipeline/README.md +0 -481
- package/iac/node_modules/aws-cdk-lib/aws-codepipeline-actions/README.md +0 -1203
- package/iac/node_modules/aws-cdk-lib/aws-codestar/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-codestarconnections/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-codestarnotifications/README.md +0 -68
- package/iac/node_modules/aws-cdk-lib/aws-cognito/README.md +0 -843
- package/iac/node_modules/aws-cdk-lib/aws-config/README.md +0 -218
- package/iac/node_modules/aws-cdk-lib/aws-connect/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-controltower/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-cur/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-customerprofiles/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-databrew/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-datapipeline/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-datasync/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-dax/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-detective/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-devopsguru/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-directoryservice/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-dlm/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-dms/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-docdb/README.md +0 -153
- package/iac/node_modules/aws-cdk-lib/aws-dynamodb/README.md +0 -200
- package/iac/node_modules/aws-cdk-lib/aws-ec2/README.md +0 -1514
- package/iac/node_modules/aws-cdk-lib/aws-ecr/README.md +0 -110
- package/iac/node_modules/aws-cdk-lib/aws-ecr-assets/README.md +0 -167
- package/iac/node_modules/aws-cdk-lib/aws-ecs/README.md +0 -1225
- package/iac/node_modules/aws-cdk-lib/aws-ecs-patterns/README.md +0 -980
- package/iac/node_modules/aws-cdk-lib/aws-efs/README.md +0 -154
- package/iac/node_modules/aws-cdk-lib/aws-eks/README.md +0 -1450
- package/iac/node_modules/aws-cdk-lib/aws-elasticache/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-elasticbeanstalk/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancing/README.md +0 -40
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +0 -569
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-actions/README.md +0 -68
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-targets/README.md +0 -4
- package/iac/node_modules/aws-cdk-lib/aws-elasticsearch/README.md +0 -441
- package/iac/node_modules/aws-cdk-lib/aws-emr/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-emrcontainers/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-emrserverless/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-events/README.md +0 -249
- package/iac/node_modules/aws-cdk-lib/aws-events-targets/README.md +0 -339
- package/iac/node_modules/aws-cdk-lib/aws-eventschemas/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-evidently/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-finspace/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-fis/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-fms/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-forecast/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-frauddetector/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-fsx/README.md +0 -200
- package/iac/node_modules/aws-cdk-lib/aws-gamelift/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md +0 -182
- package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator-endpoints/README.md +0 -10
- package/iac/node_modules/aws-cdk-lib/aws-glue/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-greengrass/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-greengrassv2/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-groundstation/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-guardduty/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-healthlake/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iam/README.md +0 -509
- package/iac/node_modules/aws-cdk-lib/aws-imagebuilder/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-inspector/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-inspectorv2/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iot/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-iot1click/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iotanalytics/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iotcoredeviceadvisor/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iotevents/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-iotfleethub/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iotsitewise/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iotthingsgraph/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iottwinmaker/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-iotwireless/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-ivs/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-kafkaconnect/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-kendra/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-kinesis/README.md +0 -188
- package/iac/node_modules/aws-cdk-lib/aws-kinesisanalytics/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-kinesisanalyticsv2/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-kinesisfirehose/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-kinesisvideo/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-kms/README.md +0 -209
- package/iac/node_modules/aws-cdk-lib/aws-lakeformation/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-lambda/README.md +0 -985
- package/iac/node_modules/aws-cdk-lib/aws-lambda-destinations/README.md +0 -147
- package/iac/node_modules/aws-cdk-lib/aws-lambda-event-sources/README.md +0 -281
- package/iac/node_modules/aws-cdk-lib/aws-lambda-nodejs/README.md +0 -317
- package/iac/node_modules/aws-cdk-lib/aws-lex/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-licensemanager/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-lightsail/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-location/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-logs/README.md +0 -322
- package/iac/node_modules/aws-cdk-lib/aws-logs-destinations/README.md +0 -7
- package/iac/node_modules/aws-cdk-lib/aws-lookoutequipment/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-lookoutmetrics/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-lookoutvision/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-m2/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-macie/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-managedblockchain/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-mediaconnect/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-mediaconvert/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-medialive/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-mediapackage/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-mediastore/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-mediatailor/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-memorydb/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-msk/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-mwaa/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-neptune/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-networkfirewall/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-networkmanager/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-nimblestudio/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-opensearchservice/README.md +0 -378
- package/iac/node_modules/aws-cdk-lib/aws-opsworks/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-opsworkscm/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-panorama/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-personalize/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-pinpoint/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-pinpointemail/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-qldb/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-quicksight/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-ram/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-rds/README.md +0 -704
- package/iac/node_modules/aws-cdk-lib/aws-redshift/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-redshiftserverless/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-refactorspaces/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-rekognition/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-resiliencehub/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-resourcegroups/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-robomaker/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-route53/README.md +0 -281
- package/iac/node_modules/aws-cdk-lib/aws-route53-patterns/README.md +0 -45
- package/iac/node_modules/aws-cdk-lib/aws-route53-targets/README.md +0 -181
- package/iac/node_modules/aws-cdk-lib/aws-route53recoverycontrol/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-route53recoveryreadiness/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-route53resolver/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-rum/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-s3/README.md +0 -581
- package/iac/node_modules/aws-cdk-lib/aws-s3-assets/README.md +0 -179
- package/iac/node_modules/aws-cdk-lib/aws-s3-deployment/README.md +0 -349
- package/iac/node_modules/aws-cdk-lib/aws-s3-notifications/README.md +0 -46
- package/iac/node_modules/aws-cdk-lib/aws-s3objectlambda/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-s3outposts/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-sagemaker/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-sam/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-sdb/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-secretsmanager/README.md +0 -285
- package/iac/node_modules/aws-cdk-lib/aws-securityhub/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-servicecatalog/README.md +0 -491
- package/iac/node_modules/aws-cdk-lib/aws-servicecatalogappregistry/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-servicediscovery/README.md +0 -45
- package/iac/node_modules/aws-cdk-lib/aws-ses/README.md +0 -194
- package/iac/node_modules/aws-cdk-lib/aws-ses-actions/README.md +0 -16
- package/iac/node_modules/aws-cdk-lib/aws-signer/README.md +0 -41
- package/iac/node_modules/aws-cdk-lib/aws-sns/README.md +0 -184
- package/iac/node_modules/aws-cdk-lib/aws-sns-subscriptions/README.md +0 -120
- package/iac/node_modules/aws-cdk-lib/aws-sqs/README.md +0 -57
- package/iac/node_modules/aws-cdk-lib/aws-ssm/README.md +0 -99
- package/iac/node_modules/aws-cdk-lib/aws-ssmcontacts/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-ssmincidents/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-sso/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-stepfunctions/README.md +0 -884
- package/iac/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/README.md +0 -1288
- package/iac/node_modules/aws-cdk-lib/aws-supportapp/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-synthetics/README.md +0 -32
- package/iac/node_modules/aws-cdk-lib/aws-timestream/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-transfer/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-voiceid/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-waf/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-wafregional/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-wafv2/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-wisdom/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-workspaces/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/aws-xray/README.md +0 -27
- package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/README.md +0 -55
- package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/schema/README.md +0 -5
- package/iac/node_modules/aws-cdk-lib/cloudformation-include/README.md +0 -466
- package/iac/node_modules/aws-cdk-lib/core/README.md +0 -1078
- package/iac/node_modules/aws-cdk-lib/custom-resources/README.md +0 -624
- package/iac/node_modules/aws-cdk-lib/cx-api/README.md +0 -98
- package/iac/node_modules/aws-cdk-lib/lambda-layer-awscli/README.md +0 -19
- package/iac/node_modules/aws-cdk-lib/lambda-layer-kubectl/README.md +0 -20
- package/iac/node_modules/aws-cdk-lib/lambda-layer-node-proxy-agent/README.md +0 -18
- package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/LICENSE.md +0 -206
- package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/README.md +0 -261
- package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/LICENSE +0 -6
- package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/README.md +0 -25
- package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/LICENSE.md +0 -21
- package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/README.md +0 -97
- package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/LICENSE +0 -21
- package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/README.md +0 -129
- package/iac/node_modules/aws-cdk-lib/node_modules/case/LICENSE +0 -22
- package/iac/node_modules/aws-cdk-lib/node_modules/case/README.md +0 -139
- package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.min.js.map +0 -1
- package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.plus.min.js.map +0 -1
- package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/LICENSE +0 -18
- package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/README.markdown +0 -62
- package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/README.md +0 -264
- package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/README.md +0 -143
- package/iac/node_modules/aws-cdk-lib/node_modules/ignore/README.md +0 -412
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/README.md +0 -230
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/LICENSE +0 -21
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/README.md +0 -421
- package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/README.md +0 -166
- package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/README.md +0 -230
- package/iac/node_modules/aws-cdk-lib/node_modules/punycode/README.md +0 -122
- package/iac/node_modules/aws-cdk-lib/node_modules/semver/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/semver/README.md +0 -568
- package/iac/node_modules/aws-cdk-lib/node_modules/universalify/LICENSE +0 -20
- package/iac/node_modules/aws-cdk-lib/node_modules/universalify/README.md +0 -76
- package/iac/node_modules/aws-cdk-lib/node_modules/yallist/LICENSE +0 -15
- package/iac/node_modules/aws-cdk-lib/node_modules/yallist/README.md +0 -204
- package/iac/node_modules/aws-cdk-lib/node_modules/yaml/LICENSE +0 -13
- package/iac/node_modules/aws-cdk-lib/node_modules/yaml/README.md +0 -127
- package/iac/node_modules/aws-cdk-lib/pipelines/README.md +0 -1573
- package/iac/node_modules/aws-cdk-lib/region-info/README.md +0 -84
- package/iac/node_modules/aws-cdk-lib/triggers/README.md +0 -86
- package/iac/node_modules/balanced-match/LICENSE.md +0 -21
- package/iac/node_modules/balanced-match/README.md +0 -97
- package/iac/node_modules/brace-expansion/LICENSE +0 -21
- package/iac/node_modules/brace-expansion/README.md +0 -129
- package/iac/node_modules/buffer-from/LICENSE +0 -21
- package/iac/node_modules/buffer-from/readme.md +0 -69
- package/iac/node_modules/case/LICENSE +0 -22
- package/iac/node_modules/case/README.md +0 -139
- package/iac/node_modules/case/dist/Case.min.js.map +0 -1
- package/iac/node_modules/case/dist/Case.plus.min.js.map +0 -1
- package/iac/node_modules/chalk/license +0 -9
- package/iac/node_modules/chalk/node_modules/ansi-styles/license +0 -9
- package/iac/node_modules/chalk/node_modules/ansi-styles/readme.md +0 -152
- package/iac/node_modules/chalk/readme.md +0 -341
- package/iac/node_modules/color-convert/LICENSE +0 -21
- package/iac/node_modules/color-convert/README.md +0 -68
- package/iac/node_modules/color-name/LICENSE +0 -8
- package/iac/node_modules/color-name/README.md +0 -11
- package/iac/node_modules/concat-map/LICENSE +0 -18
- package/iac/node_modules/concat-map/README.markdown +0 -62
- package/iac/node_modules/constructs/LICENSE +0 -202
- package/iac/node_modules/constructs/README.md +0 -28
- package/iac/node_modules/create-require/LICENSE +0 -25
- package/iac/node_modules/create-require/README.md +0 -46
- package/iac/node_modules/diff/LICENSE +0 -31
- package/iac/node_modules/diff/README.md +0 -207
- package/iac/node_modules/diff-sequences/LICENSE +0 -21
- package/iac/node_modules/diff-sequences/README.md +0 -404
- package/iac/node_modules/fs-extra/LICENSE +0 -15
- package/iac/node_modules/fs-extra/README.md +0 -264
- package/iac/node_modules/fsevents/LICENSE +0 -22
- package/iac/node_modules/fsevents/README.md +0 -83
- package/iac/node_modules/graceful-fs/LICENSE +0 -15
- package/iac/node_modules/graceful-fs/README.md +0 -143
- package/iac/node_modules/has-flag/license +0 -9
- package/iac/node_modules/has-flag/readme.md +0 -89
- package/iac/node_modules/ignore/README.md +0 -412
- package/iac/node_modules/jest-diff/LICENSE +0 -21
- package/iac/node_modules/jest-diff/README.md +0 -671
- package/iac/node_modules/jest-get-type/LICENSE +0 -21
- package/iac/node_modules/jest-matcher-utils/LICENSE +0 -21
- package/iac/node_modules/jest-matcher-utils/README.md +0 -24
- package/iac/node_modules/jsonfile/LICENSE +0 -15
- package/iac/node_modules/jsonfile/README.md +0 -230
- package/iac/node_modules/jsonschema/LICENSE +0 -21
- package/iac/node_modules/jsonschema/README.md +0 -421
- package/iac/node_modules/lru-cache/LICENSE +0 -15
- package/iac/node_modules/lru-cache/README.md +0 -166
- package/iac/node_modules/make-error/LICENSE +0 -5
- package/iac/node_modules/make-error/README.md +0 -112
- package/iac/node_modules/minimatch/LICENSE +0 -15
- package/iac/node_modules/minimatch/README.md +0 -230
- package/iac/node_modules/pretty-format/LICENSE +0 -21
- package/iac/node_modules/pretty-format/README.md +0 -458
- package/iac/node_modules/punycode/README.md +0 -122
- package/iac/node_modules/react-is/LICENSE +0 -21
- package/iac/node_modules/react-is/README.md +0 -104
- package/iac/node_modules/semver/LICENSE +0 -15
- package/iac/node_modules/semver/README.md +0 -568
- package/iac/node_modules/source-map/LICENSE +0 -28
- package/iac/node_modules/source-map/README.md +0 -742
- package/iac/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/iac/node_modules/source-map-support/LICENSE.md +0 -21
- package/iac/node_modules/source-map-support/README.md +0 -284
- package/iac/node_modules/supports-color/license +0 -9
- package/iac/node_modules/supports-color/readme.md +0 -76
- package/iac/node_modules/ts-node/LICENSE +0 -21
- package/iac/node_modules/ts-node/README.md +0 -1442
- package/iac/node_modules/ts-node/dist/bin-cwd.js.map +0 -1
- package/iac/node_modules/ts-node/dist/bin-esm.js.map +0 -1
- package/iac/node_modules/ts-node/dist/bin-script-deprecated.js.map +0 -1
- package/iac/node_modules/ts-node/dist/bin-script.js.map +0 -1
- package/iac/node_modules/ts-node/dist/bin-transpile.js.map +0 -1
- package/iac/node_modules/ts-node/dist/bin.js.map +0 -1
- package/iac/node_modules/ts-node/dist/child/argv-payload.js.map +0 -1
- package/iac/node_modules/ts-node/dist/child/child-entrypoint.js.map +0 -1
- package/iac/node_modules/ts-node/dist/child/child-loader.js.map +0 -1
- package/iac/node_modules/ts-node/dist/child/child-require.js.map +0 -1
- package/iac/node_modules/ts-node/dist/child/spawn-child.js.map +0 -1
- package/iac/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +0 -1
- package/iac/node_modules/ts-node/dist/configuration.js.map +0 -1
- package/iac/node_modules/ts-node/dist/esm.js.map +0 -1
- package/iac/node_modules/ts-node/dist/file-extensions.js.map +0 -1
- package/iac/node_modules/ts-node/dist/index.js.map +0 -1
- package/iac/node_modules/ts-node/dist/module-type-classifier.js.map +0 -1
- package/iac/node_modules/ts-node/dist/node-module-type-classifier.js.map +0 -1
- package/iac/node_modules/ts-node/dist/repl.js.map +0 -1
- package/iac/node_modules/ts-node/dist/resolver-functions.js.map +0 -1
- package/iac/node_modules/ts-node/dist/transpilers/swc.js.map +0 -1
- package/iac/node_modules/ts-node/dist/transpilers/types.js.map +0 -1
- package/iac/node_modules/ts-node/dist/ts-compiler-types.js.map +0 -1
- package/iac/node_modules/ts-node/dist/ts-internals.js.map +0 -1
- package/iac/node_modules/ts-node/dist/ts-transpile-module.js.map +0 -1
- package/iac/node_modules/ts-node/dist/tsconfig-schema.js.map +0 -1
- package/iac/node_modules/ts-node/dist/tsconfigs.js.map +0 -1
- package/iac/node_modules/ts-node/dist/util.js.map +0 -1
- package/iac/node_modules/ts-node/dist-raw/README.md +0 -36
- package/iac/node_modules/typescript/LICENSE.txt +0 -55
- package/iac/node_modules/typescript/README.md +0 -104
- package/iac/node_modules/typescript/lib/README.md +0 -5
- package/iac/node_modules/universalify/LICENSE +0 -20
- package/iac/node_modules/universalify/README.md +0 -76
- package/iac/node_modules/v8-compile-cache-lib/LICENSE +0 -21
- package/iac/node_modules/v8-compile-cache-lib/README.md +0 -60
- package/iac/node_modules/yallist/LICENSE +0 -15
- package/iac/node_modules/yallist/README.md +0 -204
- package/iac/node_modules/yaml/LICENSE +0 -13
- package/iac/node_modules/yaml/README.md +0 -127
- package/iac/node_modules/yn/license +0 -9
- package/iac/node_modules/yn/readme.md +0 -83
- package/react/Edit.d.ts +0 -3
- package/react/Edit.js +0 -10
- package/react/Edit.js.map +0 -1
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
# pretty-format
|
|
2
|
-
|
|
3
|
-
Stringify any JavaScript value.
|
|
4
|
-
|
|
5
|
-
- Serialize built-in JavaScript types.
|
|
6
|
-
- Serialize application-specific data types with built-in or user-defined plugins.
|
|
7
|
-
|
|
8
|
-
## Installation
|
|
9
|
-
|
|
10
|
-
```sh
|
|
11
|
-
$ yarn add pretty-format
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
```js
|
|
17
|
-
const {format: prettyFormat} = require('pretty-format'); // CommonJS
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
```js
|
|
21
|
-
import {format as prettyFormat} from 'pretty-format'; // ES2015 modules
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
const val = {object: {}};
|
|
26
|
-
val.circularReference = val;
|
|
27
|
-
val[Symbol('foo')] = 'foo';
|
|
28
|
-
val.map = new Map([['prop', 'value']]);
|
|
29
|
-
val.array = [-0, Infinity, NaN];
|
|
30
|
-
|
|
31
|
-
console.log(prettyFormat(val));
|
|
32
|
-
/*
|
|
33
|
-
Object {
|
|
34
|
-
"array": Array [
|
|
35
|
-
-0,
|
|
36
|
-
Infinity,
|
|
37
|
-
NaN,
|
|
38
|
-
],
|
|
39
|
-
"circularReference": [Circular],
|
|
40
|
-
"map": Map {
|
|
41
|
-
"prop" => "value",
|
|
42
|
-
},
|
|
43
|
-
"object": Object {},
|
|
44
|
-
Symbol(foo): "foo",
|
|
45
|
-
}
|
|
46
|
-
*/
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Usage with options
|
|
50
|
-
|
|
51
|
-
```js
|
|
52
|
-
function onClick() {}
|
|
53
|
-
|
|
54
|
-
console.log(prettyFormat(onClick));
|
|
55
|
-
/*
|
|
56
|
-
[Function onClick]
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
const options = {
|
|
60
|
-
printFunctionName: false,
|
|
61
|
-
};
|
|
62
|
-
console.log(prettyFormat(onClick, options));
|
|
63
|
-
/*
|
|
64
|
-
[Function]
|
|
65
|
-
*/
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
<!-- prettier-ignore -->
|
|
69
|
-
| key | type | default | description |
|
|
70
|
-
| :-------------------- | :-------- | :--------- | :------------------------------------------------------ |
|
|
71
|
-
| `callToJSON` | `boolean` | `true` | call `toJSON` method (if it exists) on objects |
|
|
72
|
-
| `compareKeys` | `function`| `undefined`| compare function used when sorting object keys |
|
|
73
|
-
| `escapeRegex` | `boolean` | `false` | escape special characters in regular expressions |
|
|
74
|
-
| `escapeString` | `boolean` | `true` | escape special characters in strings |
|
|
75
|
-
| `highlight` | `boolean` | `false` | highlight syntax with colors in terminal (some plugins) |
|
|
76
|
-
| `indent` | `number` | `2` | spaces in each level of indentation |
|
|
77
|
-
| `maxDepth` | `number` | `Infinity` | levels to print in arrays, objects, elements, and so on |
|
|
78
|
-
| `min` | `boolean` | `false` | minimize added space: no indentation nor line breaks |
|
|
79
|
-
| `plugins` | `array` | `[]` | plugins to serialize application-specific data types |
|
|
80
|
-
| `printBasicPrototype` | `boolean` | `false` | print the prototype for plain objects and arrays |
|
|
81
|
-
| `printFunctionName` | `boolean` | `true` | include or omit the name of a function |
|
|
82
|
-
| `theme` | `object` | | colors to highlight syntax in terminal |
|
|
83
|
-
|
|
84
|
-
Property values of `theme` are from [ansi-styles colors](https://github.com/chalk/ansi-styles#colors)
|
|
85
|
-
|
|
86
|
-
```js
|
|
87
|
-
const DEFAULT_THEME = {
|
|
88
|
-
comment: 'gray',
|
|
89
|
-
content: 'reset',
|
|
90
|
-
prop: 'yellow',
|
|
91
|
-
tag: 'cyan',
|
|
92
|
-
value: 'green',
|
|
93
|
-
};
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## Usage with plugins
|
|
97
|
-
|
|
98
|
-
The `pretty-format` package provides some built-in plugins, including:
|
|
99
|
-
|
|
100
|
-
- `ReactElement` for elements from `react`
|
|
101
|
-
- `ReactTestComponent` for test objects from `react-test-renderer`
|
|
102
|
-
|
|
103
|
-
```js
|
|
104
|
-
// CommonJS
|
|
105
|
-
const React = require('react');
|
|
106
|
-
const renderer = require('react-test-renderer');
|
|
107
|
-
const {format: prettyFormat, plugins} = require('pretty-format');
|
|
108
|
-
|
|
109
|
-
const {ReactElement, ReactTestComponent} = plugins;
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
```js
|
|
113
|
-
// ES2015 modules and destructuring assignment
|
|
114
|
-
import React from 'react';
|
|
115
|
-
import renderer from 'react-test-renderer';
|
|
116
|
-
import {plugins, format as prettyFormat} from 'pretty-format';
|
|
117
|
-
|
|
118
|
-
const {ReactElement, ReactTestComponent} = plugins;
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
```js
|
|
122
|
-
const onClick = () => {};
|
|
123
|
-
const element = React.createElement('button', {onClick}, 'Hello World');
|
|
124
|
-
|
|
125
|
-
const formatted1 = prettyFormat(element, {
|
|
126
|
-
plugins: [ReactElement],
|
|
127
|
-
printFunctionName: false,
|
|
128
|
-
});
|
|
129
|
-
const formatted2 = prettyFormat(renderer.create(element).toJSON(), {
|
|
130
|
-
plugins: [ReactTestComponent],
|
|
131
|
-
printFunctionName: false,
|
|
132
|
-
});
|
|
133
|
-
/*
|
|
134
|
-
<button
|
|
135
|
-
onClick=[Function]
|
|
136
|
-
>
|
|
137
|
-
Hello World
|
|
138
|
-
</button>
|
|
139
|
-
*/
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Usage in Jest
|
|
143
|
-
|
|
144
|
-
For snapshot tests, Jest uses `pretty-format` with options that include some of its built-in plugins. For this purpose, plugins are also known as **snapshot serializers**.
|
|
145
|
-
|
|
146
|
-
To serialize application-specific data types, you can add modules to `devDependencies` of a project, and then:
|
|
147
|
-
|
|
148
|
-
In an **individual** test file, you can add a module as follows. It precedes any modules from Jest configuration.
|
|
149
|
-
|
|
150
|
-
```js
|
|
151
|
-
import serializer from 'my-serializer-module';
|
|
152
|
-
expect.addSnapshotSerializer(serializer);
|
|
153
|
-
|
|
154
|
-
// tests which have `expect(value).toMatchSnapshot()` assertions
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
For **all** test files, you can specify modules in Jest configuration. They precede built-in plugins for React, HTML, and Immutable.js data types. For example, in a `package.json` file:
|
|
158
|
-
|
|
159
|
-
```json
|
|
160
|
-
{
|
|
161
|
-
"jest": {
|
|
162
|
-
"snapshotSerializers": ["my-serializer-module"]
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Writing plugins
|
|
168
|
-
|
|
169
|
-
A plugin is a JavaScript object.
|
|
170
|
-
|
|
171
|
-
If `options` has a `plugins` array: for the first plugin whose `test(val)` method returns a truthy value, then `prettyFormat(val, options)` returns the result from either:
|
|
172
|
-
|
|
173
|
-
- `serialize(val, …)` method of the **improved** interface (available in **version 21** or later)
|
|
174
|
-
- `print(val, …)` method of the **original** interface (if plugin does not have `serialize` method)
|
|
175
|
-
|
|
176
|
-
### test
|
|
177
|
-
|
|
178
|
-
Write `test` so it can receive `val` argument of any type. To serialize **objects** which have certain properties, then a guarded expression like `val != null && …` or more concise `val && …` prevents the following errors:
|
|
179
|
-
|
|
180
|
-
- `TypeError: Cannot read property 'whatever' of null`
|
|
181
|
-
- `TypeError: Cannot read property 'whatever' of undefined`
|
|
182
|
-
|
|
183
|
-
For example, `test` method of built-in `ReactElement` plugin:
|
|
184
|
-
|
|
185
|
-
```js
|
|
186
|
-
const elementSymbol = Symbol.for('react.element');
|
|
187
|
-
const test = val => val && val.$$typeof === elementSymbol;
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
Pay attention to efficiency in `test` because `pretty-format` calls it often.
|
|
191
|
-
|
|
192
|
-
### serialize
|
|
193
|
-
|
|
194
|
-
The **improved** interface is available in **version 21** or later.
|
|
195
|
-
|
|
196
|
-
Write `serialize` to return a string, given the arguments:
|
|
197
|
-
|
|
198
|
-
- `val` which “passed the test”
|
|
199
|
-
- unchanging `config` object: derived from `options`
|
|
200
|
-
- current `indentation` string: concatenate to `indent` from `config`
|
|
201
|
-
- current `depth` number: compare to `maxDepth` from `config`
|
|
202
|
-
- current `refs` array: find circular references in objects
|
|
203
|
-
- `printer` callback function: serialize children
|
|
204
|
-
|
|
205
|
-
### config
|
|
206
|
-
|
|
207
|
-
<!-- prettier-ignore -->
|
|
208
|
-
| key | type | description |
|
|
209
|
-
| :------------------ | :-------- | :------------------------------------------------------ |
|
|
210
|
-
| `callToJSON` | `boolean` | call `toJSON` method (if it exists) on objects |
|
|
211
|
-
| `compareKeys` | `function`| compare function used when sorting object keys |
|
|
212
|
-
| `colors` | `Object` | escape codes for colors to highlight syntax |
|
|
213
|
-
| `escapeRegex` | `boolean` | escape special characters in regular expressions |
|
|
214
|
-
| `escapeString` | `boolean` | escape special characters in strings |
|
|
215
|
-
| `indent` | `string` | spaces in each level of indentation |
|
|
216
|
-
| `maxDepth` | `number` | levels to print in arrays, objects, elements, and so on |
|
|
217
|
-
| `min` | `boolean` | minimize added space: no indentation nor line breaks |
|
|
218
|
-
| `plugins` | `array` | plugins to serialize application-specific data types |
|
|
219
|
-
| `printFunctionName` | `boolean` | include or omit the name of a function |
|
|
220
|
-
| `spacingInner` | `strong` | spacing to separate items in a list |
|
|
221
|
-
| `spacingOuter` | `strong` | spacing to enclose a list of items |
|
|
222
|
-
|
|
223
|
-
Each property of `colors` in `config` corresponds to a property of `theme` in `options`:
|
|
224
|
-
|
|
225
|
-
- the key is the same (for example, `tag`)
|
|
226
|
-
- the value in `colors` is a object with `open` and `close` properties whose values are escape codes from [ansi-styles](https://github.com/chalk/ansi-styles) for the color value in `theme` (for example, `'cyan'`)
|
|
227
|
-
|
|
228
|
-
Some properties in `config` are derived from `min` in `options`:
|
|
229
|
-
|
|
230
|
-
- `spacingInner` and `spacingOuter` are **newline** if `min` is `false`
|
|
231
|
-
- `spacingInner` is **space** and `spacingOuter` is **empty string** if `min` is `true`
|
|
232
|
-
|
|
233
|
-
### Example of serialize and test
|
|
234
|
-
|
|
235
|
-
This plugin is a pattern you can apply to serialize composite data types. Side note: `pretty-format` does not need a plugin to serialize arrays.
|
|
236
|
-
|
|
237
|
-
```js
|
|
238
|
-
// We reused more code when we factored out a function for child items
|
|
239
|
-
// that is independent of depth, name, and enclosing punctuation (see below).
|
|
240
|
-
const SEPARATOR = ',';
|
|
241
|
-
function serializeItems(items, config, indentation, depth, refs, printer) {
|
|
242
|
-
if (items.length === 0) {
|
|
243
|
-
return '';
|
|
244
|
-
}
|
|
245
|
-
const indentationItems = indentation + config.indent;
|
|
246
|
-
return (
|
|
247
|
-
config.spacingOuter +
|
|
248
|
-
items
|
|
249
|
-
.map(
|
|
250
|
-
item =>
|
|
251
|
-
indentationItems +
|
|
252
|
-
printer(item, config, indentationItems, depth, refs), // callback
|
|
253
|
-
)
|
|
254
|
-
.join(SEPARATOR + config.spacingInner) +
|
|
255
|
-
(config.min ? '' : SEPARATOR) + // following the last item
|
|
256
|
-
config.spacingOuter +
|
|
257
|
-
indentation
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
const plugin = {
|
|
262
|
-
test(val) {
|
|
263
|
-
return Array.isArray(val);
|
|
264
|
-
},
|
|
265
|
-
serialize(array, config, indentation, depth, refs, printer) {
|
|
266
|
-
const name = array.constructor.name;
|
|
267
|
-
return ++depth > config.maxDepth
|
|
268
|
-
? '[' + name + ']'
|
|
269
|
-
: (config.min ? '' : name + ' ') +
|
|
270
|
-
'[' +
|
|
271
|
-
serializeItems(array, config, indentation, depth, refs, printer) +
|
|
272
|
-
']';
|
|
273
|
-
},
|
|
274
|
-
};
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
```js
|
|
278
|
-
const val = {
|
|
279
|
-
filter: 'completed',
|
|
280
|
-
items: [
|
|
281
|
-
{
|
|
282
|
-
text: 'Write test',
|
|
283
|
-
completed: true,
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
text: 'Write serialize',
|
|
287
|
-
completed: true,
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
};
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
```js
|
|
294
|
-
console.log(
|
|
295
|
-
prettyFormat(val, {
|
|
296
|
-
plugins: [plugin],
|
|
297
|
-
}),
|
|
298
|
-
);
|
|
299
|
-
/*
|
|
300
|
-
Object {
|
|
301
|
-
"filter": "completed",
|
|
302
|
-
"items": Array [
|
|
303
|
-
Object {
|
|
304
|
-
"completed": true,
|
|
305
|
-
"text": "Write test",
|
|
306
|
-
},
|
|
307
|
-
Object {
|
|
308
|
-
"completed": true,
|
|
309
|
-
"text": "Write serialize",
|
|
310
|
-
},
|
|
311
|
-
],
|
|
312
|
-
}
|
|
313
|
-
*/
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
```js
|
|
317
|
-
console.log(
|
|
318
|
-
prettyFormat(val, {
|
|
319
|
-
indent: 4,
|
|
320
|
-
plugins: [plugin],
|
|
321
|
-
}),
|
|
322
|
-
);
|
|
323
|
-
/*
|
|
324
|
-
Object {
|
|
325
|
-
"filter": "completed",
|
|
326
|
-
"items": Array [
|
|
327
|
-
Object {
|
|
328
|
-
"completed": true,
|
|
329
|
-
"text": "Write test",
|
|
330
|
-
},
|
|
331
|
-
Object {
|
|
332
|
-
"completed": true,
|
|
333
|
-
"text": "Write serialize",
|
|
334
|
-
},
|
|
335
|
-
],
|
|
336
|
-
}
|
|
337
|
-
*/
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
```js
|
|
341
|
-
console.log(
|
|
342
|
-
prettyFormat(val, {
|
|
343
|
-
maxDepth: 1,
|
|
344
|
-
plugins: [plugin],
|
|
345
|
-
}),
|
|
346
|
-
);
|
|
347
|
-
/*
|
|
348
|
-
Object {
|
|
349
|
-
"filter": "completed",
|
|
350
|
-
"items": [Array],
|
|
351
|
-
}
|
|
352
|
-
*/
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
```js
|
|
356
|
-
console.log(
|
|
357
|
-
prettyFormat(val, {
|
|
358
|
-
min: true,
|
|
359
|
-
plugins: [plugin],
|
|
360
|
-
}),
|
|
361
|
-
);
|
|
362
|
-
/*
|
|
363
|
-
{"filter": "completed", "items": [{"completed": true, "text": "Write test"}, {"completed": true, "text": "Write serialize"}]}
|
|
364
|
-
*/
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
### print
|
|
368
|
-
|
|
369
|
-
The **original** interface is adequate for plugins:
|
|
370
|
-
|
|
371
|
-
- that **do not** depend on options other than `highlight` or `min`
|
|
372
|
-
- that **do not** depend on `depth` or `refs` in recursive traversal, and
|
|
373
|
-
- if values either
|
|
374
|
-
- do **not** require indentation, or
|
|
375
|
-
- do **not** occur as children of JavaScript data structures (for example, array)
|
|
376
|
-
|
|
377
|
-
Write `print` to return a string, given the arguments:
|
|
378
|
-
|
|
379
|
-
- `val` which “passed the test”
|
|
380
|
-
- current `printer(valChild)` callback function: serialize children
|
|
381
|
-
- current `indenter(lines)` callback function: indent lines at the next level
|
|
382
|
-
- unchanging `config` object: derived from `options`
|
|
383
|
-
- unchanging `colors` object: derived from `options`
|
|
384
|
-
|
|
385
|
-
The 3 properties of `config` are `min` in `options` and:
|
|
386
|
-
|
|
387
|
-
- `spacing` and `edgeSpacing` are **newline** if `min` is `false`
|
|
388
|
-
- `spacing` is **space** and `edgeSpacing` is **empty string** if `min` is `true`
|
|
389
|
-
|
|
390
|
-
Each property of `colors` corresponds to a property of `theme` in `options`:
|
|
391
|
-
|
|
392
|
-
- the key is the same (for example, `tag`)
|
|
393
|
-
- the value in `colors` is a object with `open` and `close` properties whose values are escape codes from [ansi-styles](https://github.com/chalk/ansi-styles) for the color value in `theme` (for example, `'cyan'`)
|
|
394
|
-
|
|
395
|
-
### Example of print and test
|
|
396
|
-
|
|
397
|
-
This plugin prints functions with the **number of named arguments** excluding rest argument.
|
|
398
|
-
|
|
399
|
-
```js
|
|
400
|
-
const plugin = {
|
|
401
|
-
print(val) {
|
|
402
|
-
return `[Function ${val.name || 'anonymous'} ${val.length}]`;
|
|
403
|
-
},
|
|
404
|
-
test(val) {
|
|
405
|
-
return typeof val === 'function';
|
|
406
|
-
},
|
|
407
|
-
};
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
```js
|
|
411
|
-
const val = {
|
|
412
|
-
onClick(event) {},
|
|
413
|
-
render() {},
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
prettyFormat(val, {
|
|
417
|
-
plugins: [plugin],
|
|
418
|
-
});
|
|
419
|
-
/*
|
|
420
|
-
Object {
|
|
421
|
-
"onClick": [Function onClick 1],
|
|
422
|
-
"render": [Function render 0],
|
|
423
|
-
}
|
|
424
|
-
*/
|
|
425
|
-
|
|
426
|
-
prettyFormat(val);
|
|
427
|
-
/*
|
|
428
|
-
Object {
|
|
429
|
-
"onClick": [Function onClick],
|
|
430
|
-
"render": [Function render],
|
|
431
|
-
}
|
|
432
|
-
*/
|
|
433
|
-
```
|
|
434
|
-
|
|
435
|
-
This plugin **ignores** the `printFunctionName` option. That limitation of the original `print` interface is a reason to use the improved `serialize` interface, described above.
|
|
436
|
-
|
|
437
|
-
```js
|
|
438
|
-
prettyFormat(val, {
|
|
439
|
-
plugins: [pluginOld],
|
|
440
|
-
printFunctionName: false,
|
|
441
|
-
});
|
|
442
|
-
/*
|
|
443
|
-
Object {
|
|
444
|
-
"onClick": [Function onClick 1],
|
|
445
|
-
"render": [Function render 0],
|
|
446
|
-
}
|
|
447
|
-
*/
|
|
448
|
-
|
|
449
|
-
prettyFormat(val, {
|
|
450
|
-
printFunctionName: false,
|
|
451
|
-
});
|
|
452
|
-
/*
|
|
453
|
-
Object {
|
|
454
|
-
"onClick": [Function],
|
|
455
|
-
"render": [Function],
|
|
456
|
-
}
|
|
457
|
-
*/
|
|
458
|
-
```
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# Punycode.js [](https://travis-ci.org/bestiejs/punycode.js) [](https://codecov.io/gh/bestiejs/punycode.js) [](https://gemnasium.com/bestiejs/punycode.js)
|
|
2
|
-
|
|
3
|
-
Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891).
|
|
4
|
-
|
|
5
|
-
This JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm:
|
|
6
|
-
|
|
7
|
-
* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C)
|
|
8
|
-
* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c)
|
|
9
|
-
* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c)
|
|
10
|
-
* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287)
|
|
11
|
-
* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072))
|
|
12
|
-
|
|
13
|
-
This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated).
|
|
14
|
-
|
|
15
|
-
The current version supports recent versions of Node.js only. It provides a CommonJS module and an ES6 module. For the old version that offers the same functionality with broader support, including Rhino, Ringo, Narwhal, and web browsers, see [v1.4.1](https://github.com/bestiejs/punycode.js/releases/tag/v1.4.1).
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
Via [npm](https://www.npmjs.com/):
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install punycode --save
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
In [Node.js](https://nodejs.org/):
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
const punycode = require('punycode');
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## API
|
|
32
|
-
|
|
33
|
-
### `punycode.decode(string)`
|
|
34
|
-
|
|
35
|
-
Converts a Punycode string of ASCII symbols to a string of Unicode symbols.
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
// decode domain name parts
|
|
39
|
-
punycode.decode('maana-pta'); // 'mañana'
|
|
40
|
-
punycode.decode('--dqo34k'); // '☃-⌘'
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### `punycode.encode(string)`
|
|
44
|
-
|
|
45
|
-
Converts a string of Unicode symbols to a Punycode string of ASCII symbols.
|
|
46
|
-
|
|
47
|
-
```js
|
|
48
|
-
// encode domain name parts
|
|
49
|
-
punycode.encode('mañana'); // 'maana-pta'
|
|
50
|
-
punycode.encode('☃-⌘'); // '--dqo34k'
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### `punycode.toUnicode(input)`
|
|
54
|
-
|
|
55
|
-
Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode.
|
|
56
|
-
|
|
57
|
-
```js
|
|
58
|
-
// decode domain names
|
|
59
|
-
punycode.toUnicode('xn--maana-pta.com');
|
|
60
|
-
// → 'mañana.com'
|
|
61
|
-
punycode.toUnicode('xn----dqo34k.com');
|
|
62
|
-
// → '☃-⌘.com'
|
|
63
|
-
|
|
64
|
-
// decode email addresses
|
|
65
|
-
punycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq');
|
|
66
|
-
// → 'джумла@джpумлатест.bрфa'
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### `punycode.toASCII(input)`
|
|
70
|
-
|
|
71
|
-
Converts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII.
|
|
72
|
-
|
|
73
|
-
```js
|
|
74
|
-
// encode domain names
|
|
75
|
-
punycode.toASCII('mañana.com');
|
|
76
|
-
// → 'xn--maana-pta.com'
|
|
77
|
-
punycode.toASCII('☃-⌘.com');
|
|
78
|
-
// → 'xn----dqo34k.com'
|
|
79
|
-
|
|
80
|
-
// encode email addresses
|
|
81
|
-
punycode.toASCII('джумла@джpумлатест.bрфa');
|
|
82
|
-
// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### `punycode.ucs2`
|
|
86
|
-
|
|
87
|
-
#### `punycode.ucs2.decode(string)`
|
|
88
|
-
|
|
89
|
-
Creates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16.
|
|
90
|
-
|
|
91
|
-
```js
|
|
92
|
-
punycode.ucs2.decode('abc');
|
|
93
|
-
// → [0x61, 0x62, 0x63]
|
|
94
|
-
// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE:
|
|
95
|
-
punycode.ucs2.decode('\uD834\uDF06');
|
|
96
|
-
// → [0x1D306]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
#### `punycode.ucs2.encode(codePoints)`
|
|
100
|
-
|
|
101
|
-
Creates a string based on an array of numeric code point values.
|
|
102
|
-
|
|
103
|
-
```js
|
|
104
|
-
punycode.ucs2.encode([0x61, 0x62, 0x63]);
|
|
105
|
-
// → 'abc'
|
|
106
|
-
punycode.ucs2.encode([0x1D306]);
|
|
107
|
-
// → '\uD834\uDF06'
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### `punycode.version`
|
|
111
|
-
|
|
112
|
-
A string representing the current Punycode.js version number.
|
|
113
|
-
|
|
114
|
-
## Author
|
|
115
|
-
|
|
116
|
-
| [](https://twitter.com/mathias "Follow @mathias on Twitter") |
|
|
117
|
-
|---|
|
|
118
|
-
| [Mathias Bynens](https://mathiasbynens.be/) |
|
|
119
|
-
|
|
120
|
-
## License
|
|
121
|
-
|
|
122
|
-
Punycode.js is available under the [MIT](https://mths.be/mit) license.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# `react-is`
|
|
2
|
-
|
|
3
|
-
This package allows you to test arbitrary values and see if they're a particular React element type.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
# Yarn
|
|
9
|
-
yarn add react-is
|
|
10
|
-
|
|
11
|
-
# NPM
|
|
12
|
-
npm install react-is
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
### Determining if a Component is Valid
|
|
18
|
-
|
|
19
|
-
```js
|
|
20
|
-
import React from "react";
|
|
21
|
-
import * as ReactIs from "react-is";
|
|
22
|
-
|
|
23
|
-
class ClassComponent extends React.Component {
|
|
24
|
-
render() {
|
|
25
|
-
return React.createElement("div");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const FunctionComponent = () => React.createElement("div");
|
|
30
|
-
|
|
31
|
-
const ForwardRefComponent = React.forwardRef((props, ref) =>
|
|
32
|
-
React.createElement(Component, { forwardedRef: ref, ...props })
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
const Context = React.createContext(false);
|
|
36
|
-
|
|
37
|
-
ReactIs.isValidElementType("div"); // true
|
|
38
|
-
ReactIs.isValidElementType(ClassComponent); // true
|
|
39
|
-
ReactIs.isValidElementType(FunctionComponent); // true
|
|
40
|
-
ReactIs.isValidElementType(ForwardRefComponent); // true
|
|
41
|
-
ReactIs.isValidElementType(Context.Provider); // true
|
|
42
|
-
ReactIs.isValidElementType(Context.Consumer); // true
|
|
43
|
-
ReactIs.isValidElementType(React.createFactory("div")); // true
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Determining an Element's Type
|
|
47
|
-
|
|
48
|
-
#### Context
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
import React from "react";
|
|
52
|
-
import * as ReactIs from 'react-is';
|
|
53
|
-
|
|
54
|
-
const ThemeContext = React.createContext("blue");
|
|
55
|
-
|
|
56
|
-
ReactIs.isContextConsumer(<ThemeContext.Consumer />); // true
|
|
57
|
-
ReactIs.isContextProvider(<ThemeContext.Provider />); // true
|
|
58
|
-
ReactIs.typeOf(<ThemeContext.Provider />) === ReactIs.ContextProvider; // true
|
|
59
|
-
ReactIs.typeOf(<ThemeContext.Consumer />) === ReactIs.ContextConsumer; // true
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
#### Element
|
|
63
|
-
|
|
64
|
-
```js
|
|
65
|
-
import React from "react";
|
|
66
|
-
import * as ReactIs from 'react-is';
|
|
67
|
-
|
|
68
|
-
ReactIs.isElement(<div />); // true
|
|
69
|
-
ReactIs.typeOf(<div />) === ReactIs.Element; // true
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
#### Fragment
|
|
73
|
-
|
|
74
|
-
```js
|
|
75
|
-
import React from "react";
|
|
76
|
-
import * as ReactIs from 'react-is';
|
|
77
|
-
|
|
78
|
-
ReactIs.isFragment(<></>); // true
|
|
79
|
-
ReactIs.typeOf(<></>) === ReactIs.Fragment; // true
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
#### Portal
|
|
83
|
-
|
|
84
|
-
```js
|
|
85
|
-
import React from "react";
|
|
86
|
-
import ReactDOM from "react-dom";
|
|
87
|
-
import * as ReactIs from 'react-is';
|
|
88
|
-
|
|
89
|
-
const div = document.createElement("div");
|
|
90
|
-
const portal = ReactDOM.createPortal(<div />, div);
|
|
91
|
-
|
|
92
|
-
ReactIs.isPortal(portal); // true
|
|
93
|
-
ReactIs.typeOf(portal) === ReactIs.Portal; // true
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
#### StrictMode
|
|
97
|
-
|
|
98
|
-
```js
|
|
99
|
-
import React from "react";
|
|
100
|
-
import * as ReactIs from 'react-is';
|
|
101
|
-
|
|
102
|
-
ReactIs.isStrictMode(<React.StrictMode />); // true
|
|
103
|
-
ReactIs.typeOf(<React.StrictMode />) === ReactIs.StrictMode; // true
|
|
104
|
-
```
|