├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .flowconfig ├── .github ├── CODEOWNERS ├── renovate.json └── workflows │ ├── main.yml │ └── publish.yml ├── .gitignore ├── .husky └── pre-commit ├── .npmrc ├── .prettierignore ├── .prettierrc.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── __sdk__.js ├── babel.config.json ├── dist ├── .gitignore ├── ui.js └── ui.min.js ├── fastpublish.sh ├── flow-typed └── npm │ ├── @krakenjs │ ├── belter_vx.x.x.js │ ├── eslint-config-grumbler_vx.x.x.js │ ├── grumbler-scripts_vx.x.x.js │ ├── jsx-pragmatic_vx.x.x.js │ ├── post-robot_vx.x.x.js │ ├── sync-browser-mocks_vx.x.x.js │ ├── zalgo-promise_vx.x.x.js │ └── zoid_vx.x.x.js │ ├── @octokit │ └── rest_v18.x.x.js │ ├── @paypal │ ├── sdk-client_vx.x.x.js │ ├── sdk-constants_vx.x.x.js │ └── sdk-logos_vx.x.x.js │ ├── babel-core_vx.x.x.js │ ├── colors_v1.x.x.js │ ├── conventional-changelog-cli_vx.x.x.js │ ├── cross-env_vx.x.x.js │ ├── flow-bin_v0.x.x.js │ ├── fs-extra_v8.x.x.js │ ├── fs-extra_vx.x.x.js │ ├── glob_v7.x.x.js │ ├── husky_vx.x.x.js │ ├── imagemagick_vx.x.x.js │ ├── imgur_vx.x.x.js │ ├── jest_v29.x.x.js │ ├── lint-staged_vx.x.x.js │ ├── md5_v2.x.x.js │ ├── memory-fs_vx.x.x.js │ ├── mkdirp_v1.x.x.js │ ├── mocha_v4.x.x.js │ ├── mocketeer_vx.x.x.js │ ├── node-stream-zip_v1.x.x.js │ ├── pixelmatch_vx.x.x.js │ ├── pngjs_vx.x.x.js │ ├── prettier_v1.x.x.js │ ├── prettier_vx.x.x.js │ ├── rimraf_v3.x.x.js │ ├── semver_v7.x.x.js │ ├── serve_vx.x.x.js │ └── yargs_v15.x.x.js ├── globals.js ├── jest.config.js ├── karma.conf.js ├── package.json ├── scripts ├── postversion.sh ├── preversion.sh ├── publish.sh └── version.sh ├── src ├── config.js ├── declarations.js ├── globals.js ├── index.js ├── interface.js ├── overlay │ ├── index.js │ ├── style.js │ └── template.jsx ├── three-domain-secure │ ├── component.jsx │ └── index.js ├── types.js └── ui │ ├── index.js │ ├── spinner.jsx │ └── venmoSpinner.jsx ├── test ├── declarations.js ├── globals.js ├── integration │ ├── globals.js │ ├── index.js │ ├── tests │ │ ├── index.js │ │ ├── overlay │ │ │ ├── happy.jsx │ │ │ └── index.js │ │ ├── post-robot │ │ │ ├── happy.js │ │ │ └── index.js │ │ ├── spinner-page │ │ │ ├── happy.jsx │ │ │ └── index.js │ │ └── three-domain-secure │ │ │ ├── happy.js │ │ │ └── index.js │ └── windows │ │ └── helios │ │ ├── index.htm │ │ └── index.jsx └── paypal.js └── webpack.config.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # Howto with your editor: http://editorconfig.org/#download 4 | # Sublime: https://github.com/sindresorhus/editorconfig-sublime 5 | 6 | # top-most EditorConfig file 7 | root = true 8 | 9 | # Unix-style newlines with a newline ending every file 10 | [**] 11 | end_of_line = lf 12 | insert_final_newline = true 13 | 14 | # Standard at: https://github.com/felixge/node-style-guide 15 | [**.js, **.json] 16 | trim_trailing_whitespace = true 17 | indent_style = space 18 | indent_size = 4 19 | quote_type = single 20 | curly_bracket_next_line = false 21 | spaces_around_operators = true 22 | space_after_control_statements = true 23 | space_after_anonymous_functions = true 24 | spaces_in_brackets = false 25 | 26 | # No Standard. Please document a standard if different from .js 27 | [**.yml, **.css] 28 | trim_trailing_whitespace = true 29 | indent_style = tab 30 | 31 | [**.html] 32 | trim_trailing_whitespace = true 33 | indent_style = space 34 | indent_size = 4 35 | 36 | # No standard. Please document a standard if different from .js 37 | [**.md] 38 | indent_style = tab 39 | 40 | # Standard at: 41 | [Makefile] 42 | indent_style = tab 43 | 44 | # The indentation in package.json will always need to be 2 spaces 45 | # https://github.com/npm/npm/issues/4718 46 | [package.json, bower.json] 47 | indent_style = space 48 | indent_size = 2 49 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | test/integration/vendor 2 | dist 3 | node_modules -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | module.exports = { 4 | extends: "@krakenjs/eslint-config-grumbler/eslintrc-browser", 5 | 6 | globals: { 7 | Promise: false, 8 | __PAYPAL_CHECKOUT__: true, 9 | __paypal_checkout__: true, 10 | __sdk__: true, 11 | __LOCALE__: true, 12 | __CLIENT_ID__: true, 13 | __MERCHANT_ID__: true, 14 | __INTENT__: true, 15 | __COMMIT__: true, 16 | __VAULT__: true, 17 | __PORT__: true, 18 | __STAGE_HOST__: true, 19 | __HOST__: true, 20 | __PATH__: true, 21 | __COMPONENTS__: true, 22 | document: true, 23 | performance: true, 24 | assert: true, 25 | beforeAll: true, 26 | afterAll: true, 27 | test: true, 28 | jest: true, 29 | page: true, 30 | }, 31 | 32 | rules: { 33 | complexity: "off", 34 | "max-nested-callbacks": ["error", 5], 35 | "react/prop-types": "off", 36 | "react/style-prop-object": "off", 37 | "react/display-name": "off", 38 | "react/require-default-props": "off", 39 | "react/forbid-component-props": "off", 40 | "compat/compat": "off", 41 | "max-lines": "off", 42 | "no-restricted-globals": "off", 43 | "promise/no-native": "off", 44 | }, 45 | }; 46 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/babel-plugin-flow-runtime 3 | .*/node_modules/flow-runtime 4 | .*/node_modules/npm 5 | .*/node_modules/jsonlint 6 | .*/node_modules/**/test 7 | .*/node_modules/resolve 8 | .*/node_modules/es-abstract 9 | .*/dist/module 10 | [include] 11 | [libs] 12 | flow-typed 13 | node_modules/@krakenjs/zoid/src/declarations.js 14 | node_modules/@krakenjs/post-robot/src/declarations.js 15 | node_modules/@paypal/sdk-client/src/declarations.js 16 | src/declarations.js 17 | test/declarations.js 18 | [options] 19 | module.name_mapper='^src\(.*\)$' -> '/src/\1' 20 | experimental.const_params=false 21 | esproposal.optional_chaining=enable 22 | esproposal.export_star_as=enable 23 | esproposal.decorators=ignore 24 | include_warnings=true 25 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Owner for everything in the repo 2 | * @paypal/checkout-sdk 3 | -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["config:base", ":preserveSemverRanges"], 3 | "prCreation": "immediate", 4 | "prHourlyLimit": 0, 5 | "rangeStrategy": "status-success", 6 | "separateMajorMinor": false, 7 | "semanticCommits": true, 8 | "timezone": "America/Los_Angeles", 9 | "rebaseStalePrs": true, 10 | "labels": [":christmas_tree: dependencies"], 11 | "packageRules": [ 12 | { 13 | "packagePatterns": "^babel", 14 | "groupName": ["babel packages"] 15 | }, 16 | { 17 | "packagePatterns": "^eslint", 18 | "groupName": ["eslint packages"] 19 | }, 20 | { 21 | "packagePatterns": "^jest", 22 | "groupName": ["jest packages"] 23 | }, 24 | { 25 | "packagePatterns": "^rollup", 26 | "groupName": ["rollup packages"] 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: build 2 | on: 3 | # run on push but only for the main branch 4 | push: 5 | branches: 6 | - main 7 | # run for every pull request 8 | pull_request: {} 9 | jobs: 10 | main: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: ⬇️ Checkout repo 14 | uses: actions/checkout@v2 15 | 16 | - name: ⎔ Setup node 17 | uses: actions/setup-node@v2 18 | with: 19 | node-version: "16" 20 | 21 | - name: 📥 Download deps 22 | uses: bahmutov/npm-install@v1 23 | with: 24 | useLockFile: false 25 | 26 | - name: ▶️ Run build script 27 | run: npm run build 28 | 29 | - name: ⬆️ Upload coverage report 30 | uses: codecov/codecov-action@v2 31 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: publish to npm 2 | # manually run this action using the GitHub UI 3 | # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ 4 | on: workflow_dispatch 5 | jobs: 6 | main: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: ⬇️ Checkout repo 10 | uses: actions/checkout@v2 11 | with: 12 | ref: ${{ github.head_ref }} 13 | 14 | - name: ⎔ Setup node 15 | # sets up the .npmrc file to publish to npm 16 | uses: actions/setup-node@v2 17 | with: 18 | node-version: "16" 19 | registry-url: "https://registry.npmjs.org" 20 | 21 | - name: 📥 Download deps 22 | uses: bahmutov/npm-install@v1 23 | with: 24 | useLockFile: false 25 | 26 | - name: Configure git user 27 | run: | 28 | git config --global user.email ${{ github.actor }}@users.noreply.github.com 29 | git config --global user.name ${{ github.actor }} 30 | 31 | - name: Publish to npm 32 | run: npm run release 33 | env: 34 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 35 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 36 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # node-waf configuration 20 | .lock-wscript 21 | 22 | # Compiled binary addons (http://nodejs.org/api/addons.html) 23 | build/Release 24 | 25 | # Dependency directory 26 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 27 | node_modules 28 | 29 | #IDE 30 | **/.idea/* 31 | 32 | .DS_Store 33 | package-lock.json -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | registry=https://registry.npmjs.org 2 | save=false 3 | message="chore(release): %s 🎉" 4 | package-lock=false 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | build 2 | dist 3 | coverage 4 | flow-typed 5 | CHANGELOG.md 6 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to paypal-common-components 2 | 3 | We are always looking for ways to make our modules better. Adding features and fixing bugs allows everyone who depends 4 | on this code to create better, more stable applications. 5 | Feel free to raise a pull request to us. Our team would review your proposed modifications and, if appropriate, merge 6 | your changes into our code. Ideas and other comments are also welcome. 7 | 8 | ## Getting Started 9 | 10 | 1. Create your own [fork](https://help.github.com/articles/fork-a-repo) of this [repository](../../fork). 11 | 12 | ```bash 13 | # Clone it 14 | $ git clone git@github.com:me/paypal-checkout.git 15 | 16 | # Change directory 17 | $ cd paypal-checkout 18 | 19 | # Add the upstream repo 20 | $ git remote add upstream git@github.com:paypal/paypal-checkout.git 21 | 22 | # Get the latest upstream changes 23 | $ git pull upstream 24 | 25 | # Install dependencies 26 | $ npm install 27 | 28 | # Run scripts to verify installation (Note: test includes lint) 29 | $ npm test 30 | ``` 31 | 32 | ## Making Changes 33 | 34 | 1. Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc. 35 | 2. Ensure existing tests pass (`$ npm test`) and include test cases which fail without your change and succeed with it. 36 | 37 | ## Submitting Changes 38 | 39 | 1. Ensure that no errors are generated by ESLint (run during `$ npm test`). 40 | 2. Commit your changes in logical chunks, i.e. keep your changes small per single commit. 41 | 3. Locally merge (or rebase) the upstream branch into your topic branch: `$ git pull upstream && git merge`. 42 | 4. Push your topic branch up to your fork: `$ git push origin `. 43 | 5. Open a [Pull Request](https://help.github.com/articles/using-pull-requests) with a clear title and description. 44 | 6. You should follow the [Angular.js commit message guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) for both your commit messages and PR titles. 45 | 46 | If you have any questions about contributing, please feel free to contact us by posting your questions on GitHub. 47 | 48 | Copyright 2016, PayPal under [the Apache 2.0 license](LICENSE.txt). 49 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## PayPal Common Components 2 | 3 | [![build status][build-badge]][build] 4 | [![code coverage][coverage-badge]][coverage] 5 | [![npm version][version-badge]][package] 6 | [![apache license][license-badge]][license] 7 | 8 | [build-badge]: https://img.shields.io/github/actions/workflow/status/paypal/paypal-common-components/main.yml?branch=main&logo=github&style=flat-square 9 | [build]: https://github.com/paypal/paypal-common-components/actions?query=workflow%3Abuild 10 | [coverage-badge]: https://img.shields.io/codecov/c/github/paypal/paypal-common-components.svg?style=flat-square 11 | [coverage]: https://codecov.io/github/paypal/paypal-common-components/ 12 | [version-badge]: https://img.shields.io/npm/v/@paypal/common-components.svg?style=flat-square 13 | [package]: https://www.npmjs.com/package/@paypal/common-components 14 | [license-badge]: https://img.shields.io/npm/l/@paypal/common-components.svg?style=flat-square 15 | [license]: https://github.com/paypal/paypal-common-components/blob/master/LICENSE 16 | 17 | Common components for the PayPal JavaScript SDK 18 | 19 | ## Development 20 | 21 | Please feel free to follow the [Contribution Guidelines](./CONTRIBUTING.md) to contribute to this repository. PRs are welcome, but for major changes please raise an issue first. 22 | 23 | ### Quick Setup 24 | 25 | Set up your env: 26 | 27 | ```bash 28 | npm install 29 | ``` 30 | 31 | Run tests: 32 | 33 | ```bash 34 | npm test 35 | ``` 36 | 37 | Run in dev mode: 38 | 39 | ```bash 40 | npm run dev 41 | ``` 42 | 43 | ## Test Tasks 44 | 45 | ``` 46 | npm test 47 | ``` 48 | 49 | | Flags | Description | 50 | | ------------- | -------------------------------------------- | 51 | | --clear-cache | Clear Babel Loader and PhantomJS cache | 52 | | --debug | Debug mode. PhantomJS, Karma, and CheckoutJS | 53 | | --quick | Fastest testing. Minimal output, no coverage | 54 | | --browser | Choose Browser | 55 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | At PayPal, we take security vulnerabilities very seriously and appreciate your help notifying us of vulnerabilities in a responsible manner. If you encounter any security vulnerabilities, please submit them to PayPal’s [Bug Bounty Program](https://www.paypal.com/bugbounty). 4 | -------------------------------------------------------------------------------- /__sdk__.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* eslint unicorn/filename-case: 0, import/unambiguous: 0, import/no-commonjs: 0 */ 3 | 4 | const globals = require("./globals"); 5 | 6 | module.exports = { 7 | common: { 8 | automatic: true, 9 | entry: "./src/interface", 10 | globals, 11 | }, 12 | }; 13 | -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@krakenjs/babel-config-grumbler/babelrc-node" 3 | } 4 | -------------------------------------------------------------------------------- /dist/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paypal/paypal-common-components/67c522f7beb5ddfbd7b363bac8dc87f57124b767/dist/.gitignore -------------------------------------------------------------------------------- /dist/ui.min.js: -------------------------------------------------------------------------------- 1 | module.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(r,i,function(e){return n[e]}.bind(null,i));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";function r(n,e){for(var t=[],r=0;r1?new o(e):void 0}(this.component(this.props,this.children));if(e)return e.render(n)},e.render=function(n){return n(this)},e.renderChildren=function(n){return r(this.children,n)},n}();function d(n){for(var e=[],t=0;t2?t-2:0),o=2;o>/@krakenjs/belter_v^2.0.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/belter' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/belter' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/belter/dist/belter' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/belter/dist/belter.min' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/belter/dist/module/constants' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/belter/dist/module/css' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/belter/dist/module/decorators' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/belter/dist/module/device' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module '@krakenjs/belter/dist/module/dom' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module '@krakenjs/belter/dist/module/experiment' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module '@krakenjs/belter/dist/module/global' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module '@krakenjs/belter/dist/module/http' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module '@krakenjs/belter/dist/module/index.flow' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module '@krakenjs/belter/dist/module' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module '@krakenjs/belter/dist/module/screenHeights' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module '@krakenjs/belter/dist/module/storage' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module '@krakenjs/belter/dist/module/storage.test' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module '@krakenjs/belter/dist/module/test' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module '@krakenjs/belter/dist/module/types' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module '@krakenjs/belter/dist/module/util' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module '@krakenjs/belter/src/constants' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module '@krakenjs/belter/src/css' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module '@krakenjs/belter/src/decorators' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module '@krakenjs/belter/src/device' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module '@krakenjs/belter/src/dom' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module '@krakenjs/belter/src/experiment' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module '@krakenjs/belter/src/global' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module '@krakenjs/belter/src/http' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module '@krakenjs/belter/src/index.flow' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module '@krakenjs/belter/src' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module '@krakenjs/belter/src/screenHeights' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module '@krakenjs/belter/src/storage' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module '@krakenjs/belter/src/storage.test' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module '@krakenjs/belter/src/test' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module '@krakenjs/belter/src/types' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module '@krakenjs/belter/src/util' { 158 | declare module.exports: any; 159 | } 160 | 161 | // Filename aliases 162 | declare module '@krakenjs/belter/dist/belter.js' { 163 | declare module.exports: $Exports<'@krakenjs/belter/dist/belter'>; 164 | } 165 | declare module '@krakenjs/belter/dist/belter.min.js' { 166 | declare module.exports: $Exports<'@krakenjs/belter/dist/belter.min'>; 167 | } 168 | declare module '@krakenjs/belter/dist/module/constants.js' { 169 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/constants'>; 170 | } 171 | declare module '@krakenjs/belter/dist/module/css.js' { 172 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/css'>; 173 | } 174 | declare module '@krakenjs/belter/dist/module/decorators.js' { 175 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/decorators'>; 176 | } 177 | declare module '@krakenjs/belter/dist/module/device.js' { 178 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/device'>; 179 | } 180 | declare module '@krakenjs/belter/dist/module/dom.js' { 181 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/dom'>; 182 | } 183 | declare module '@krakenjs/belter/dist/module/experiment.js' { 184 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/experiment'>; 185 | } 186 | declare module '@krakenjs/belter/dist/module/global.js' { 187 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/global'>; 188 | } 189 | declare module '@krakenjs/belter/dist/module/http.js' { 190 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/http'>; 191 | } 192 | declare module '@krakenjs/belter/dist/module/index.flow.js' { 193 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/index.flow'>; 194 | } 195 | declare module '@krakenjs/belter/dist/module/index' { 196 | declare module.exports: $Exports<'@krakenjs/belter/dist/module'>; 197 | } 198 | declare module '@krakenjs/belter/dist/module/index.js' { 199 | declare module.exports: $Exports<'@krakenjs/belter/dist/module'>; 200 | } 201 | declare module '@krakenjs/belter/dist/module/screenHeights.js' { 202 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/screenHeights'>; 203 | } 204 | declare module '@krakenjs/belter/dist/module/storage.js' { 205 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/storage'>; 206 | } 207 | declare module '@krakenjs/belter/dist/module/storage.test.js' { 208 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/storage.test'>; 209 | } 210 | declare module '@krakenjs/belter/dist/module/test.js' { 211 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/test'>; 212 | } 213 | declare module '@krakenjs/belter/dist/module/types.js' { 214 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/types'>; 215 | } 216 | declare module '@krakenjs/belter/dist/module/util.js' { 217 | declare module.exports: $Exports<'@krakenjs/belter/dist/module/util'>; 218 | } 219 | declare module '@krakenjs/belter/index' { 220 | declare module.exports: $Exports<'@krakenjs/belter'>; 221 | } 222 | declare module '@krakenjs/belter/index.js' { 223 | declare module.exports: $Exports<'@krakenjs/belter'>; 224 | } 225 | declare module '@krakenjs/belter/src/constants.js' { 226 | declare module.exports: $Exports<'@krakenjs/belter/src/constants'>; 227 | } 228 | declare module '@krakenjs/belter/src/css.js' { 229 | declare module.exports: $Exports<'@krakenjs/belter/src/css'>; 230 | } 231 | declare module '@krakenjs/belter/src/decorators.js' { 232 | declare module.exports: $Exports<'@krakenjs/belter/src/decorators'>; 233 | } 234 | declare module '@krakenjs/belter/src/device.js' { 235 | declare module.exports: $Exports<'@krakenjs/belter/src/device'>; 236 | } 237 | declare module '@krakenjs/belter/src/dom.js' { 238 | declare module.exports: $Exports<'@krakenjs/belter/src/dom'>; 239 | } 240 | declare module '@krakenjs/belter/src/experiment.js' { 241 | declare module.exports: $Exports<'@krakenjs/belter/src/experiment'>; 242 | } 243 | declare module '@krakenjs/belter/src/global.js' { 244 | declare module.exports: $Exports<'@krakenjs/belter/src/global'>; 245 | } 246 | declare module '@krakenjs/belter/src/http.js' { 247 | declare module.exports: $Exports<'@krakenjs/belter/src/http'>; 248 | } 249 | declare module '@krakenjs/belter/src/index.flow.js' { 250 | declare module.exports: $Exports<'@krakenjs/belter/src/index.flow'>; 251 | } 252 | declare module '@krakenjs/belter/src/index' { 253 | declare module.exports: $Exports<'@krakenjs/belter/src'>; 254 | } 255 | declare module '@krakenjs/belter/src/index.js' { 256 | declare module.exports: $Exports<'@krakenjs/belter/src'>; 257 | } 258 | declare module '@krakenjs/belter/src/screenHeights.js' { 259 | declare module.exports: $Exports<'@krakenjs/belter/src/screenHeights'>; 260 | } 261 | declare module '@krakenjs/belter/src/storage.js' { 262 | declare module.exports: $Exports<'@krakenjs/belter/src/storage'>; 263 | } 264 | declare module '@krakenjs/belter/src/storage.test.js' { 265 | declare module.exports: $Exports<'@krakenjs/belter/src/storage.test'>; 266 | } 267 | declare module '@krakenjs/belter/src/test.js' { 268 | declare module.exports: $Exports<'@krakenjs/belter/src/test'>; 269 | } 270 | declare module '@krakenjs/belter/src/types.js' { 271 | declare module.exports: $Exports<'@krakenjs/belter/src/types'>; 272 | } 273 | declare module '@krakenjs/belter/src/util.js' { 274 | declare module.exports: $Exports<'@krakenjs/belter/src/util'>; 275 | } 276 | -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/eslint-config-grumbler_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 18735c53cadb9b9de98dffb3abc302f4 2 | // flow-typed version: <>/@krakenjs/eslint-config-grumbler_v8.1.3/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/eslint-config-grumbler' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/eslint-config-grumbler' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/eslint-config-grumbler/eslint' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-browser' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-browser.test' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-node' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-typescript' { 42 | declare module.exports: any; 43 | } 44 | 45 | // Filename aliases 46 | declare module '@krakenjs/eslint-config-grumbler/eslint.js' { 47 | declare module.exports: $Exports<'@krakenjs/eslint-config-grumbler/eslint'>; 48 | } 49 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-browser.js' { 50 | declare module.exports: $Exports<'@krakenjs/eslint-config-grumbler/eslintrc-browser'>; 51 | } 52 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-browser.test.js' { 53 | declare module.exports: $Exports<'@krakenjs/eslint-config-grumbler/eslintrc-browser.test'>; 54 | } 55 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-node.js' { 56 | declare module.exports: $Exports<'@krakenjs/eslint-config-grumbler/eslintrc-node'>; 57 | } 58 | declare module '@krakenjs/eslint-config-grumbler/eslintrc-typescript.js' { 59 | declare module.exports: $Exports<'@krakenjs/eslint-config-grumbler/eslintrc-typescript'>; 60 | } 61 | -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/grumbler-scripts_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 06a03ed2075207cc56443399d924bff0 2 | // flow-typed version: <>/@krakenjs/grumbler-scripts_v^8.0.4/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/grumbler-scripts' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/grumbler-scripts' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/grumbler-scripts/config/karma.conf' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/grumbler-scripts/config/webpack.config' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/grumbler-scripts/test/component' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/grumbler-scripts/test/dependency' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/grumbler-scripts/test/module' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/grumbler-scripts/webpack.config' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module '@krakenjs/grumbler-scripts/config/karma.conf.js' { 51 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/config/karma.conf'>; 52 | } 53 | declare module '@krakenjs/grumbler-scripts/config/webpack.config.js' { 54 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/config/webpack.config'>; 55 | } 56 | declare module '@krakenjs/grumbler-scripts/test/component.jsx' { 57 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/component'>; 58 | } 59 | declare module '@krakenjs/grumbler-scripts/test/dependency.js' { 60 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/dependency'>; 61 | } 62 | declare module '@krakenjs/grumbler-scripts/test/module.js' { 63 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/module'>; 64 | } 65 | declare module '@krakenjs/grumbler-scripts/webpack.config.js' { 66 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/webpack.config'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/jsx-pragmatic_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 72bc61c3caee7e5a4ba0dd1927ff9802 2 | // flow-typed version: <>/@krakenjs/jsx-pragmatic_v^3.0.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/jsx-pragmatic' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/jsx-pragmatic' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/jsx-pragmatic/dist/jsx-pragmatic-demo' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/jsx-pragmatic/dist/jsx-pragmatic' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/jsx-pragmatic/dist/jsx-pragmatic.min' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/jsx-pragmatic/dist/module/component' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/jsx-pragmatic/dist/module/component/regex' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/jsx-pragmatic/dist/module/component/style' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module '@krakenjs/jsx-pragmatic/dist/module/constants' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module '@krakenjs/jsx-pragmatic/dist/module' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module '@krakenjs/jsx-pragmatic/dist/module/node' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/dom' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/html' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/preact' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/react' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/regex' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/text' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module '@krakenjs/jsx-pragmatic/dist/module/types' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module '@krakenjs/jsx-pragmatic/dist/module/util' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module '@krakenjs/jsx-pragmatic/src/component' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module '@krakenjs/jsx-pragmatic/src/component/regex' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module '@krakenjs/jsx-pragmatic/src/component/style' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module '@krakenjs/jsx-pragmatic/src/constants' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module '@krakenjs/jsx-pragmatic/src' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module '@krakenjs/jsx-pragmatic/src/node' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module '@krakenjs/jsx-pragmatic/src/renderers/dom' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module '@krakenjs/jsx-pragmatic/src/renderers/html' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module '@krakenjs/jsx-pragmatic/src/renderers' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module '@krakenjs/jsx-pragmatic/src/renderers/preact' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module '@krakenjs/jsx-pragmatic/src/renderers/react' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module '@krakenjs/jsx-pragmatic/src/renderers/regex' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module '@krakenjs/jsx-pragmatic/src/renderers/text' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module '@krakenjs/jsx-pragmatic/src/types' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module '@krakenjs/jsx-pragmatic/src/util' { 154 | declare module.exports: any; 155 | } 156 | 157 | // Filename aliases 158 | declare module '@krakenjs/jsx-pragmatic/dist/jsx-pragmatic-demo.js' { 159 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/jsx-pragmatic-demo'>; 160 | } 161 | declare module '@krakenjs/jsx-pragmatic/dist/jsx-pragmatic.js' { 162 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/jsx-pragmatic'>; 163 | } 164 | declare module '@krakenjs/jsx-pragmatic/dist/jsx-pragmatic.min.js' { 165 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/jsx-pragmatic.min'>; 166 | } 167 | declare module '@krakenjs/jsx-pragmatic/dist/module/component/index' { 168 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/component'>; 169 | } 170 | declare module '@krakenjs/jsx-pragmatic/dist/module/component/index.js' { 171 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/component'>; 172 | } 173 | declare module '@krakenjs/jsx-pragmatic/dist/module/component/regex.js' { 174 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/component/regex'>; 175 | } 176 | declare module '@krakenjs/jsx-pragmatic/dist/module/component/style.js' { 177 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/component/style'>; 178 | } 179 | declare module '@krakenjs/jsx-pragmatic/dist/module/constants.js' { 180 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/constants'>; 181 | } 182 | declare module '@krakenjs/jsx-pragmatic/dist/module/index' { 183 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module'>; 184 | } 185 | declare module '@krakenjs/jsx-pragmatic/dist/module/index.js' { 186 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module'>; 187 | } 188 | declare module '@krakenjs/jsx-pragmatic/dist/module/node.js' { 189 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/node'>; 190 | } 191 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/dom.js' { 192 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers/dom'>; 193 | } 194 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/html.js' { 195 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers/html'>; 196 | } 197 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/index' { 198 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers'>; 199 | } 200 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/index.js' { 201 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers'>; 202 | } 203 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/preact.js' { 204 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers/preact'>; 205 | } 206 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/react.js' { 207 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers/react'>; 208 | } 209 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/regex.js' { 210 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers/regex'>; 211 | } 212 | declare module '@krakenjs/jsx-pragmatic/dist/module/renderers/text.js' { 213 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/renderers/text'>; 214 | } 215 | declare module '@krakenjs/jsx-pragmatic/dist/module/types.js' { 216 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/types'>; 217 | } 218 | declare module '@krakenjs/jsx-pragmatic/dist/module/util.js' { 219 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/dist/module/util'>; 220 | } 221 | declare module '@krakenjs/jsx-pragmatic/index' { 222 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic'>; 223 | } 224 | declare module '@krakenjs/jsx-pragmatic/index.js' { 225 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic'>; 226 | } 227 | declare module '@krakenjs/jsx-pragmatic/src/component/index' { 228 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/component'>; 229 | } 230 | declare module '@krakenjs/jsx-pragmatic/src/component/index.js' { 231 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/component'>; 232 | } 233 | declare module '@krakenjs/jsx-pragmatic/src/component/regex.jsx' { 234 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/component/regex'>; 235 | } 236 | declare module '@krakenjs/jsx-pragmatic/src/component/style.jsx' { 237 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/component/style'>; 238 | } 239 | declare module '@krakenjs/jsx-pragmatic/src/constants.js' { 240 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/constants'>; 241 | } 242 | declare module '@krakenjs/jsx-pragmatic/src/index' { 243 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src'>; 244 | } 245 | declare module '@krakenjs/jsx-pragmatic/src/index.js' { 246 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src'>; 247 | } 248 | declare module '@krakenjs/jsx-pragmatic/src/node.js' { 249 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/node'>; 250 | } 251 | declare module '@krakenjs/jsx-pragmatic/src/renderers/dom.js' { 252 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers/dom'>; 253 | } 254 | declare module '@krakenjs/jsx-pragmatic/src/renderers/html.js' { 255 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers/html'>; 256 | } 257 | declare module '@krakenjs/jsx-pragmatic/src/renderers/index' { 258 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers'>; 259 | } 260 | declare module '@krakenjs/jsx-pragmatic/src/renderers/index.js' { 261 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers'>; 262 | } 263 | declare module '@krakenjs/jsx-pragmatic/src/renderers/preact.js' { 264 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers/preact'>; 265 | } 266 | declare module '@krakenjs/jsx-pragmatic/src/renderers/react.js' { 267 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers/react'>; 268 | } 269 | declare module '@krakenjs/jsx-pragmatic/src/renderers/regex.js' { 270 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers/regex'>; 271 | } 272 | declare module '@krakenjs/jsx-pragmatic/src/renderers/text.js' { 273 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/renderers/text'>; 274 | } 275 | declare module '@krakenjs/jsx-pragmatic/src/types.js' { 276 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/types'>; 277 | } 278 | declare module '@krakenjs/jsx-pragmatic/src/util.js' { 279 | declare module.exports: $Exports<'@krakenjs/jsx-pragmatic/src/util'>; 280 | } 281 | -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/sync-browser-mocks_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 21b0f6eadd22b58510546ea72438827b 2 | // flow-typed version: <>/@krakenjs/sync-browser-mocks_v^3.0.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/sync-browser-mocks' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/sync-browser-mocks' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/sync-browser-mocks/dist/sync-browser-mocks' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/sync-browser-mocks/dist/sync-browser-mocks.min' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/sync-browser-mocks/src' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/sync-browser-mocks/src/timeout' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/sync-browser-mocks/src/webSocket' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/sync-browser-mocks/src/xhr' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module '@krakenjs/sync-browser-mocks/dist/sync-browser-mocks.js' { 51 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/dist/sync-browser-mocks'>; 52 | } 53 | declare module '@krakenjs/sync-browser-mocks/dist/sync-browser-mocks.min.js' { 54 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/dist/sync-browser-mocks.min'>; 55 | } 56 | declare module '@krakenjs/sync-browser-mocks/src/index' { 57 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/src'>; 58 | } 59 | declare module '@krakenjs/sync-browser-mocks/src/index.js' { 60 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/src'>; 61 | } 62 | declare module '@krakenjs/sync-browser-mocks/src/timeout.js' { 63 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/src/timeout'>; 64 | } 65 | declare module '@krakenjs/sync-browser-mocks/src/webSocket.js' { 66 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/src/webSocket'>; 67 | } 68 | declare module '@krakenjs/sync-browser-mocks/src/xhr.js' { 69 | declare module.exports: $Exports<'@krakenjs/sync-browser-mocks/src/xhr'>; 70 | } 71 | -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/zalgo-promise_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: fcd824534c02d460f9f3c0d03aa85634 2 | // flow-typed version: <>/@krakenjs/zalgo-promise_v^2.0.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/zalgo-promise' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/zalgo-promise' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/zalgo-promise/dist/module/exceptions' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/zalgo-promise/dist/module/export' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/zalgo-promise/dist/module/flush' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/zalgo-promise/dist/module' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/zalgo-promise/dist/module/promise' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/zalgo-promise/dist/module/types' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module '@krakenjs/zalgo-promise/dist/module/utils' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module '@krakenjs/zalgo-promise/dist/zalgo-promise' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module '@krakenjs/zalgo-promise/dist/zalgo-promise.min' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module '@krakenjs/zalgo-promise/src/exceptions' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module '@krakenjs/zalgo-promise/src/export' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module '@krakenjs/zalgo-promise/src/flush' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module '@krakenjs/zalgo-promise/src' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module '@krakenjs/zalgo-promise/src/promise' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module '@krakenjs/zalgo-promise/src/types' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module '@krakenjs/zalgo-promise/src/utils' { 86 | declare module.exports: any; 87 | } 88 | 89 | // Filename aliases 90 | declare module '@krakenjs/zalgo-promise/dist/module/exceptions.js' { 91 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module/exceptions'>; 92 | } 93 | declare module '@krakenjs/zalgo-promise/dist/module/export.js' { 94 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module/export'>; 95 | } 96 | declare module '@krakenjs/zalgo-promise/dist/module/flush.js' { 97 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module/flush'>; 98 | } 99 | declare module '@krakenjs/zalgo-promise/dist/module/index' { 100 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module'>; 101 | } 102 | declare module '@krakenjs/zalgo-promise/dist/module/index.js' { 103 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module'>; 104 | } 105 | declare module '@krakenjs/zalgo-promise/dist/module/promise.js' { 106 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module/promise'>; 107 | } 108 | declare module '@krakenjs/zalgo-promise/dist/module/types.js' { 109 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module/types'>; 110 | } 111 | declare module '@krakenjs/zalgo-promise/dist/module/utils.js' { 112 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/module/utils'>; 113 | } 114 | declare module '@krakenjs/zalgo-promise/dist/zalgo-promise.js' { 115 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/zalgo-promise'>; 116 | } 117 | declare module '@krakenjs/zalgo-promise/dist/zalgo-promise.min.js' { 118 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/dist/zalgo-promise.min'>; 119 | } 120 | declare module '@krakenjs/zalgo-promise/index' { 121 | declare module.exports: $Exports<'@krakenjs/zalgo-promise'>; 122 | } 123 | declare module '@krakenjs/zalgo-promise/index.js' { 124 | declare module.exports: $Exports<'@krakenjs/zalgo-promise'>; 125 | } 126 | declare module '@krakenjs/zalgo-promise/src/exceptions.js' { 127 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src/exceptions'>; 128 | } 129 | declare module '@krakenjs/zalgo-promise/src/export.js' { 130 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src/export'>; 131 | } 132 | declare module '@krakenjs/zalgo-promise/src/flush.js' { 133 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src/flush'>; 134 | } 135 | declare module '@krakenjs/zalgo-promise/src/index' { 136 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src'>; 137 | } 138 | declare module '@krakenjs/zalgo-promise/src/index.js' { 139 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src'>; 140 | } 141 | declare module '@krakenjs/zalgo-promise/src/promise.js' { 142 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src/promise'>; 143 | } 144 | declare module '@krakenjs/zalgo-promise/src/types.js' { 145 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src/types'>; 146 | } 147 | declare module '@krakenjs/zalgo-promise/src/utils.js' { 148 | declare module.exports: $Exports<'@krakenjs/zalgo-promise/src/utils'>; 149 | } 150 | -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/zoid_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6c5038bd20de965152623abf25204bd1 2 | // flow-typed version: <>/@krakenjs/zoid_v^10.0.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/zoid' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/zoid' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/zoid/dist/zoid.frame' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/zoid/dist/zoid.frame.min' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/zoid/dist/zoid.frameworks.frame' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/zoid/dist/zoid.frameworks.frame.min' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/zoid/dist/zoid.frameworks' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/zoid/dist/zoid.frameworks.min' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module '@krakenjs/zoid/dist/zoid' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module '@krakenjs/zoid/dist/zoid.min' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module '@krakenjs/zoid/globals' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module '@krakenjs/zoid/src/babel.config' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module '@krakenjs/zoid/src/child/child' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module '@krakenjs/zoid/src/child' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module '@krakenjs/zoid/src/child/props' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module '@krakenjs/zoid/src/component/component' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module '@krakenjs/zoid/src/component' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module '@krakenjs/zoid/src/component/props' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module '@krakenjs/zoid/src/component/templates/component' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module '@krakenjs/zoid/src/component/templates/container' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module '@krakenjs/zoid/src/component/templates' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module '@krakenjs/zoid/src/component/validate' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module '@krakenjs/zoid/src/constants' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module '@krakenjs/zoid/src/declarations' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module '@krakenjs/zoid/src/drivers/angular' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module '@krakenjs/zoid/src/drivers/angular2' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module '@krakenjs/zoid/src/drivers' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module '@krakenjs/zoid/src/drivers/react' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module '@krakenjs/zoid/src/drivers/vue' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module '@krakenjs/zoid/src/drivers/vue3' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module '@krakenjs/zoid/src' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module '@krakenjs/zoid/src/lib/global' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module '@krakenjs/zoid/src/lib' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module '@krakenjs/zoid/src/lib/serialize' { 150 | declare module.exports: any; 151 | } 152 | 153 | declare module '@krakenjs/zoid/src/lib/window' { 154 | declare module.exports: any; 155 | } 156 | 157 | declare module '@krakenjs/zoid/src/parent' { 158 | declare module.exports: any; 159 | } 160 | 161 | declare module '@krakenjs/zoid/src/parent/parent' { 162 | declare module.exports: any; 163 | } 164 | 165 | declare module '@krakenjs/zoid/src/parent/props' { 166 | declare module.exports: any; 167 | } 168 | 169 | declare module '@krakenjs/zoid/src/types' { 170 | declare module.exports: any; 171 | } 172 | 173 | // Filename aliases 174 | declare module '@krakenjs/zoid/dist/zoid.frame.js' { 175 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.frame'>; 176 | } 177 | declare module '@krakenjs/zoid/dist/zoid.frame.min.js' { 178 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.frame.min'>; 179 | } 180 | declare module '@krakenjs/zoid/dist/zoid.frameworks.frame.js' { 181 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.frameworks.frame'>; 182 | } 183 | declare module '@krakenjs/zoid/dist/zoid.frameworks.frame.min.js' { 184 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.frameworks.frame.min'>; 185 | } 186 | declare module '@krakenjs/zoid/dist/zoid.frameworks.js' { 187 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.frameworks'>; 188 | } 189 | declare module '@krakenjs/zoid/dist/zoid.frameworks.min.js' { 190 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.frameworks.min'>; 191 | } 192 | declare module '@krakenjs/zoid/dist/zoid.js' { 193 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid'>; 194 | } 195 | declare module '@krakenjs/zoid/dist/zoid.min.js' { 196 | declare module.exports: $Exports<'@krakenjs/zoid/dist/zoid.min'>; 197 | } 198 | declare module '@krakenjs/zoid/globals.js' { 199 | declare module.exports: $Exports<'@krakenjs/zoid/globals'>; 200 | } 201 | declare module '@krakenjs/zoid/index' { 202 | declare module.exports: $Exports<'@krakenjs/zoid'>; 203 | } 204 | declare module '@krakenjs/zoid/index.js' { 205 | declare module.exports: $Exports<'@krakenjs/zoid'>; 206 | } 207 | declare module '@krakenjs/zoid/src/babel.config.js' { 208 | declare module.exports: $Exports<'@krakenjs/zoid/src/babel.config'>; 209 | } 210 | declare module '@krakenjs/zoid/src/child/child.js' { 211 | declare module.exports: $Exports<'@krakenjs/zoid/src/child/child'>; 212 | } 213 | declare module '@krakenjs/zoid/src/child/index' { 214 | declare module.exports: $Exports<'@krakenjs/zoid/src/child'>; 215 | } 216 | declare module '@krakenjs/zoid/src/child/index.js' { 217 | declare module.exports: $Exports<'@krakenjs/zoid/src/child'>; 218 | } 219 | declare module '@krakenjs/zoid/src/child/props.js' { 220 | declare module.exports: $Exports<'@krakenjs/zoid/src/child/props'>; 221 | } 222 | declare module '@krakenjs/zoid/src/component/component.js' { 223 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/component'>; 224 | } 225 | declare module '@krakenjs/zoid/src/component/index' { 226 | declare module.exports: $Exports<'@krakenjs/zoid/src/component'>; 227 | } 228 | declare module '@krakenjs/zoid/src/component/index.js' { 229 | declare module.exports: $Exports<'@krakenjs/zoid/src/component'>; 230 | } 231 | declare module '@krakenjs/zoid/src/component/props.js' { 232 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/props'>; 233 | } 234 | declare module '@krakenjs/zoid/src/component/templates/component.js' { 235 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/templates/component'>; 236 | } 237 | declare module '@krakenjs/zoid/src/component/templates/container.js' { 238 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/templates/container'>; 239 | } 240 | declare module '@krakenjs/zoid/src/component/templates/index' { 241 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/templates'>; 242 | } 243 | declare module '@krakenjs/zoid/src/component/templates/index.js' { 244 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/templates'>; 245 | } 246 | declare module '@krakenjs/zoid/src/component/validate.js' { 247 | declare module.exports: $Exports<'@krakenjs/zoid/src/component/validate'>; 248 | } 249 | declare module '@krakenjs/zoid/src/constants.js' { 250 | declare module.exports: $Exports<'@krakenjs/zoid/src/constants'>; 251 | } 252 | declare module '@krakenjs/zoid/src/declarations.js' { 253 | declare module.exports: $Exports<'@krakenjs/zoid/src/declarations'>; 254 | } 255 | declare module '@krakenjs/zoid/src/drivers/angular.js' { 256 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers/angular'>; 257 | } 258 | declare module '@krakenjs/zoid/src/drivers/angular2.js' { 259 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers/angular2'>; 260 | } 261 | declare module '@krakenjs/zoid/src/drivers/index' { 262 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers'>; 263 | } 264 | declare module '@krakenjs/zoid/src/drivers/index.js' { 265 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers'>; 266 | } 267 | declare module '@krakenjs/zoid/src/drivers/react.js' { 268 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers/react'>; 269 | } 270 | declare module '@krakenjs/zoid/src/drivers/vue.js' { 271 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers/vue'>; 272 | } 273 | declare module '@krakenjs/zoid/src/drivers/vue3.js' { 274 | declare module.exports: $Exports<'@krakenjs/zoid/src/drivers/vue3'>; 275 | } 276 | declare module '@krakenjs/zoid/src/index' { 277 | declare module.exports: $Exports<'@krakenjs/zoid/src'>; 278 | } 279 | declare module '@krakenjs/zoid/src/index.js' { 280 | declare module.exports: $Exports<'@krakenjs/zoid/src'>; 281 | } 282 | declare module '@krakenjs/zoid/src/lib/global.js' { 283 | declare module.exports: $Exports<'@krakenjs/zoid/src/lib/global'>; 284 | } 285 | declare module '@krakenjs/zoid/src/lib/index' { 286 | declare module.exports: $Exports<'@krakenjs/zoid/src/lib'>; 287 | } 288 | declare module '@krakenjs/zoid/src/lib/index.js' { 289 | declare module.exports: $Exports<'@krakenjs/zoid/src/lib'>; 290 | } 291 | declare module '@krakenjs/zoid/src/lib/serialize.js' { 292 | declare module.exports: $Exports<'@krakenjs/zoid/src/lib/serialize'>; 293 | } 294 | declare module '@krakenjs/zoid/src/lib/window.js' { 295 | declare module.exports: $Exports<'@krakenjs/zoid/src/lib/window'>; 296 | } 297 | declare module '@krakenjs/zoid/src/parent/index' { 298 | declare module.exports: $Exports<'@krakenjs/zoid/src/parent'>; 299 | } 300 | declare module '@krakenjs/zoid/src/parent/index.js' { 301 | declare module.exports: $Exports<'@krakenjs/zoid/src/parent'>; 302 | } 303 | declare module '@krakenjs/zoid/src/parent/parent.js' { 304 | declare module.exports: $Exports<'@krakenjs/zoid/src/parent/parent'>; 305 | } 306 | declare module '@krakenjs/zoid/src/parent/props.js' { 307 | declare module.exports: $Exports<'@krakenjs/zoid/src/parent/props'>; 308 | } 309 | declare module '@krakenjs/zoid/src/types.js' { 310 | declare module.exports: $Exports<'@krakenjs/zoid/src/types'>; 311 | } 312 | -------------------------------------------------------------------------------- /flow-typed/npm/@octokit/rest_v18.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6103021a6389a42ea8b41c577b3f91b3 2 | // flow-typed version: 79dc43986b/@octokit/rest_v18.x.x/flow_>=v0.83.x 3 | 4 | declare module '@octokit/rest' { 5 | /** 6 | * Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled 7 | */ 8 | declare type RequestRequestOptions = {| 9 | /** 10 | * Node only. Useful for custom proxy, certificate, or dns lookup. 11 | * 12 | * @see https://nodejs.org/api/http.html#http_class_http_agent 13 | */ 14 | agent?: mixed, 15 | /** 16 | * Custom replacement for built-in fetch method. Useful for testing or request hooks. 17 | */ 18 | fetch?: any, 19 | /** 20 | * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. 21 | */ 22 | signal?: any, 23 | /** 24 | * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead. 25 | */ 26 | timeout?: number, 27 | [option: string]: any, 28 | |}; 29 | 30 | declare class Octokit { 31 | constructor(options?: {| 32 | authStrategy?: any, 33 | auth?: any, 34 | userAgent?: string, 35 | previews?: Array, 36 | baseUrl?: string, 37 | log?: {| 38 | debug?: (message: string) => mixed; 39 | info?: (message: string) => mixed; 40 | warn?: (message: string) => mixed; 41 | error?: (message: string) => mixed; 42 | |}, 43 | request?: RequestRequestOptions, 44 | timeZone?: string, 45 | [option: string]: any, 46 | |}): this; 47 | 48 | static VERSION: string; 49 | 50 | actions: {| [key: string]: any |}, 51 | activity: {| [key: string]: any |}, 52 | apps: {| [key: string]: any |}, 53 | auth: (...args: Array) => Promise<{| [key: string]: any |}>, 54 | billing: {| [key: string]: any |}, 55 | checks: {| [key: string]: any |}, 56 | codeScanning: {| [key: string]: any |}, 57 | codesOfConduct: {| [key: string]: any |}, 58 | emojis: {| [key: string]: any |}, 59 | enterpriseAdmin: {| [key: string]: any |}, 60 | gists: {| [key: string]: any |}, 61 | git: {| [key: string]: any |}, 62 | gitignore: {| [key: string]: any |}, 63 | graphql: (...args: Array) => any, 64 | hook: (...args: Array) => any, 65 | interactions: {| [key: string]: any |}, 66 | issues: {| [key: string]: any |}, 67 | licenses: {| [key: string]: any |}, 68 | log:{| [key: string]: any |}, 69 | markdown: {| [key: string]: any |}, 70 | meta: {| [key: string]: any |}, 71 | migrations: {| [key: string]: any |}, 72 | orgs: {| [key: string]: any |}, 73 | packages: {| [key: string]: any |}, 74 | paginate: (...args: Array) => any, 75 | projects: {| [key: string]: any |}, 76 | pulls: {| [key: string]: any |}, 77 | rateLimit: {| [key: string]: any |}, 78 | reactions: {| [key: string]: any |}, 79 | repos: { 80 | getContent: ({| 81 | owner: string, 82 | repo: string, 83 | path?: string, 84 | ref?: string, 85 | |}) => Promise<{| 86 | headers: {| [key: string]: any |}, 87 | status: number, 88 | url: string, 89 | data: Array<{| 90 | download_url: any, 91 | git_url: string, 92 | html_url: string, 93 | name: string, 94 | path: string, 95 | sha: string, 96 | size: number, 97 | type: string, 98 | url: string, 99 | _links: {| 100 | git: string, 101 | html: string, 102 | self: string, 103 | |} 104 | |}>, 105 | |}>, 106 | /** 107 | * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the Repository Tags API. 108 | * 109 | * Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. 110 | */ 111 | listReleases: ({| 112 | /** 113 | * The account owner of the repository. The name is not case sensitive. 114 | */ 115 | owner: string, 116 | /** 117 | * The name of the repository. The name is not case sensitive. 118 | */ 119 | repo: string, 120 | /** 121 | * The number of results per page (max 100). 122 | */ 123 | page?: number, 124 | /** 125 | * Page number of the results to fetch. 126 | */ 127 | per_page?: number, 128 | |}) => Promise<{| 129 | headers: {| [key: string]: any |}, 130 | status: number, 131 | url: string, 132 | data: Array<{| 133 | url: string, 134 | assets_url: string, 135 | upload_url: string, 136 | html_url: string, 137 | id: number, 138 | author: {| 139 | login: string, 140 | id: number, 141 | node_id: string, 142 | avatar_url: string, 143 | gravatar_id: string, 144 | url: string, 145 | html_url: string, 146 | followers_url: string, 147 | following_url: string, 148 | gists_url: string, 149 | starred_url: string, 150 | subscriptions_url: string, 151 | organizations_url: string, 152 | repos_url: string, 153 | events_url: string, 154 | received_events_url: string, 155 | type: string, 156 | site_admin: boolean, 157 | |}, 158 | node_id: string, 159 | tag_name: string, 160 | target_commitish: string, 161 | name: any, 162 | draft: boolean, 163 | prerelease: boolean, 164 | created_at: string, 165 | published_at: string, 166 | assets: Array, 167 | tarball_url: string, 168 | zipball_url: string, 169 | body: string, 170 | |}>, 171 | |}>, 172 | [key: string]: any, 173 | }, 174 | request: (...args: Array) => any, 175 | rest: {| [key: string]: any |}, 176 | search: {| [key: string]: any |}, 177 | secretScanning: {| [key: string]: any |}, 178 | teams: {| [key: string]: any |}, 179 | users: {| [key: string]: any |}, 180 | } 181 | 182 | declare module.exports: {| 183 | Octokit: typeof Octokit, 184 | |}; 185 | } 186 | -------------------------------------------------------------------------------- /flow-typed/npm/@paypal/sdk-constants_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: ad7c28370e6140fec6886c4407c1a281 2 | // flow-typed version: <>/@paypal/sdk-constants_v^1.0.128/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@paypal/sdk-constants' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@paypal/sdk-constants' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@paypal/sdk-constants/dist/module/apm' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@paypal/sdk-constants/dist/module/defaults' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@paypal/sdk-constants/dist/module/env' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@paypal/sdk-constants/dist/module/error' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@paypal/sdk-constants/dist/module/fpti' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@paypal/sdk-constants/dist/module/funding' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module '@paypal/sdk-constants/dist/module' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module '@paypal/sdk-constants/dist/module/locale' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module '@paypal/sdk-constants/dist/module/observability' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module '@paypal/sdk-constants/dist/module/order' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module '@paypal/sdk-constants/dist/module/params' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module '@paypal/sdk-constants/dist/module/platform' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module '@paypal/sdk-constants/dist/module/types' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module '@paypal/sdk-constants/dist/paypal-sdk-constants' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module '@paypal/sdk-constants/dist/paypal-sdk-constants.min' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module '@paypal/sdk-constants/src/apm' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module '@paypal/sdk-constants/src/defaults' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module '@paypal/sdk-constants/src/env' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module '@paypal/sdk-constants/src/error' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module '@paypal/sdk-constants/src/fpti' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module '@paypal/sdk-constants/src/funding' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module '@paypal/sdk-constants/src' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module '@paypal/sdk-constants/src/locale' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module '@paypal/sdk-constants/src/observability' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module '@paypal/sdk-constants/src/order' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module '@paypal/sdk-constants/src/params' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module '@paypal/sdk-constants/src/platform' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module '@paypal/sdk-constants/src/types' { 134 | declare module.exports: any; 135 | } 136 | 137 | // Filename aliases 138 | declare module '@paypal/sdk-constants/dist/module/apm.js' { 139 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/apm'>; 140 | } 141 | declare module '@paypal/sdk-constants/dist/module/defaults.js' { 142 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/defaults'>; 143 | } 144 | declare module '@paypal/sdk-constants/dist/module/env.js' { 145 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/env'>; 146 | } 147 | declare module '@paypal/sdk-constants/dist/module/error.js' { 148 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/error'>; 149 | } 150 | declare module '@paypal/sdk-constants/dist/module/fpti.js' { 151 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/fpti'>; 152 | } 153 | declare module '@paypal/sdk-constants/dist/module/funding.js' { 154 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/funding'>; 155 | } 156 | declare module '@paypal/sdk-constants/dist/module/index' { 157 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module'>; 158 | } 159 | declare module '@paypal/sdk-constants/dist/module/index.js' { 160 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module'>; 161 | } 162 | declare module '@paypal/sdk-constants/dist/module/locale.js' { 163 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/locale'>; 164 | } 165 | declare module '@paypal/sdk-constants/dist/module/observability.js' { 166 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/observability'>; 167 | } 168 | declare module '@paypal/sdk-constants/dist/module/order.js' { 169 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/order'>; 170 | } 171 | declare module '@paypal/sdk-constants/dist/module/params.js' { 172 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/params'>; 173 | } 174 | declare module '@paypal/sdk-constants/dist/module/platform.js' { 175 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/platform'>; 176 | } 177 | declare module '@paypal/sdk-constants/dist/module/types.js' { 178 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/module/types'>; 179 | } 180 | declare module '@paypal/sdk-constants/dist/paypal-sdk-constants.js' { 181 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/paypal-sdk-constants'>; 182 | } 183 | declare module '@paypal/sdk-constants/dist/paypal-sdk-constants.min.js' { 184 | declare module.exports: $Exports<'@paypal/sdk-constants/dist/paypal-sdk-constants.min'>; 185 | } 186 | declare module '@paypal/sdk-constants/index' { 187 | declare module.exports: $Exports<'@paypal/sdk-constants'>; 188 | } 189 | declare module '@paypal/sdk-constants/index.js' { 190 | declare module.exports: $Exports<'@paypal/sdk-constants'>; 191 | } 192 | declare module '@paypal/sdk-constants/src/apm.js' { 193 | declare module.exports: $Exports<'@paypal/sdk-constants/src/apm'>; 194 | } 195 | declare module '@paypal/sdk-constants/src/defaults.js' { 196 | declare module.exports: $Exports<'@paypal/sdk-constants/src/defaults'>; 197 | } 198 | declare module '@paypal/sdk-constants/src/env.js' { 199 | declare module.exports: $Exports<'@paypal/sdk-constants/src/env'>; 200 | } 201 | declare module '@paypal/sdk-constants/src/error.js' { 202 | declare module.exports: $Exports<'@paypal/sdk-constants/src/error'>; 203 | } 204 | declare module '@paypal/sdk-constants/src/fpti.js' { 205 | declare module.exports: $Exports<'@paypal/sdk-constants/src/fpti'>; 206 | } 207 | declare module '@paypal/sdk-constants/src/funding.js' { 208 | declare module.exports: $Exports<'@paypal/sdk-constants/src/funding'>; 209 | } 210 | declare module '@paypal/sdk-constants/src/index' { 211 | declare module.exports: $Exports<'@paypal/sdk-constants/src'>; 212 | } 213 | declare module '@paypal/sdk-constants/src/index.js' { 214 | declare module.exports: $Exports<'@paypal/sdk-constants/src'>; 215 | } 216 | declare module '@paypal/sdk-constants/src/locale.js' { 217 | declare module.exports: $Exports<'@paypal/sdk-constants/src/locale'>; 218 | } 219 | declare module '@paypal/sdk-constants/src/observability.js' { 220 | declare module.exports: $Exports<'@paypal/sdk-constants/src/observability'>; 221 | } 222 | declare module '@paypal/sdk-constants/src/order.js' { 223 | declare module.exports: $Exports<'@paypal/sdk-constants/src/order'>; 224 | } 225 | declare module '@paypal/sdk-constants/src/params.js' { 226 | declare module.exports: $Exports<'@paypal/sdk-constants/src/params'>; 227 | } 228 | declare module '@paypal/sdk-constants/src/platform.js' { 229 | declare module.exports: $Exports<'@paypal/sdk-constants/src/platform'>; 230 | } 231 | declare module '@paypal/sdk-constants/src/types.js' { 232 | declare module.exports: $Exports<'@paypal/sdk-constants/src/types'>; 233 | } 234 | -------------------------------------------------------------------------------- /flow-typed/npm/babel-core_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 4c86b8f8cca4697fbf4c10a5be67f20b 2 | // flow-typed version: <>/babel-core_v^7.0.0-bridge.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'babel-core' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'babel-core' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | 26 | 27 | // Filename aliases 28 | declare module 'babel-core/index' { 29 | declare module.exports: $Exports<'babel-core'>; 30 | } 31 | declare module 'babel-core/index.js' { 32 | declare module.exports: $Exports<'babel-core'>; 33 | } 34 | -------------------------------------------------------------------------------- /flow-typed/npm/colors_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6c56e55f6af24f47c33f50f10270785f 2 | // flow-typed version: 590676b089/colors_v1.x.x/flow_>=v0.104.x 3 | 4 | declare module "colors" { 5 | declare type Color = { 6 | (text: string): string, 7 | strip: Color, 8 | stripColors: Color, 9 | black: Color, 10 | red: Color, 11 | green: Color, 12 | yellow: Color, 13 | blue: Color, 14 | magenta: Color, 15 | cyan: Color, 16 | white: Color, 17 | gray: Color, 18 | grey: Color, 19 | bgBlack: Color, 20 | bgRed: Color, 21 | bgGreen: Color, 22 | bgYellow: Color, 23 | bgBlue: Color, 24 | bgMagenta: Color, 25 | bgCyan: Color, 26 | bgWhite: Color, 27 | reset: Color, 28 | bold: Color, 29 | dim: Color, 30 | italic: Color, 31 | underline: Color, 32 | inverse: Color, 33 | hidden: Color, 34 | strikethrough: Color, 35 | rainbow: Color, 36 | zebra: Color, 37 | america: Color, 38 | trap: Color, 39 | random: Color, 40 | zalgo: Color, 41 | ... 42 | }; 43 | 44 | declare module.exports: { 45 | enabled: boolean, 46 | themes: {...}, 47 | enable(): void, 48 | disable(): void, 49 | setTheme(theme: {...}): void, 50 | strip: Color, 51 | stripColors: Color, 52 | black: Color, 53 | red: Color, 54 | green: Color, 55 | yellow: Color, 56 | blue: Color, 57 | magenta: Color, 58 | cyan: Color, 59 | white: Color, 60 | gray: Color, 61 | grey: Color, 62 | bgBlack: Color, 63 | bgRed: Color, 64 | bgGreen: Color, 65 | bgYellow: Color, 66 | bgBlue: Color, 67 | bgMagenta: Color, 68 | bgCyan: Color, 69 | bgWhite: Color, 70 | reset: Color, 71 | bold: Color, 72 | dim: Color, 73 | italic: Color, 74 | underline: Color, 75 | inverse: Color, 76 | hidden: Color, 77 | strikethrough: Color, 78 | rainbow: Color, 79 | zebra: Color, 80 | america: Color, 81 | trap: Color, 82 | random: Color, 83 | zalgo: Color, 84 | ... 85 | }; 86 | } 87 | 88 | declare module "colors/safe" { 89 | declare module.exports: $Exports<"colors">; 90 | } 91 | -------------------------------------------------------------------------------- /flow-typed/npm/conventional-changelog-cli_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bc1eb1ccc1a02d1b3e24a6f2ac2282e0 2 | // flow-typed version: <>/conventional-changelog-cli_v^2.0.11/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'conventional-changelog-cli' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'conventional-changelog-cli' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'conventional-changelog-cli/cli' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'conventional-changelog-cli/cli.js' { 31 | declare module.exports: $Exports<'conventional-changelog-cli/cli'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/cross-env_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: b1a83ad8763cd690895349d6822aaa4f 2 | // flow-typed version: <>/cross-env_v^7.0.3/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'cross-env' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'cross-env' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'cross-env/src/bin/cross-env-shell' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'cross-env/src/bin/cross-env' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'cross-env/src/command' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'cross-env/src' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'cross-env/src/is-windows' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'cross-env/src/variable' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'cross-env/src/bin/cross-env-shell.js' { 51 | declare module.exports: $Exports<'cross-env/src/bin/cross-env-shell'>; 52 | } 53 | declare module 'cross-env/src/bin/cross-env.js' { 54 | declare module.exports: $Exports<'cross-env/src/bin/cross-env'>; 55 | } 56 | declare module 'cross-env/src/command.js' { 57 | declare module.exports: $Exports<'cross-env/src/command'>; 58 | } 59 | declare module 'cross-env/src/index' { 60 | declare module.exports: $Exports<'cross-env/src'>; 61 | } 62 | declare module 'cross-env/src/index.js' { 63 | declare module.exports: $Exports<'cross-env/src'>; 64 | } 65 | declare module 'cross-env/src/is-windows.js' { 66 | declare module.exports: $Exports<'cross-env/src/is-windows'>; 67 | } 68 | declare module 'cross-env/src/variable.js' { 69 | declare module.exports: $Exports<'cross-env/src/variable'>; 70 | } 71 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-bin_v0.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 28fdff7f110e1c75efab63ff205dda30 2 | // flow-typed version: c6154227d1/flow-bin_v0.x.x/flow_>=v0.104.x 3 | 4 | declare module "flow-bin" { 5 | declare module.exports: string; 6 | } 7 | -------------------------------------------------------------------------------- /flow-typed/npm/fs-extra_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 82d254bdfd8879303559baa584084ed4 2 | // flow-typed version: <>/fs-extra_v^4.0.2/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'fs-extra' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'fs-extra' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'fs-extra/lib/copy-sync/copy-file-sync' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'fs-extra/lib/copy-sync/copy-sync' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'fs-extra/lib/copy-sync' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'fs-extra/lib/copy/copy' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'fs-extra/lib/copy' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'fs-extra/lib/copy/ncp' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'fs-extra/lib/empty' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'fs-extra/lib/ensure/file' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'fs-extra/lib/ensure' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'fs-extra/lib/ensure/link' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'fs-extra/lib/ensure/symlink-paths' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'fs-extra/lib/ensure/symlink-type' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'fs-extra/lib/ensure/symlink' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'fs-extra/lib/fs' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'fs-extra/lib' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'fs-extra/lib/json' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'fs-extra/lib/json/jsonfile' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'fs-extra/lib/json/output-json-sync' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'fs-extra/lib/json/output-json' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'fs-extra/lib/mkdirs' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'fs-extra/lib/mkdirs/mkdirs-sync' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'fs-extra/lib/mkdirs/mkdirs' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'fs-extra/lib/mkdirs/win32' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'fs-extra/lib/move-sync' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'fs-extra/lib/move' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'fs-extra/lib/output' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'fs-extra/lib/path-exists' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'fs-extra/lib/remove' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'fs-extra/lib/remove/rimraf' { 138 | declare module.exports: any; 139 | } 140 | 141 | declare module 'fs-extra/lib/util/assign' { 142 | declare module.exports: any; 143 | } 144 | 145 | declare module 'fs-extra/lib/util/buffer' { 146 | declare module.exports: any; 147 | } 148 | 149 | declare module 'fs-extra/lib/util/utimes' { 150 | declare module.exports: any; 151 | } 152 | 153 | // Filename aliases 154 | declare module 'fs-extra/lib/copy-sync/copy-file-sync.js' { 155 | declare module.exports: $Exports<'fs-extra/lib/copy-sync/copy-file-sync'>; 156 | } 157 | declare module 'fs-extra/lib/copy-sync/copy-sync.js' { 158 | declare module.exports: $Exports<'fs-extra/lib/copy-sync/copy-sync'>; 159 | } 160 | declare module 'fs-extra/lib/copy-sync/index' { 161 | declare module.exports: $Exports<'fs-extra/lib/copy-sync'>; 162 | } 163 | declare module 'fs-extra/lib/copy-sync/index.js' { 164 | declare module.exports: $Exports<'fs-extra/lib/copy-sync'>; 165 | } 166 | declare module 'fs-extra/lib/copy/copy.js' { 167 | declare module.exports: $Exports<'fs-extra/lib/copy/copy'>; 168 | } 169 | declare module 'fs-extra/lib/copy/index' { 170 | declare module.exports: $Exports<'fs-extra/lib/copy'>; 171 | } 172 | declare module 'fs-extra/lib/copy/index.js' { 173 | declare module.exports: $Exports<'fs-extra/lib/copy'>; 174 | } 175 | declare module 'fs-extra/lib/copy/ncp.js' { 176 | declare module.exports: $Exports<'fs-extra/lib/copy/ncp'>; 177 | } 178 | declare module 'fs-extra/lib/empty/index' { 179 | declare module.exports: $Exports<'fs-extra/lib/empty'>; 180 | } 181 | declare module 'fs-extra/lib/empty/index.js' { 182 | declare module.exports: $Exports<'fs-extra/lib/empty'>; 183 | } 184 | declare module 'fs-extra/lib/ensure/file.js' { 185 | declare module.exports: $Exports<'fs-extra/lib/ensure/file'>; 186 | } 187 | declare module 'fs-extra/lib/ensure/index' { 188 | declare module.exports: $Exports<'fs-extra/lib/ensure'>; 189 | } 190 | declare module 'fs-extra/lib/ensure/index.js' { 191 | declare module.exports: $Exports<'fs-extra/lib/ensure'>; 192 | } 193 | declare module 'fs-extra/lib/ensure/link.js' { 194 | declare module.exports: $Exports<'fs-extra/lib/ensure/link'>; 195 | } 196 | declare module 'fs-extra/lib/ensure/symlink-paths.js' { 197 | declare module.exports: $Exports<'fs-extra/lib/ensure/symlink-paths'>; 198 | } 199 | declare module 'fs-extra/lib/ensure/symlink-type.js' { 200 | declare module.exports: $Exports<'fs-extra/lib/ensure/symlink-type'>; 201 | } 202 | declare module 'fs-extra/lib/ensure/symlink.js' { 203 | declare module.exports: $Exports<'fs-extra/lib/ensure/symlink'>; 204 | } 205 | declare module 'fs-extra/lib/fs/index' { 206 | declare module.exports: $Exports<'fs-extra/lib/fs'>; 207 | } 208 | declare module 'fs-extra/lib/fs/index.js' { 209 | declare module.exports: $Exports<'fs-extra/lib/fs'>; 210 | } 211 | declare module 'fs-extra/lib/index' { 212 | declare module.exports: $Exports<'fs-extra/lib'>; 213 | } 214 | declare module 'fs-extra/lib/index.js' { 215 | declare module.exports: $Exports<'fs-extra/lib'>; 216 | } 217 | declare module 'fs-extra/lib/json/index' { 218 | declare module.exports: $Exports<'fs-extra/lib/json'>; 219 | } 220 | declare module 'fs-extra/lib/json/index.js' { 221 | declare module.exports: $Exports<'fs-extra/lib/json'>; 222 | } 223 | declare module 'fs-extra/lib/json/jsonfile.js' { 224 | declare module.exports: $Exports<'fs-extra/lib/json/jsonfile'>; 225 | } 226 | declare module 'fs-extra/lib/json/output-json-sync.js' { 227 | declare module.exports: $Exports<'fs-extra/lib/json/output-json-sync'>; 228 | } 229 | declare module 'fs-extra/lib/json/output-json.js' { 230 | declare module.exports: $Exports<'fs-extra/lib/json/output-json'>; 231 | } 232 | declare module 'fs-extra/lib/mkdirs/index' { 233 | declare module.exports: $Exports<'fs-extra/lib/mkdirs'>; 234 | } 235 | declare module 'fs-extra/lib/mkdirs/index.js' { 236 | declare module.exports: $Exports<'fs-extra/lib/mkdirs'>; 237 | } 238 | declare module 'fs-extra/lib/mkdirs/mkdirs-sync.js' { 239 | declare module.exports: $Exports<'fs-extra/lib/mkdirs/mkdirs-sync'>; 240 | } 241 | declare module 'fs-extra/lib/mkdirs/mkdirs.js' { 242 | declare module.exports: $Exports<'fs-extra/lib/mkdirs/mkdirs'>; 243 | } 244 | declare module 'fs-extra/lib/mkdirs/win32.js' { 245 | declare module.exports: $Exports<'fs-extra/lib/mkdirs/win32'>; 246 | } 247 | declare module 'fs-extra/lib/move-sync/index' { 248 | declare module.exports: $Exports<'fs-extra/lib/move-sync'>; 249 | } 250 | declare module 'fs-extra/lib/move-sync/index.js' { 251 | declare module.exports: $Exports<'fs-extra/lib/move-sync'>; 252 | } 253 | declare module 'fs-extra/lib/move/index' { 254 | declare module.exports: $Exports<'fs-extra/lib/move'>; 255 | } 256 | declare module 'fs-extra/lib/move/index.js' { 257 | declare module.exports: $Exports<'fs-extra/lib/move'>; 258 | } 259 | declare module 'fs-extra/lib/output/index' { 260 | declare module.exports: $Exports<'fs-extra/lib/output'>; 261 | } 262 | declare module 'fs-extra/lib/output/index.js' { 263 | declare module.exports: $Exports<'fs-extra/lib/output'>; 264 | } 265 | declare module 'fs-extra/lib/path-exists/index' { 266 | declare module.exports: $Exports<'fs-extra/lib/path-exists'>; 267 | } 268 | declare module 'fs-extra/lib/path-exists/index.js' { 269 | declare module.exports: $Exports<'fs-extra/lib/path-exists'>; 270 | } 271 | declare module 'fs-extra/lib/remove/index' { 272 | declare module.exports: $Exports<'fs-extra/lib/remove'>; 273 | } 274 | declare module 'fs-extra/lib/remove/index.js' { 275 | declare module.exports: $Exports<'fs-extra/lib/remove'>; 276 | } 277 | declare module 'fs-extra/lib/remove/rimraf.js' { 278 | declare module.exports: $Exports<'fs-extra/lib/remove/rimraf'>; 279 | } 280 | declare module 'fs-extra/lib/util/assign.js' { 281 | declare module.exports: $Exports<'fs-extra/lib/util/assign'>; 282 | } 283 | declare module 'fs-extra/lib/util/buffer.js' { 284 | declare module.exports: $Exports<'fs-extra/lib/util/buffer'>; 285 | } 286 | declare module 'fs-extra/lib/util/utimes.js' { 287 | declare module.exports: $Exports<'fs-extra/lib/util/utimes'>; 288 | } 289 | -------------------------------------------------------------------------------- /flow-typed/npm/glob_v7.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d2a519d7d007e9ba3e5bf2ac3ff76eca 2 | // flow-typed version: f243e51ed7/glob_v7.x.x/flow_>=v0.104.x 3 | 4 | declare module "glob" { 5 | declare type MinimatchOptions = {| 6 | debug?: boolean, 7 | nobrace?: boolean, 8 | noglobstar?: boolean, 9 | dot?: boolean, 10 | noext?: boolean, 11 | nocase?: boolean, 12 | nonull?: boolean, 13 | matchBase?: boolean, 14 | nocomment?: boolean, 15 | nonegate?: boolean, 16 | flipNegate?: boolean 17 | |}; 18 | 19 | declare type Options = {| 20 | ...MinimatchOptions, 21 | cwd?: string, 22 | root?: string, 23 | nomount?: boolean, 24 | mark?: boolean, 25 | nosort?: boolean, 26 | stat?: boolean, 27 | silent?: boolean, 28 | strict?: boolean, 29 | cache?: { [path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray, ... }, 30 | statCache?: { [path: string]: boolean | { isDirectory(): boolean, ... } | void, ... }, 31 | symlinks?: { [path: string]: boolean | void, ... }, 32 | realpathCache?: { [path: string]: string, ... }, 33 | sync?: boolean, 34 | nounique?: boolean, 35 | nodir?: boolean, 36 | ignore?: string | $ReadOnlyArray, 37 | follow?: boolean, 38 | realpath?: boolean, 39 | absolute?: boolean 40 | |}; 41 | 42 | /** 43 | * Called when an error occurs, or matches are found 44 | * err 45 | * matches: filenames found matching the pattern 46 | */ 47 | declare type CallBack = (err: ?Error, matches: Array) => void; 48 | 49 | declare class Glob extends events$EventEmitter { 50 | constructor(pattern: string): this; 51 | constructor(pattern: string, callback: CallBack): this; 52 | constructor(pattern: string, options: Options, callback: CallBack): this; 53 | 54 | minimatch: {...}; 55 | options: Options; 56 | aborted: boolean; 57 | cache: { [path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray, ... }; 58 | statCache: { [path: string]: boolean | { isDirectory(): boolean, ... } | void, ... }; 59 | symlinks: { [path: string]: boolean | void, ... }; 60 | realpathCache: { [path: string]: string, ... }; 61 | found: Array; 62 | 63 | pause(): void; 64 | resume(): void; 65 | abort(): void; 66 | } 67 | 68 | declare class GlobModule { 69 | Glob: Class; 70 | 71 | (pattern: string, callback: CallBack): void; 72 | (pattern: string, options: Options, callback: CallBack): void; 73 | 74 | hasMagic(pattern: string, options?: Options): boolean; 75 | sync(pattern: string, options?: Options): Array; 76 | } 77 | 78 | declare module.exports: GlobModule; 79 | } 80 | -------------------------------------------------------------------------------- /flow-typed/npm/husky_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2cd9408a99f03de51b20bf443ac561ce 2 | // flow-typed version: <>/husky_v^8.0.1/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'husky' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'husky' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'husky/lib/bin' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'husky/lib' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'husky/lib/bin.js' { 35 | declare module.exports: $Exports<'husky/lib/bin'>; 36 | } 37 | declare module 'husky/lib/index' { 38 | declare module.exports: $Exports<'husky/lib'>; 39 | } 40 | declare module 'husky/lib/index.js' { 41 | declare module.exports: $Exports<'husky/lib'>; 42 | } 43 | -------------------------------------------------------------------------------- /flow-typed/npm/imagemagick_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 77443d3ce0d93f9c927511f0f3914211 2 | // flow-typed version: <>/imagemagick_v^0.1.3/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'imagemagick' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'imagemagick' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'imagemagick/imagemagick' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'imagemagick/test-crop' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'imagemagick/test' { 34 | declare module.exports: any; 35 | } 36 | 37 | // Filename aliases 38 | declare module 'imagemagick/imagemagick.js' { 39 | declare module.exports: $Exports<'imagemagick/imagemagick'>; 40 | } 41 | declare module 'imagemagick/test-crop.js' { 42 | declare module.exports: $Exports<'imagemagick/test-crop'>; 43 | } 44 | declare module 'imagemagick/test.js' { 45 | declare module.exports: $Exports<'imagemagick/test'>; 46 | } 47 | -------------------------------------------------------------------------------- /flow-typed/npm/imgur_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0ac7a262d937b32e15983c5403693e3b 2 | // flow-typed version: <>/imgur_v^0.2.1/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'imgur' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'imgur' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'imgur/cli' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'imgur/lib/imgur' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'imgur/test/getAPIUrl' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'imgur/test/getClientId' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'imgur/test/getMashapeKey' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'imgur/test/imgurRequest' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'imgur/test/setAPIUrl' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'imgur/test/setClientId' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'imgur/test/setMashapeKey' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'imgur/test/uploadUrl' { 62 | declare module.exports: any; 63 | } 64 | 65 | // Filename aliases 66 | declare module 'imgur/cli.js' { 67 | declare module.exports: $Exports<'imgur/cli'>; 68 | } 69 | declare module 'imgur/lib/imgur.js' { 70 | declare module.exports: $Exports<'imgur/lib/imgur'>; 71 | } 72 | declare module 'imgur/test/getAPIUrl.js' { 73 | declare module.exports: $Exports<'imgur/test/getAPIUrl'>; 74 | } 75 | declare module 'imgur/test/getClientId.js' { 76 | declare module.exports: $Exports<'imgur/test/getClientId'>; 77 | } 78 | declare module 'imgur/test/getMashapeKey.js' { 79 | declare module.exports: $Exports<'imgur/test/getMashapeKey'>; 80 | } 81 | declare module 'imgur/test/imgurRequest.js' { 82 | declare module.exports: $Exports<'imgur/test/imgurRequest'>; 83 | } 84 | declare module 'imgur/test/setAPIUrl.js' { 85 | declare module.exports: $Exports<'imgur/test/setAPIUrl'>; 86 | } 87 | declare module 'imgur/test/setClientId.js' { 88 | declare module.exports: $Exports<'imgur/test/setClientId'>; 89 | } 90 | declare module 'imgur/test/setMashapeKey.js' { 91 | declare module.exports: $Exports<'imgur/test/setMashapeKey'>; 92 | } 93 | declare module 'imgur/test/uploadUrl.js' { 94 | declare module.exports: $Exports<'imgur/test/uploadUrl'>; 95 | } 96 | -------------------------------------------------------------------------------- /flow-typed/npm/lint-staged_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0eb1938be093223123f2d50649baea78 2 | // flow-typed version: <>/lint-staged_v^13.0.3/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'lint-staged' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'lint-staged' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'lint-staged/bin/lint-staged' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'lint-staged/lib/chunkFiles' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'lint-staged/lib/dynamicImport' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'lint-staged/lib/execGit' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'lint-staged/lib/figures' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'lint-staged/lib/file' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'lint-staged/lib/generateTasks' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'lint-staged/lib/getDiffCommand' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'lint-staged/lib/getRenderer' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'lint-staged/lib/getStagedFiles' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'lint-staged/lib/gitWorkflow' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'lint-staged/lib/groupFilesByConfig' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'lint-staged/lib' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'lint-staged/lib/loadConfig' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'lint-staged/lib/makeCmdTasks' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'lint-staged/lib/messages' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'lint-staged/lib/normalizePath' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'lint-staged/lib/parseGitZOutput' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'lint-staged/lib/printTaskOutput' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'lint-staged/lib/resolveConfig' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'lint-staged/lib/resolveGitRepo' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'lint-staged/lib/resolveTaskFn' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'lint-staged/lib/runAll' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'lint-staged/lib/searchConfigs' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'lint-staged/lib/state' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'lint-staged/lib/symbols' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'lint-staged/lib/validateBraces' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'lint-staged/lib/validateConfig' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'lint-staged/lib/validateOptions' { 138 | declare module.exports: any; 139 | } 140 | 141 | // Filename aliases 142 | declare module 'lint-staged/bin/lint-staged.js' { 143 | declare module.exports: $Exports<'lint-staged/bin/lint-staged'>; 144 | } 145 | declare module 'lint-staged/lib/chunkFiles.js' { 146 | declare module.exports: $Exports<'lint-staged/lib/chunkFiles'>; 147 | } 148 | declare module 'lint-staged/lib/dynamicImport.js' { 149 | declare module.exports: $Exports<'lint-staged/lib/dynamicImport'>; 150 | } 151 | declare module 'lint-staged/lib/execGit.js' { 152 | declare module.exports: $Exports<'lint-staged/lib/execGit'>; 153 | } 154 | declare module 'lint-staged/lib/figures.js' { 155 | declare module.exports: $Exports<'lint-staged/lib/figures'>; 156 | } 157 | declare module 'lint-staged/lib/file.js' { 158 | declare module.exports: $Exports<'lint-staged/lib/file'>; 159 | } 160 | declare module 'lint-staged/lib/generateTasks.js' { 161 | declare module.exports: $Exports<'lint-staged/lib/generateTasks'>; 162 | } 163 | declare module 'lint-staged/lib/getDiffCommand.js' { 164 | declare module.exports: $Exports<'lint-staged/lib/getDiffCommand'>; 165 | } 166 | declare module 'lint-staged/lib/getRenderer.js' { 167 | declare module.exports: $Exports<'lint-staged/lib/getRenderer'>; 168 | } 169 | declare module 'lint-staged/lib/getStagedFiles.js' { 170 | declare module.exports: $Exports<'lint-staged/lib/getStagedFiles'>; 171 | } 172 | declare module 'lint-staged/lib/gitWorkflow.js' { 173 | declare module.exports: $Exports<'lint-staged/lib/gitWorkflow'>; 174 | } 175 | declare module 'lint-staged/lib/groupFilesByConfig.js' { 176 | declare module.exports: $Exports<'lint-staged/lib/groupFilesByConfig'>; 177 | } 178 | declare module 'lint-staged/lib/index' { 179 | declare module.exports: $Exports<'lint-staged/lib'>; 180 | } 181 | declare module 'lint-staged/lib/index.js' { 182 | declare module.exports: $Exports<'lint-staged/lib'>; 183 | } 184 | declare module 'lint-staged/lib/loadConfig.js' { 185 | declare module.exports: $Exports<'lint-staged/lib/loadConfig'>; 186 | } 187 | declare module 'lint-staged/lib/makeCmdTasks.js' { 188 | declare module.exports: $Exports<'lint-staged/lib/makeCmdTasks'>; 189 | } 190 | declare module 'lint-staged/lib/messages.js' { 191 | declare module.exports: $Exports<'lint-staged/lib/messages'>; 192 | } 193 | declare module 'lint-staged/lib/normalizePath.js' { 194 | declare module.exports: $Exports<'lint-staged/lib/normalizePath'>; 195 | } 196 | declare module 'lint-staged/lib/parseGitZOutput.js' { 197 | declare module.exports: $Exports<'lint-staged/lib/parseGitZOutput'>; 198 | } 199 | declare module 'lint-staged/lib/printTaskOutput.js' { 200 | declare module.exports: $Exports<'lint-staged/lib/printTaskOutput'>; 201 | } 202 | declare module 'lint-staged/lib/resolveConfig.js' { 203 | declare module.exports: $Exports<'lint-staged/lib/resolveConfig'>; 204 | } 205 | declare module 'lint-staged/lib/resolveGitRepo.js' { 206 | declare module.exports: $Exports<'lint-staged/lib/resolveGitRepo'>; 207 | } 208 | declare module 'lint-staged/lib/resolveTaskFn.js' { 209 | declare module.exports: $Exports<'lint-staged/lib/resolveTaskFn'>; 210 | } 211 | declare module 'lint-staged/lib/runAll.js' { 212 | declare module.exports: $Exports<'lint-staged/lib/runAll'>; 213 | } 214 | declare module 'lint-staged/lib/searchConfigs.js' { 215 | declare module.exports: $Exports<'lint-staged/lib/searchConfigs'>; 216 | } 217 | declare module 'lint-staged/lib/state.js' { 218 | declare module.exports: $Exports<'lint-staged/lib/state'>; 219 | } 220 | declare module 'lint-staged/lib/symbols.js' { 221 | declare module.exports: $Exports<'lint-staged/lib/symbols'>; 222 | } 223 | declare module 'lint-staged/lib/validateBraces.js' { 224 | declare module.exports: $Exports<'lint-staged/lib/validateBraces'>; 225 | } 226 | declare module 'lint-staged/lib/validateConfig.js' { 227 | declare module.exports: $Exports<'lint-staged/lib/validateConfig'>; 228 | } 229 | declare module 'lint-staged/lib/validateOptions.js' { 230 | declare module.exports: $Exports<'lint-staged/lib/validateOptions'>; 231 | } 232 | -------------------------------------------------------------------------------- /flow-typed/npm/md5_v2.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 198b480a6b35dbf3a74cb37d21258b00 2 | // flow-typed version: c6154227d1/md5_v2.x.x/flow_>=v0.104.x 3 | 4 | // @flow 5 | 6 | declare module "md5" { 7 | declare module.exports: ( 8 | message: string | Buffer, 9 | options?: { 10 | asString?: boolean, 11 | asBytes?: boolean, 12 | encoding?: string, 13 | ... 14 | } 15 | ) => string; 16 | } 17 | -------------------------------------------------------------------------------- /flow-typed/npm/memory-fs_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: e19b361352d0aafd15fa0cdaceb14310 2 | // flow-typed version: <>/memory-fs_v^0.4.1/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'memory-fs' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'memory-fs' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'memory-fs/lib/join' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'memory-fs/lib/MemoryFileSystem' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'memory-fs/lib/normalize' { 34 | declare module.exports: any; 35 | } 36 | 37 | // Filename aliases 38 | declare module 'memory-fs/lib/join.js' { 39 | declare module.exports: $Exports<'memory-fs/lib/join'>; 40 | } 41 | declare module 'memory-fs/lib/MemoryFileSystem.js' { 42 | declare module.exports: $Exports<'memory-fs/lib/MemoryFileSystem'>; 43 | } 44 | declare module 'memory-fs/lib/normalize.js' { 45 | declare module.exports: $Exports<'memory-fs/lib/normalize'>; 46 | } 47 | -------------------------------------------------------------------------------- /flow-typed/npm/mkdirp_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 28ddcca31abd597a77830710de25f5fe 2 | // flow-typed version: a75473352d/mkdirp_v1.x.x/flow_>=v0.83.x 3 | 4 | declare module 'mkdirp' { 5 | import typeof { mkdir, stat } from 'fs'; 6 | 7 | declare type FsImplementation = { 8 | +mkdir?: mkdir, 9 | +stat?: stat, 10 | ... 11 | }; 12 | 13 | declare type Options = number | string | {| mode?: number; fs?: FsImplementation |}; 14 | 15 | declare type Callback = (err: ?Error, path: ?string) => void; 16 | 17 | declare module.exports: {| 18 | (path: string, options?: Options | Callback): Promise; 19 | sync(path: string, options?: Options): string | void; 20 | manual(path: string, options?: Options | Callback): Promise; 21 | manualSync(path: string, options?: Options): string | void; 22 | native(path: string, options?: Options | Callback): Promise; 23 | nativeSync(path: string, options?: Options): string | void; 24 | |}; 25 | } 26 | -------------------------------------------------------------------------------- /flow-typed/npm/mocha_v4.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 8b533a1271b4580048529f45ac3a3c68 2 | // flow-typed version: ba7bfb2fda/mocha_v4.x.x/flow_>=v0.104.x 3 | 4 | declare interface $npm$mocha$SetupOptions { 5 | slow?: number; 6 | timeout?: number; 7 | ui?: string; 8 | globals?: Array; 9 | reporter?: any; 10 | bail?: boolean; 11 | ignoreLeaks?: boolean; 12 | grep?: any; 13 | } 14 | 15 | declare type $npm$mocha$done = (error?: any) => any; 16 | 17 | // declare interface $npm$mocha$SuiteCallbackContext { 18 | // timeout(ms: number): void; 19 | // retries(n: number): void; 20 | // slow(ms: number): void; 21 | // } 22 | 23 | // declare interface $npm$mocha$TestCallbackContext { 24 | // skip(): void; 25 | // timeout(ms: number): void; 26 | // retries(n: number): void; 27 | // slow(ms: number): void; 28 | // [index: string]: any; 29 | // } 30 | 31 | declare interface $npm$mocha$Suite { 32 | parent: $npm$mocha$Suite; 33 | title: string; 34 | fullTitle(): string; 35 | } 36 | 37 | declare type $npm$mocha$ContextDefinition = {| 38 | (description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite; 39 | only(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite; 40 | skip(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): void; 41 | timeout(ms: number): void; 42 | |} 43 | 44 | declare type $npm$mocha$TestDefinition = {| 45 | (expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test; 46 | only(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test; 47 | skip(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): void; 48 | timeout(ms: number): void; 49 | state: 'failed' | 'passed'; 50 | |} 51 | 52 | declare interface $npm$mocha$Runner {} 53 | 54 | declare class $npm$mocha$BaseReporter { 55 | stats: { 56 | suites: number, 57 | tests: number, 58 | passes: number, 59 | pending: number, 60 | failures: number, 61 | ... 62 | }; 63 | 64 | constructor(runner: $npm$mocha$Runner): $npm$mocha$BaseReporter; 65 | } 66 | 67 | declare class $npm$mocha$DocReporter extends $npm$mocha$BaseReporter {} 68 | declare class $npm$mocha$DotReporter extends $npm$mocha$BaseReporter {} 69 | declare class $npm$mocha$HTMLReporter extends $npm$mocha$BaseReporter {} 70 | declare class $npm$mocha$HTMLCovReporter extends $npm$mocha$BaseReporter {} 71 | declare class $npm$mocha$JSONReporter extends $npm$mocha$BaseReporter {} 72 | declare class $npm$mocha$JSONCovReporter extends $npm$mocha$BaseReporter {} 73 | declare class $npm$mocha$JSONStreamReporter extends $npm$mocha$BaseReporter {} 74 | declare class $npm$mocha$LandingReporter extends $npm$mocha$BaseReporter {} 75 | declare class $npm$mocha$ListReporter extends $npm$mocha$BaseReporter {} 76 | declare class $npm$mocha$MarkdownReporter extends $npm$mocha$BaseReporter {} 77 | declare class $npm$mocha$MinReporter extends $npm$mocha$BaseReporter {} 78 | declare class $npm$mocha$NyanReporter extends $npm$mocha$BaseReporter {} 79 | declare class $npm$mocha$ProgressReporter extends $npm$mocha$BaseReporter { 80 | constructor(runner: $npm$mocha$Runner, options?: { 81 | open?: string, 82 | complete?: string, 83 | incomplete?: string, 84 | close?: string, 85 | ... 86 | }): $npm$mocha$ProgressReporter; 87 | } 88 | declare class $npm$mocha$SpecReporter extends $npm$mocha$BaseReporter {} 89 | declare class $npm$mocha$TAPReporter extends $npm$mocha$BaseReporter {} 90 | declare class $npm$mocha$XUnitReporter extends $npm$mocha$BaseReporter { 91 | constructor(runner: $npm$mocha$Runner, options?: any): $npm$mocha$XUnitReporter; 92 | } 93 | 94 | declare class $npm$mocha$Mocha { 95 | currentTest: $npm$mocha$TestDefinition; 96 | constructor(options?: { 97 | grep?: RegExp, 98 | ui?: string, 99 | reporter?: string, 100 | timeout?: number, 101 | reporterOptions?: any, 102 | slow?: number, 103 | bail?: boolean, 104 | ... 105 | }): $npm$mocha$Mocha; 106 | setup(options: $npm$mocha$SetupOptions): this; 107 | bail(value?: boolean): this; 108 | addFile(file: string): this; 109 | reporter(name: string): this; 110 | reporter(reporter: (runner: $npm$mocha$Runner, options: any) => any): this; 111 | ui(value: string): this; 112 | grep(value: string): this; 113 | grep(value: RegExp): this; 114 | invert(): this; 115 | ignoreLeaks(value: boolean): this; 116 | checkLeaks(): this; 117 | throwError(error: Error): void; 118 | growl(): this; 119 | globals(value: string): this; 120 | globals(values: Array): this; 121 | useColors(value: boolean): this; 122 | useInlineDiffs(value: boolean): this; 123 | timeout(value: number): this; 124 | slow(value: number): this; 125 | enableTimeouts(value: boolean): this; 126 | asyncOnly(value: boolean): this; 127 | noHighlighting(value: boolean): this; 128 | run(onComplete?: (failures: number) => void): $npm$mocha$Runner; 129 | 130 | static reporters: { 131 | Doc: $npm$mocha$DocReporter, 132 | Dot: $npm$mocha$DotReporter, 133 | HTML: $npm$mocha$HTMLReporter, 134 | HTMLCov: $npm$mocha$HTMLCovReporter, 135 | JSON: $npm$mocha$JSONReporter, 136 | JSONCov: $npm$mocha$JSONCovReporter, 137 | JSONStream: $npm$mocha$JSONStreamReporter, 138 | Landing: $npm$mocha$LandingReporter, 139 | List: $npm$mocha$ListReporter, 140 | Markdown: $npm$mocha$MarkdownReporter, 141 | Min: $npm$mocha$MinReporter, 142 | Nyan: $npm$mocha$NyanReporter, 143 | Progress: $npm$mocha$ProgressReporter, 144 | ... 145 | }; 146 | } 147 | 148 | // declare interface $npm$mocha$HookCallbackContext { 149 | // skip(): void; 150 | // timeout(ms: number): void; 151 | // [index: string]: any; 152 | // } 153 | 154 | declare interface $npm$mocha$Runnable { 155 | title: string; 156 | fn: Function; 157 | async: boolean; 158 | sync: boolean; 159 | timedOut: boolean; 160 | } 161 | 162 | declare interface $npm$mocha$Test extends $npm$mocha$Runnable { 163 | parent: $npm$mocha$Suite; 164 | pending: boolean; 165 | state: 'failed' | 'passed' | void; 166 | fullTitle(): string; 167 | } 168 | 169 | // declare interface $npm$mocha$BeforeAndAfterContext extends $npm$mocha$HookCallbackContext { 170 | // currentTest: $npm$mocha$Test; 171 | // } 172 | 173 | declare var mocha: $npm$mocha$Mocha; 174 | declare var describe: $npm$mocha$ContextDefinition; 175 | declare var xdescribe: $npm$mocha$ContextDefinition; 176 | declare var context: $npm$mocha$ContextDefinition; 177 | declare var suite: $npm$mocha$ContextDefinition; 178 | declare var it: $npm$mocha$TestDefinition; 179 | declare var xit: $npm$mocha$TestDefinition; 180 | declare var test: $npm$mocha$TestDefinition; 181 | declare var specify: $npm$mocha$TestDefinition; 182 | 183 | type Run = () => void; 184 | 185 | declare var run: Run; 186 | 187 | type Setup = (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; 188 | type Teardown = (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; 189 | type SuiteSetup = (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; 190 | type SuiteTeardown = (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; 191 | type Before = 192 | | (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void 193 | | (description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; 194 | type After = 195 | | (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void 196 | | (description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; 197 | type BeforeEach = 198 | | (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void 199 | | (description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; 200 | type AfterEach = 201 | | (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void 202 | | (description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; 203 | 204 | 205 | declare var setup: Setup; 206 | declare var teardown: Teardown; 207 | declare var suiteSetup: SuiteSetup; 208 | declare var suiteTeardown: SuiteTeardown; 209 | declare var before: Before 210 | declare var after: After; 211 | declare var beforeEach: BeforeEach; 212 | declare var afterEach: AfterEach; 213 | 214 | declare module "mocha" { 215 | declare export var mocha: $npm$mocha$TestDefinition; 216 | declare export var describe: $npm$mocha$ContextDefinition; 217 | declare export var xdescribe: $npm$mocha$ContextDefinition; 218 | declare export var context: $npm$mocha$ContextDefinition; 219 | declare export var suite: $npm$mocha$ContextDefinition; 220 | declare export var it: $npm$mocha$TestDefinition; 221 | declare export var xit: $npm$mocha$TestDefinition; 222 | declare export var test: $npm$mocha$TestDefinition; 223 | declare export var specify: $npm$mocha$TestDefinition; 224 | 225 | declare export var run: Run; 226 | 227 | declare export var setup: Setup; 228 | declare export var teardown: Teardown; 229 | declare export var suiteSetup: SuiteSetup; 230 | declare export var suiteTeardown: SuiteTeardown; 231 | declare export var before: Before; 232 | declare export var after: After; 233 | declare export var beforeEach: BeforeEach; 234 | declare export var afterEach: AfterEach; 235 | 236 | declare export default $npm$mocha$Mocha; 237 | } 238 | -------------------------------------------------------------------------------- /flow-typed/npm/mocketeer_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 2353f9515101de185255e34487fac10d 2 | // flow-typed version: <>/mocketeer_v^0.3.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'mocketeer' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'mocketeer' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'mocketeer/dist/es/handlers/handle' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'mocketeer/dist/es/handlers/headers' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'mocketeer/dist/es/handlers' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'mocketeer/dist/es/handlers/methods' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'mocketeer/dist/es/handlers/static' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'mocketeer/dist/es/handlers/webpack' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'mocketeer/dist/es' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'mocketeer/dist/es/mock' { 54 | declare module.exports: any; 55 | } 56 | 57 | // Filename aliases 58 | declare module 'mocketeer/dist/es/handlers/handle.js' { 59 | declare module.exports: $Exports<'mocketeer/dist/es/handlers/handle'>; 60 | } 61 | declare module 'mocketeer/dist/es/handlers/headers.js' { 62 | declare module.exports: $Exports<'mocketeer/dist/es/handlers/headers'>; 63 | } 64 | declare module 'mocketeer/dist/es/handlers/index' { 65 | declare module.exports: $Exports<'mocketeer/dist/es/handlers'>; 66 | } 67 | declare module 'mocketeer/dist/es/handlers/index.js' { 68 | declare module.exports: $Exports<'mocketeer/dist/es/handlers'>; 69 | } 70 | declare module 'mocketeer/dist/es/handlers/methods.js' { 71 | declare module.exports: $Exports<'mocketeer/dist/es/handlers/methods'>; 72 | } 73 | declare module 'mocketeer/dist/es/handlers/static.js' { 74 | declare module.exports: $Exports<'mocketeer/dist/es/handlers/static'>; 75 | } 76 | declare module 'mocketeer/dist/es/handlers/webpack.js' { 77 | declare module.exports: $Exports<'mocketeer/dist/es/handlers/webpack'>; 78 | } 79 | declare module 'mocketeer/dist/es/index' { 80 | declare module.exports: $Exports<'mocketeer/dist/es'>; 81 | } 82 | declare module 'mocketeer/dist/es/index.js' { 83 | declare module.exports: $Exports<'mocketeer/dist/es'>; 84 | } 85 | declare module 'mocketeer/dist/es/mock.js' { 86 | declare module.exports: $Exports<'mocketeer/dist/es/mock'>; 87 | } 88 | -------------------------------------------------------------------------------- /flow-typed/npm/node-stream-zip_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bd18604d0696d9e4ad0da443cf74273b 2 | // flow-typed version: 1ff21d416b/node-stream-zip_v1.x.x/flow_>=v0.104.x 3 | 4 | declare module 'node-stream-zip' { 5 | declare type StreamZipOptions = {| 6 | /** 7 | * File to read 8 | * @default undefined 9 | */ 10 | file?: string; 11 | 12 | /** 13 | * Alternatively, you can pass fd here 14 | * @default undefined 15 | */ 16 | fd?: number; 17 | 18 | /** 19 | * You will be able to work with entries inside zip archive, 20 | * otherwise the only way to access them is entry event 21 | * @default true 22 | */ 23 | storeEntries?: boolean; 24 | 25 | /** 26 | * By default, entry name is checked for malicious characters, like ../ or c:\123, 27 | * pass this flag to disable validation error 28 | * @default false 29 | */ 30 | skipEntryNameValidation?: boolean; 31 | 32 | /** 33 | * Filesystem read chunk size 34 | * @default automatic based on file size 35 | */ 36 | chunkSize?: number; 37 | 38 | /** 39 | * Encoding used to decode file names 40 | * @default UTF8 41 | */ 42 | nameEncoding?: string; 43 | |} 44 | 45 | declare type ZipEntry = {| 46 | /** 47 | * file name 48 | */ 49 | name: string; 50 | 51 | /** 52 | * true if it's a directory entry 53 | */ 54 | isDirectory: boolean; 55 | 56 | /** 57 | * true if it's a file entry, see also isDirectory 58 | */ 59 | isFile: boolean; 60 | 61 | /** 62 | * file comment 63 | */ 64 | comment: string; 65 | 66 | /** 67 | * if the file is encrypted 68 | */ 69 | encrypted: boolean; 70 | 71 | /** 72 | * version made by 73 | */ 74 | verMade: number; 75 | 76 | /** 77 | * version needed to extract 78 | */ 79 | version: number; 80 | 81 | /** 82 | * encrypt, decrypt flags 83 | */ 84 | flags: number; 85 | 86 | /** 87 | * compression method 88 | */ 89 | method: number; 90 | 91 | /** 92 | * modification time 93 | */ 94 | time: number; 95 | 96 | /** 97 | * uncompressed file crc-32 value 98 | */ 99 | crc: number; 100 | 101 | /** 102 | * compressed size 103 | */ 104 | compressedSize: number; 105 | 106 | /** 107 | * uncompressed size 108 | */ 109 | size: number; 110 | 111 | /** 112 | * volume number start 113 | */ 114 | diskStart: number; 115 | 116 | /** 117 | * internal file attributes 118 | */ 119 | inattr: number; 120 | 121 | /** 122 | * external file attributes 123 | */ 124 | attr: number; 125 | 126 | /** 127 | * LOC header offset 128 | */ 129 | offset: number; 130 | |} 131 | 132 | declare class StreamZipAsync { 133 | constructor(config: StreamZipOptions): this; 134 | 135 | entriesCount: Promise; 136 | comment: Promise; 137 | 138 | entry(name: string): Promise; 139 | entries(): Promise<{ [name: string]: ZipEntry }>; 140 | entryData(entry: string | ZipEntry): Promise; 141 | stream(entry: string | ZipEntry): Promise; 142 | extract(entry: string | ZipEntry | null, outPath: string): Promise; 143 | 144 | on(event: 'entry', handler: (entry: ZipEntry) => void): void; 145 | on(event: 'extract', handler: (entry: ZipEntry, outPath: string) => void): void; 146 | 147 | close(): Promise; 148 | } 149 | 150 | declare class StreamZip { 151 | constructor(config: StreamZipOptions): this; 152 | 153 | entriesCount: number; 154 | comment: string; 155 | 156 | on(event: 'error', handler: (error: any) => void): void; 157 | on(event: 'entry', handler: (entry: ZipEntry) => void): void; 158 | on(event: 'ready', handler: () => void): void; 159 | on(event: 'extract', handler: (entry: ZipEntry, outPath: string) => void): void; 160 | 161 | entry(name: string): ?ZipEntry; 162 | 163 | entries(): { [name: string]: ZipEntry }; 164 | 165 | stream( 166 | entry: string | ZipEntry, 167 | callback: (err: any | null, stream?: ReadableStream) => void 168 | ): void; 169 | 170 | entryDataSync(entry: string | ZipEntry): Buffer; 171 | 172 | openEntry( 173 | entry: string | ZipEntry, 174 | callback: (err: any | null, entry?: ZipEntry) => void, 175 | sync: boolean 176 | ): void; 177 | 178 | extract( 179 | entry: string | ZipEntry | null, 180 | outPath: string, 181 | callback: (err?: any, res?: number) => void 182 | ): void; 183 | 184 | close(callback?: (err?: any) => void): void; 185 | 186 | static async: Class; 187 | } 188 | 189 | declare module.exports: Class; 190 | } 191 | -------------------------------------------------------------------------------- /flow-typed/npm/pixelmatch_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 3df669aef584be79cc10cd47f65e8780 2 | // flow-typed version: <>/pixelmatch_v^4.0.2/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'pixelmatch' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'pixelmatch' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'pixelmatch/test/test' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'pixelmatch/index' { 31 | declare module.exports: $Exports<'pixelmatch'>; 32 | } 33 | declare module 'pixelmatch/index.js' { 34 | declare module.exports: $Exports<'pixelmatch'>; 35 | } 36 | declare module 'pixelmatch/test/test.js' { 37 | declare module.exports: $Exports<'pixelmatch/test/test'>; 38 | } 39 | -------------------------------------------------------------------------------- /flow-typed/npm/pngjs_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 1c3c87ee77b1821e63c5c40bd9a97533 2 | // flow-typed version: <>/pngjs_v^3.3.0/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'pngjs' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'pngjs' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'pngjs/browser' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'pngjs/lib/bitmapper' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'pngjs/lib/bitpacker' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'pngjs/lib/chunkstream' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'pngjs/lib/constants' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'pngjs/lib/crc' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'pngjs/lib/filter-pack' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'pngjs/lib/filter-parse-async' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'pngjs/lib/filter-parse-sync' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'pngjs/lib/filter-parse' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'pngjs/lib/format-normaliser' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'pngjs/lib/interlace' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'pngjs/lib/packer-async' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'pngjs/lib/packer-sync' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'pngjs/lib/packer' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'pngjs/lib/paeth-predictor' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'pngjs/lib/parser-async' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'pngjs/lib/parser-sync' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'pngjs/lib/parser' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'pngjs/lib/png-sync' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'pngjs/lib/png' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'pngjs/lib/sync-inflate' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'pngjs/lib/sync-reader' { 114 | declare module.exports: any; 115 | } 116 | 117 | // Filename aliases 118 | declare module 'pngjs/browser.js' { 119 | declare module.exports: $Exports<'pngjs/browser'>; 120 | } 121 | declare module 'pngjs/lib/bitmapper.js' { 122 | declare module.exports: $Exports<'pngjs/lib/bitmapper'>; 123 | } 124 | declare module 'pngjs/lib/bitpacker.js' { 125 | declare module.exports: $Exports<'pngjs/lib/bitpacker'>; 126 | } 127 | declare module 'pngjs/lib/chunkstream.js' { 128 | declare module.exports: $Exports<'pngjs/lib/chunkstream'>; 129 | } 130 | declare module 'pngjs/lib/constants.js' { 131 | declare module.exports: $Exports<'pngjs/lib/constants'>; 132 | } 133 | declare module 'pngjs/lib/crc.js' { 134 | declare module.exports: $Exports<'pngjs/lib/crc'>; 135 | } 136 | declare module 'pngjs/lib/filter-pack.js' { 137 | declare module.exports: $Exports<'pngjs/lib/filter-pack'>; 138 | } 139 | declare module 'pngjs/lib/filter-parse-async.js' { 140 | declare module.exports: $Exports<'pngjs/lib/filter-parse-async'>; 141 | } 142 | declare module 'pngjs/lib/filter-parse-sync.js' { 143 | declare module.exports: $Exports<'pngjs/lib/filter-parse-sync'>; 144 | } 145 | declare module 'pngjs/lib/filter-parse.js' { 146 | declare module.exports: $Exports<'pngjs/lib/filter-parse'>; 147 | } 148 | declare module 'pngjs/lib/format-normaliser.js' { 149 | declare module.exports: $Exports<'pngjs/lib/format-normaliser'>; 150 | } 151 | declare module 'pngjs/lib/interlace.js' { 152 | declare module.exports: $Exports<'pngjs/lib/interlace'>; 153 | } 154 | declare module 'pngjs/lib/packer-async.js' { 155 | declare module.exports: $Exports<'pngjs/lib/packer-async'>; 156 | } 157 | declare module 'pngjs/lib/packer-sync.js' { 158 | declare module.exports: $Exports<'pngjs/lib/packer-sync'>; 159 | } 160 | declare module 'pngjs/lib/packer.js' { 161 | declare module.exports: $Exports<'pngjs/lib/packer'>; 162 | } 163 | declare module 'pngjs/lib/paeth-predictor.js' { 164 | declare module.exports: $Exports<'pngjs/lib/paeth-predictor'>; 165 | } 166 | declare module 'pngjs/lib/parser-async.js' { 167 | declare module.exports: $Exports<'pngjs/lib/parser-async'>; 168 | } 169 | declare module 'pngjs/lib/parser-sync.js' { 170 | declare module.exports: $Exports<'pngjs/lib/parser-sync'>; 171 | } 172 | declare module 'pngjs/lib/parser.js' { 173 | declare module.exports: $Exports<'pngjs/lib/parser'>; 174 | } 175 | declare module 'pngjs/lib/png-sync.js' { 176 | declare module.exports: $Exports<'pngjs/lib/png-sync'>; 177 | } 178 | declare module 'pngjs/lib/png.js' { 179 | declare module.exports: $Exports<'pngjs/lib/png'>; 180 | } 181 | declare module 'pngjs/lib/sync-inflate.js' { 182 | declare module.exports: $Exports<'pngjs/lib/sync-inflate'>; 183 | } 184 | declare module 'pngjs/lib/sync-reader.js' { 185 | declare module.exports: $Exports<'pngjs/lib/sync-reader'>; 186 | } 187 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cfdc7e61e71ab8d32e882a236b798eaf 2 | // flow-typed version: 02d4f1d2c5/prettier_v1.x.x/flow_>=v0.104.x <=v0.200.x 3 | 4 | declare module "prettier" { 5 | declare export type AST = { [key: string]: any, ... }; 6 | declare export type Doc = { 7 | [key: string]: any, 8 | ... 9 | }; 10 | declare export type FastPath = { 11 | stack: any[], 12 | getName(): null | string | number | Symbol, 13 | getValue(): T, 14 | getNode(count?: number): null | T, 15 | getParentNode(count?: number): null | T, 16 | call(callback: (path: FastPath) => U, ...names: Array): U, 17 | each(callback: (path: FastPath) => void, ...names: Array): void, 18 | map(callback: (path: FastPath, index: number) => U, ...names: Array): U[], 19 | ... 20 | }; 21 | 22 | declare export type PrettierParserName = 23 | | "babylon" // deprecated 24 | | "babel" 25 | | "babel-flow" 26 | | "flow" 27 | | "typescript" 28 | | "postcss" // deprecated 29 | | "css" 30 | | "less" 31 | | "scss" 32 | | "json" 33 | | "json5" 34 | | "json-stringify" 35 | | "graphql" 36 | | "markdown" 37 | | "vue" 38 | | "html" 39 | | "angular" 40 | | "mdx" 41 | | "yaml"; 42 | 43 | declare export type PrettierParser = { 44 | [name: PrettierParserName]: (text: string, options?: { [key: string]: any, ... }) => AST, 45 | ... 46 | }; 47 | 48 | declare export type CustomParser = ( 49 | text: string, 50 | parsers: PrettierParser, 51 | options: Options 52 | ) => AST; 53 | 54 | declare export type Options = {| 55 | printWidth?: number, 56 | tabWidth?: number, 57 | useTabs?: boolean, 58 | semi?: boolean, 59 | singleQuote?: boolean, 60 | trailingComma?: "none" | "es5" | "all", 61 | bracketSpacing?: boolean, 62 | jsxBracketSameLine?: boolean, 63 | arrowParens?: "avoid" | "always", 64 | rangeStart?: number, 65 | rangeEnd?: number, 66 | parser?: PrettierParserName | CustomParser, 67 | filepath?: string, 68 | requirePragma?: boolean, 69 | insertPragma?: boolean, 70 | proseWrap?: "always" | "never" | "preserve", 71 | plugins?: Array 72 | |}; 73 | 74 | declare export type Plugin = { 75 | languages: SupportLanguage, 76 | parsers: { [parserName: string]: Parser, ... }, 77 | printers: { [astFormat: string]: Printer, ... }, 78 | options?: SupportOption[], 79 | ... 80 | }; 81 | 82 | declare export type Parser = { 83 | parse: ( 84 | text: string, 85 | parsers: { [parserName: string]: Parser, ... }, 86 | options: { [key: string]: any, ... } 87 | ) => AST, 88 | astFormat: string, 89 | hasPragma?: (text: string) => boolean, 90 | locStart: (node: any) => number, 91 | locEnd: (node: any) => number, 92 | preprocess?: (text: string, options: { [key: string]: any, ... }) => string, 93 | ... 94 | }; 95 | 96 | declare export type Printer = { 97 | print: ( 98 | path: FastPath<>, 99 | options: { [key: string]: any, ... }, 100 | print: (path: FastPath<>) => Doc 101 | ) => Doc, 102 | embed: ( 103 | path: FastPath<>, 104 | print: (path: FastPath<>) => Doc, 105 | textToDoc: (text: string, options: { [key: string]: any, ... }) => Doc, 106 | options: { [key: string]: any, ... } 107 | ) => ?Doc, 108 | insertPragma?: (text: string) => string, 109 | massageAstNode?: (node: any, newNode: any, parent: any) => any, 110 | hasPrettierIgnore?: (path: FastPath<>) => boolean, 111 | canAttachComment?: (node: any) => boolean, 112 | willPrintOwnComments?: (path: FastPath<>) => boolean, 113 | printComments?: (path: FastPath<>, print: (path: FastPath<>) => Doc, options: { [key: string]: any, ... }, needsSemi: boolean) => Doc, 114 | handleComments?: { 115 | ownLine?: (commentNode: any, text: string, options: { [key: string]: any, ... }, ast: any, isLastComment: boolean) => boolean, 116 | endOfLine?: (commentNode: any, text: string, options: { [key: string]: any, ... }, ast: any, isLastComment: boolean) => boolean, 117 | remaining?: (commentNode: any, text: string, options: { [key: string]: any, ... }, ast: any, isLastComment: boolean) => boolean, 118 | ... 119 | }, 120 | ... 121 | }; 122 | 123 | declare export type CursorOptions = {| 124 | cursorOffset: number, 125 | printWidth?: $PropertyType, 126 | tabWidth?: $PropertyType, 127 | useTabs?: $PropertyType, 128 | semi?: $PropertyType, 129 | singleQuote?: $PropertyType, 130 | trailingComma?: $PropertyType, 131 | bracketSpacing?: $PropertyType, 132 | jsxBracketSameLine?: $PropertyType, 133 | arrowParens?: $PropertyType, 134 | parser?: $PropertyType, 135 | filepath?: $PropertyType, 136 | requirePragma?: $PropertyType, 137 | insertPragma?: $PropertyType, 138 | proseWrap?: $PropertyType, 139 | plugins?: $PropertyType 140 | |}; 141 | 142 | declare export type CursorResult = {| 143 | formatted: string, 144 | cursorOffset: number 145 | |}; 146 | 147 | declare export type ResolveConfigOptions = {| 148 | useCache?: boolean, 149 | config?: string, 150 | editorconfig?: boolean 151 | |}; 152 | 153 | declare export type SupportLanguage = { 154 | name: string, 155 | since: string, 156 | parsers: Array, 157 | group?: string, 158 | tmScope: string, 159 | aceMode: string, 160 | codemirrorMode: string, 161 | codemirrorMimeType: string, 162 | aliases?: Array, 163 | extensions: Array, 164 | filenames?: Array, 165 | linguistLanguageId: number, 166 | vscodeLanguageIds: Array, 167 | ... 168 | }; 169 | 170 | declare export type SupportOption = {| 171 | since: string, 172 | type: "int" | "boolean" | "choice" | "path", 173 | deprecated?: string, 174 | redirect?: SupportOptionRedirect, 175 | description: string, 176 | oppositeDescription?: string, 177 | default: SupportOptionValue, 178 | range?: SupportOptionRange, 179 | choices?: SupportOptionChoice 180 | |}; 181 | 182 | declare export type SupportOptionRedirect = {| 183 | options: string, 184 | value: SupportOptionValue 185 | |}; 186 | 187 | declare export type SupportOptionRange = {| 188 | start: number, 189 | end: number, 190 | step: number 191 | |}; 192 | 193 | declare export type SupportOptionChoice = {| 194 | value: boolean | string, 195 | description?: string, 196 | since?: string, 197 | deprecated?: string, 198 | redirect?: SupportOptionValue 199 | |}; 200 | 201 | declare export type SupportOptionValue = number | boolean | string; 202 | 203 | declare export type SupportInfo = {| 204 | languages: Array, 205 | options: Array 206 | |}; 207 | 208 | declare export type FileInfo = {| 209 | ignored: boolean, 210 | inferredParser: PrettierParserName | null, 211 | |}; 212 | 213 | declare export type Prettier = {| 214 | format: (source: string, options?: Options) => string, 215 | check: (source: string, options?: Options) => boolean, 216 | formatWithCursor: (source: string, options: CursorOptions) => CursorResult, 217 | resolveConfig: { 218 | (filePath: string, options?: ResolveConfigOptions): Promise, 219 | sync(filePath: string, options?: ResolveConfigOptions): ?Options, 220 | ... 221 | }, 222 | clearConfigCache: () => void, 223 | getSupportInfo: (version?: string) => SupportInfo, 224 | getFileInfo: (filePath: string) => Promise 225 | |}; 226 | 227 | declare export default Prettier; 228 | } 229 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 7482b114f2e61810b3d697c0764f26a7 2 | // flow-typed version: <>/prettier_v2.7.1/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'prettier' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'prettier' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'prettier/bin-prettier' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'prettier/cli' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'prettier/doc' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'prettier/parser-angular' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'prettier/parser-babel' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'prettier/parser-espree' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'prettier/parser-flow' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'prettier/parser-glimmer' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'prettier/parser-graphql' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'prettier/parser-html' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'prettier/parser-markdown' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'prettier/parser-meriyah' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'prettier/parser-postcss' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'prettier/parser-typescript' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'prettier/parser-yaml' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'prettier/standalone' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'prettier/third-party' { 90 | declare module.exports: any; 91 | } 92 | 93 | // Filename aliases 94 | declare module 'prettier/bin-prettier.js' { 95 | declare module.exports: $Exports<'prettier/bin-prettier'>; 96 | } 97 | declare module 'prettier/cli.js' { 98 | declare module.exports: $Exports<'prettier/cli'>; 99 | } 100 | declare module 'prettier/doc.js' { 101 | declare module.exports: $Exports<'prettier/doc'>; 102 | } 103 | declare module 'prettier/index' { 104 | declare module.exports: $Exports<'prettier'>; 105 | } 106 | declare module 'prettier/index.js' { 107 | declare module.exports: $Exports<'prettier'>; 108 | } 109 | declare module 'prettier/parser-angular.js' { 110 | declare module.exports: $Exports<'prettier/parser-angular'>; 111 | } 112 | declare module 'prettier/parser-babel.js' { 113 | declare module.exports: $Exports<'prettier/parser-babel'>; 114 | } 115 | declare module 'prettier/parser-espree.js' { 116 | declare module.exports: $Exports<'prettier/parser-espree'>; 117 | } 118 | declare module 'prettier/parser-flow.js' { 119 | declare module.exports: $Exports<'prettier/parser-flow'>; 120 | } 121 | declare module 'prettier/parser-glimmer.js' { 122 | declare module.exports: $Exports<'prettier/parser-glimmer'>; 123 | } 124 | declare module 'prettier/parser-graphql.js' { 125 | declare module.exports: $Exports<'prettier/parser-graphql'>; 126 | } 127 | declare module 'prettier/parser-html.js' { 128 | declare module.exports: $Exports<'prettier/parser-html'>; 129 | } 130 | declare module 'prettier/parser-markdown.js' { 131 | declare module.exports: $Exports<'prettier/parser-markdown'>; 132 | } 133 | declare module 'prettier/parser-meriyah.js' { 134 | declare module.exports: $Exports<'prettier/parser-meriyah'>; 135 | } 136 | declare module 'prettier/parser-postcss.js' { 137 | declare module.exports: $Exports<'prettier/parser-postcss'>; 138 | } 139 | declare module 'prettier/parser-typescript.js' { 140 | declare module.exports: $Exports<'prettier/parser-typescript'>; 141 | } 142 | declare module 'prettier/parser-yaml.js' { 143 | declare module.exports: $Exports<'prettier/parser-yaml'>; 144 | } 145 | declare module 'prettier/standalone.js' { 146 | declare module.exports: $Exports<'prettier/standalone'>; 147 | } 148 | declare module 'prettier/third-party.js' { 149 | declare module.exports: $Exports<'prettier/third-party'>; 150 | } 151 | -------------------------------------------------------------------------------- /flow-typed/npm/rimraf_v3.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 31191d41b239d1242753bdea18136ae9 2 | // flow-typed version: 6ee04b16cf/rimraf_v3.x.x/flow_>=v0.104.x 3 | 4 | declare module 'rimraf' { 5 | declare type Options = { 6 | maxBusyTries?: number, 7 | emfileWait?: number, 8 | glob?: boolean, 9 | disableGlob?: boolean, 10 | ... 11 | }; 12 | 13 | declare type Callback = (err: ?Error, path: ?string) => void; 14 | 15 | declare module.exports: { 16 | (f: string, opts?: Options | Callback, callback?: Callback): void, 17 | sync(path: string, opts?: Options): void, 18 | ... 19 | }; 20 | } 21 | -------------------------------------------------------------------------------- /flow-typed/npm/semver_v7.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bf6205896c200fb28700dfa8d29f2b8a 2 | // flow-typed version: 3d76504c27/semver_v7.x.x/flow_>=v0.104.x 3 | 4 | declare module "semver" { 5 | declare type Release = 6 | | "major" 7 | | "premajor" 8 | | "minor" 9 | | "preminor" 10 | | "patch" 11 | | "prepatch" 12 | | "prerelease"; 13 | 14 | // The supported comparators are taken from the source here: 15 | // https://github.com/npm/node-semver/blob/8bd070b550db2646362c9883c8d008d32f66a234/semver.js#L623 16 | declare type Operator = 17 | | "===" 18 | | "!==" 19 | | "==" 20 | | "=" 21 | | "" // Not sure why you would want this, but whatever. 22 | | "!=" 23 | | ">" 24 | | ">=" 25 | | "<" 26 | | "<="; 27 | 28 | declare class SemVer { 29 | build: Array; 30 | loose: ?boolean; 31 | major: number; 32 | minor: number; 33 | patch: number; 34 | prerelease: Array; 35 | raw: string; 36 | version: string; 37 | 38 | constructor(version: string | SemVer, options?: Options): SemVer; 39 | compare(other: string | SemVer): -1 | 0 | 1; 40 | compareMain(other: string | SemVer): -1 | 0 | 1; 41 | comparePre(other: string | SemVer): -1 | 0 | 1; 42 | compareBuild(other: string | SemVer): -1 | 0 | 1; 43 | format(): string; 44 | inc(release: Release, identifier: string): this; 45 | } 46 | 47 | declare class Comparator { 48 | options?: Options; 49 | operator: Operator; 50 | semver: SemVer; 51 | value: string; 52 | 53 | constructor(comp: string | Comparator, options?: Options): Comparator; 54 | parse(comp: string): void; 55 | test(version: string): boolean; 56 | } 57 | 58 | declare class Range { 59 | loose: ?boolean; 60 | raw: string; 61 | set: Array>; 62 | 63 | constructor(range: string | Range, options?: Options): Range; 64 | format(): string; 65 | parseRange(range: string): Array; 66 | test(version: string): boolean; 67 | toString(): string; 68 | } 69 | 70 | declare var SEMVER_SPEC_VERSION: string; 71 | declare var re: Array; 72 | declare var src: Array; 73 | 74 | declare type Options = { 75 | options?: Options, 76 | includePrerelease?: boolean, 77 | ... 78 | } | boolean; 79 | 80 | // Functions 81 | declare function valid(v: string | SemVer, options?: Options): string | null; 82 | declare function clean(v: string | SemVer, options?: Options): string | null; 83 | declare function inc( 84 | v: string | SemVer, 85 | release: Release, 86 | options?: Options, 87 | identifier?: string 88 | ): string | null; 89 | declare function inc( 90 | v: string | SemVer, 91 | release: Release, 92 | identifier: string 93 | ): string | null; 94 | declare function major(v: string | SemVer, options?: Options): number; 95 | declare function minor(v: string | SemVer, options?: Options): number; 96 | declare function patch(v: string | SemVer, options?: Options): number; 97 | declare function intersects(r1: string | SemVer, r2: string | SemVer, loose?: boolean): boolean; 98 | declare function minVersion(r: string | Range): Range | null; 99 | 100 | // Comparison 101 | declare function gt( 102 | v1: string | SemVer, 103 | v2: string | SemVer, 104 | options?: Options 105 | ): boolean; 106 | declare function gte( 107 | v1: string | SemVer, 108 | v2: string | SemVer, 109 | options?: Options 110 | ): boolean; 111 | declare function lt( 112 | v1: string | SemVer, 113 | v2: string | SemVer, 114 | options?: Options 115 | ): boolean; 116 | declare function lte( 117 | v1: string | SemVer, 118 | v2: string | SemVer, 119 | options?: Options 120 | ): boolean; 121 | declare function eq( 122 | v1: string | SemVer, 123 | v2: string | SemVer, 124 | options?: Options 125 | ): boolean; 126 | declare function neq( 127 | v1: string | SemVer, 128 | v2: string | SemVer, 129 | options?: Options 130 | ): boolean; 131 | declare function cmp( 132 | v1: string | SemVer, 133 | comparator: Operator, 134 | v2: string | SemVer, 135 | options?: Options 136 | ): boolean; 137 | declare function compare( 138 | v1: string | SemVer, 139 | v2: string | SemVer, 140 | options?: Options 141 | ): -1 | 0 | 1; 142 | declare function rcompare( 143 | v1: string | SemVer, 144 | v2: string | SemVer, 145 | options?: Options 146 | ): -1 | 0 | 1; 147 | declare function diff(v1: string | SemVer, v2: string | SemVer): ?Release; 148 | declare function intersects(comparator: Comparator): boolean; 149 | declare function sort( 150 | list: Array, 151 | options?: Options 152 | ): Array; 153 | declare function rsort( 154 | list: Array, 155 | options?: Options 156 | ): Array; 157 | declare function compareIdentifiers( 158 | v1: string | SemVer, 159 | v2: string | SemVer 160 | ): -1 | 0 | 1; 161 | declare function rcompareIdentifiers( 162 | v1: string | SemVer, 163 | v2: string | SemVer 164 | ): -1 | 0 | 1; 165 | 166 | // Ranges 167 | declare function validRange( 168 | range: string | Range, 169 | options?: Options 170 | ): string | null; 171 | declare function satisfies( 172 | version: string | SemVer, 173 | range: string | Range, 174 | options?: Options 175 | ): boolean; 176 | declare function maxSatisfying( 177 | versions: Array, 178 | range: string | Range, 179 | options?: Options 180 | ): string | SemVer | null; 181 | declare function minSatisfying( 182 | versions: Array, 183 | range: string | Range, 184 | options?: Options 185 | ): string | SemVer | null; 186 | declare function gtr( 187 | version: string | SemVer, 188 | range: string | Range, 189 | options?: Options 190 | ): boolean; 191 | declare function ltr( 192 | version: string | SemVer, 193 | range: string | Range, 194 | options?: Options 195 | ): boolean; 196 | declare function outside( 197 | version: string | SemVer, 198 | range: string | Range, 199 | hilo: ">" | "<", 200 | options?: Options 201 | ): boolean; 202 | declare function intersects( 203 | range: Range 204 | ): boolean; 205 | declare function simplifyRange( 206 | ranges: Array, 207 | range: string | Range, 208 | options?: Options, 209 | ): string | Range; 210 | declare function subset( 211 | sub: string | Range, 212 | dom: string | Range, 213 | options?: Options, 214 | ): boolean; 215 | 216 | // Coercion 217 | declare function coerce( 218 | version: string | SemVer, 219 | options?: Options 220 | ): ?SemVer 221 | 222 | // Not explicitly documented, or deprecated 223 | declare function parse(version: string, options?: Options): ?SemVer; 224 | declare function toComparators( 225 | range: string | Range, 226 | options?: Options 227 | ): Array>; 228 | } 229 | 230 | declare module "semver/preload" { 231 | declare module.exports: $Exports<"semver">; 232 | } 233 | -------------------------------------------------------------------------------- /flow-typed/npm/serve_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 7b44a396e60f16f831749e50e3e7f3ff 2 | // flow-typed version: <>/serve_v^10.1.2/flow_v0.135.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'serve' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'serve' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'serve/bin/serve' { 26 | declare module.exports: any; 27 | } 28 | 29 | // Filename aliases 30 | declare module 'serve/bin/serve.js' { 31 | declare module.exports: $Exports<'serve/bin/serve'>; 32 | } 33 | -------------------------------------------------------------------------------- /flow-typed/npm/yargs_v15.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d538758c32ffc612a9c0d1262c22d161 2 | // flow-typed version: 3c81f4d103/yargs_v15.x.x/flow_>=v0.118.x <=v0.200.x 3 | 4 | declare module "yargs" { 5 | declare type Argv = { 6 | [key: string]: any, 7 | _: Array, 8 | $0: string, 9 | ... 10 | }; 11 | 12 | declare type Options = $Shape<{ 13 | alias: string | Array, 14 | array: boolean, 15 | boolean: boolean, 16 | choices: Array, 17 | coerce: (arg: {[key: string]: any, ...} | any) => mixed, 18 | config: boolean, 19 | configParser: (configPath: string) => { [key: string]: mixed, ... }, 20 | conflicts: string | Array | { [key: string]: string, ... }, 21 | count: boolean, 22 | default: mixed, 23 | defaultDescription: string, 24 | demandOption: boolean | string, 25 | desc: string, 26 | describe: string, 27 | description: string, 28 | global: boolean, 29 | group: string, 30 | implies: string | { [key: string]: string, ... }, 31 | nargs: number, 32 | normalize: boolean, 33 | number: boolean, 34 | required: boolean, 35 | requiresArg: boolean, 36 | skipValidation: boolean, 37 | string: boolean, 38 | type: "array" | "boolean" | "count" | "number" | "string", 39 | ... 40 | }>; 41 | 42 | declare type CommonModuleObject = {| 43 | command?: string | Array, 44 | aliases?: Array | string, 45 | builder?: { [key: string]: Options, ... } | ((yargsInstance: Yargs) => mixed), 46 | handler?: ((argv: Argv) => void) | ((argv: Argv) => Promise) 47 | |}; 48 | 49 | declare type ModuleObjectDesc = {| 50 | ...CommonModuleObject, 51 | desc?: string | false 52 | |}; 53 | 54 | declare type ModuleObjectDescribe = {| 55 | ...CommonModuleObject, 56 | describe?: string | false 57 | |}; 58 | 59 | declare type ModuleObjectDescription = {| 60 | ...CommonModuleObject, 61 | description?: string | false 62 | |}; 63 | 64 | declare type ModuleObject = 65 | | ModuleObjectDesc 66 | | ModuleObjectDescribe 67 | | ModuleObjectDescription; 68 | 69 | declare type MiddleWareCallback = 70 | | (argv: Argv, yargsInstance?: Yargs) => void 71 | | (argv: Argv, yargsInstance?: Yargs) => Promise; 72 | 73 | declare type Middleware = MiddleWareCallback | Array; 74 | 75 | declare class Yargs { 76 | (args: Array): Yargs; 77 | 78 | alias(key: string, alias: string): this; 79 | alias(alias: { [key: string]: string | Array, ... }): this; 80 | argv: Argv; 81 | array(key: string | Array): this; 82 | boolean(parameter: string | Array): this; 83 | check(fn: (argv: Argv, options: Array) => ?boolean): this; 84 | choices(key: string, allowed: Array): this; 85 | choices(allowed: { [key: string]: Array, ... }): this; 86 | coerce(key: string, fn: (value: any) => mixed): this; 87 | coerce(object: { [key: string]: (value: any) => mixed, ... }): this; 88 | coerce(keys: Array, fn: (value: any) => mixed): this; 89 | 90 | command( 91 | cmd: string | Array, 92 | desc: string | false, 93 | builder?: { [key: string]: Options, ... } | ((yargsInstance: Yargs) => mixed), 94 | handler?: Function 95 | ): this; 96 | 97 | command( 98 | cmd: string | Array, 99 | desc: string | false, 100 | module: ModuleObject 101 | ): this; 102 | 103 | command(module: ModuleObject): this; 104 | 105 | commandDir( 106 | directory: string, 107 | options?: { 108 | exclude?: string | Function, 109 | extensions?: Array, 110 | include?: string | Function, 111 | recurse?: boolean, 112 | visit?: Function, 113 | ... 114 | }, 115 | ): this; 116 | 117 | completion( 118 | cmd?: string, 119 | description?: string | false | ( 120 | current: string, 121 | argv: Argv, 122 | done: (compeltion: Array) => void 123 | ) => ?(Array | Promise>), 124 | fn?: ( 125 | current: string, 126 | argv: Argv, 127 | done: (completion: Array) => void 128 | ) => ?(Array | Promise>) 129 | ): this; 130 | 131 | config( 132 | key?: string, 133 | description?: string, 134 | parseFn?: (configPath: string) => { [key: string]: mixed, ... } 135 | ): this; 136 | config( 137 | key: string, 138 | parseFn?: (configPath: string) => { [key: string]: mixed, ... } 139 | ): this; 140 | config(config: { [key: string]: mixed, ... }): this; 141 | 142 | conflicts(key: string, value: string | Array): this; 143 | conflicts(keys: { [key: string]: string | Array, ... }): this; 144 | 145 | count(name: string): this; 146 | 147 | default(key: string, value: mixed, description?: string): this; 148 | default(defaults: { [key: string]: mixed, ... }): this; 149 | 150 | // Deprecated: use demandOption() and demandCommand() instead. 151 | demand(key: string, msg?: string | boolean): this; 152 | demand(count: number, max?: number, msg?: string | boolean): this; 153 | 154 | demandOption(key: string | Array, msg?: string | boolean): this; 155 | 156 | demandCommand(): this; 157 | demandCommand(min: number, minMsg?: string): this; 158 | demandCommand( 159 | min: number, 160 | max: number, 161 | minMsg?: string, 162 | maxMsg?: string 163 | ): this; 164 | 165 | describe(key: string, description: string): this; 166 | describe(describeObject: { [key: string]: string, ... }): this; 167 | 168 | detectLocale(shouldDetect: boolean): this; 169 | 170 | env(prefix?: string): this; 171 | 172 | epilog(text: string): this; 173 | epilogue(text: string): this; 174 | 175 | example(cmd: string, desc?: string): this; 176 | 177 | exitProcess(enable: boolean): this; 178 | 179 | fail(fn: (failureMessage: string, err: Error, yargs: Yargs) => mixed): this; 180 | 181 | getCompletion(args: Array, fn: () => void): this; 182 | 183 | global(globals: string | Array, isGlobal?: boolean): this; 184 | 185 | group(key: string | Array, groupName: string): this; 186 | 187 | help(option: boolean): this; 188 | 189 | help(option?: string, desc?: string): this; 190 | 191 | hide(key: string): this; 192 | 193 | implies(key: string, value: string | Array): this; 194 | implies(keys: { [key: string]: string | Array, ... }): this; 195 | 196 | locale( 197 | locale: | "de" 198 | | "en" 199 | | "es" 200 | | "fr" 201 | | "hi" 202 | | "hu" 203 | | "id" 204 | | "it" 205 | | "ja" 206 | | "ko" 207 | | "nb" 208 | | "pirate" 209 | | "pl" 210 | | "pt" 211 | | "pt_BR" 212 | | "ru" 213 | | "th" 214 | | "tr" 215 | | "zh_CN" 216 | ): this; 217 | locale(): string; 218 | 219 | middleware( 220 | middlewareCallbacks: Middleware, 221 | applyBeforeValidation?: boolean, 222 | ): this; 223 | 224 | nargs(key: string, count: number): this; 225 | 226 | normalize(key: string): this; 227 | 228 | number(key: string | Array): this; 229 | 230 | onFinishCommand(handler: () => mixed): this; 231 | 232 | option(key: string, options?: Options): this; 233 | option(optionMap: { [key: string]: Options, ... }): this; 234 | 235 | options(key: string, options?: Options): this; 236 | options(optionMap: { [key: string]: Options, ... }): this; 237 | 238 | parse( 239 | args?: string | Array, 240 | context?: { [key: string]: any, ... }, 241 | parseCallback?: (err: Error, argv: Argv, output?: string) => void 242 | ): Argv; 243 | parse( 244 | args?: string | Array, 245 | parseCallback?: (err: Error, argv: Argv, output?: string) => void 246 | ): Argv; 247 | 248 | parserConfiguration(configuration: {[key: string]: any, ...}): this; 249 | 250 | pkgConf(key: string, cwd?: string): this; 251 | 252 | positional(key: string, opt?: Options): this; 253 | 254 | recommendCommands(): this; 255 | 256 | // Alias of demand() 257 | require(key: string, msg: string | boolean): this; 258 | require(count: number, max?: number, msg?: string | boolean): this; 259 | 260 | requiresArg(key: string | Array): this; 261 | 262 | reset(): this; 263 | 264 | scriptName(name: string): this; 265 | 266 | showCompletionScript(): this; 267 | 268 | showHelp(consoleLevel?: "error" | "warn" | "log"): this; 269 | showHelp(printCallback: (usageData: string) => void): this; 270 | 271 | showHelpOnFail(enable: boolean, message?: string): this; 272 | 273 | strict(): this; 274 | 275 | skipValidation(key: string): this; 276 | 277 | strict(global?: boolean): this; 278 | 279 | string(key: string | Array): this; 280 | 281 | terminalWidth(): number; 282 | 283 | updateLocale(obj: { [key: string]: string, ... }): this; 284 | updateStrings(obj: { [key: string]: string, ... }): this; 285 | 286 | usage(message: string, opts?: { [key: string]: Options, ... }): this; 287 | 288 | version(): this; 289 | version(version: string | false): this; 290 | version(option: string | (() => string), version: string): this; 291 | version( 292 | option: string | (() => string), 293 | description: string | (() => string), 294 | version: string 295 | ): this; 296 | 297 | wrap(columns: number | null): this; 298 | } 299 | 300 | declare module.exports: Yargs; 301 | } 302 | -------------------------------------------------------------------------------- /globals.js: -------------------------------------------------------------------------------- 1 | /* eslint import/no-commonjs: off, flowtype/require-valid-file-annotation: off, flowtype/require-return-type: off */ 2 | 3 | const postRobotGlobals = require("@krakenjs/post-robot/globals"); 4 | const zoidGlobals = require("@krakenjs/zoid/globals"); 5 | 6 | module.exports = { 7 | __ZOID__: { 8 | ...zoidGlobals.__ZOID__, 9 | __DEFAULT_CONTAINER__: true, 10 | __DEFAULT_PRERENDER__: true, 11 | __FRAMEWORK_SUPPORT__: true, 12 | __SCRIPT_NAMESPACE__: true, 13 | }, 14 | 15 | __POST_ROBOT__: { 16 | ...postRobotGlobals.__POST_ROBOT__, 17 | __IE_POPUP_SUPPORT__: false, 18 | __SCRIPT_NAMESPACE__: true, 19 | }, 20 | 21 | __PAYPAL_CHECKOUT__: { 22 | __REMEMBERED_FUNDING__: [], 23 | }, 24 | }; 25 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | /* eslint import/no-commonjs: off, flowtype/require-valid-file-annotation: off */ 2 | 3 | module.exports = {}; 4 | -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* eslint import/no-default-export: off */ 3 | 4 | import { getKarmaConfig } from "@krakenjs/karma-config-grumbler"; 5 | 6 | import { WEBPACK_CONFIG_TEST } from "./webpack.config"; 7 | 8 | export default function configKarma(karma: Object) { 9 | const karmaConfig = getKarmaConfig(karma, { 10 | basePath: __dirname, 11 | testDir: "test", 12 | windowDir: "test/integration/windows", 13 | entry: "test/integration/index.js", 14 | webpack: WEBPACK_CONFIG_TEST, 15 | }); 16 | 17 | karma.set({ 18 | ...karmaConfig, 19 | 20 | files: [ 21 | { 22 | pattern: "test/integration/globals.js", 23 | included: true, 24 | served: true, 25 | }, 26 | 27 | { 28 | pattern: "test/paypal.js", 29 | included: true, 30 | served: true, 31 | }, 32 | 33 | ...karmaConfig.files, 34 | ], 35 | 36 | exclude: ["test/globals.js"], 37 | 38 | preprocessors: { 39 | ...karmaConfig.preprocessors, 40 | 41 | "src/index.js": ["webpack", "sourcemap"], 42 | "src/**/*.js": ["sourcemap"], 43 | }, 44 | }); 45 | } 46 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@paypal/common-components", 3 | "version": "1.0.52", 4 | "description": "PayPal common components, for integrating checkout products.", 5 | "main": "dist/ui.js", 6 | "scripts": { 7 | "lint": "eslint --ext .js --ext .jsx src/ test/ *.js", 8 | "flow-typed": "rm -rf flow-typed && flow-typed install", 9 | "flow": "flow", 10 | "karma": "cross-env NODE_ENV=test babel-node $(npm bin)/karma start", 11 | "format": "prettier --write --ignore-unknown .", 12 | "format:check": "prettier --check .", 13 | "test": "npm run format:check && npm run lint && npm run flow && npm run karma", 14 | "build": "npm run test && npm run webpack", 15 | "release": "./scripts/publish.sh", 16 | "release:patch": "./scripts/publish.sh patch", 17 | "release:minor": "./scripts/publish.sh minor", 18 | "release:major": "./scripts/publish.sh major", 19 | "preversion": "./scripts/preversion.sh", 20 | "version": "./scripts/version.sh", 21 | "postversion": "./scripts/postversion.sh", 22 | "clean": "rimraf dist coverage", 23 | "reinstall": "rimraf flow-typed && rimraf node_modules && npm install && flow-typed install", 24 | "debug": "cross-env NODE_ENV=debug", 25 | "webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack -- --progress", 26 | "eslint-find-rules": "eslint-find-rules --current .eslintrc.js --unused --plugin", 27 | "prepare": "husky install" 28 | }, 29 | "files": [ 30 | "src/", 31 | "dist/", 32 | "__sdk__.js", 33 | "globals.js" 34 | ], 35 | "browserslist": [ 36 | "IE >= 9", 37 | "chrome >= 27", 38 | "firefox >= 30", 39 | "safari >= 5", 40 | "opera >= 23" 41 | ], 42 | "repository": { 43 | "type": "git", 44 | "url": "git://github.paypal.com/paypal/paypal-checkout.git" 45 | }, 46 | "homepage": "https://developer.paypal.com/", 47 | "keywords": [ 48 | "cross-domain", 49 | "cross domain", 50 | "components", 51 | "component", 52 | "krakenjs", 53 | "kraken" 54 | ], 55 | "license": "Apache-2.0", 56 | "readmeFilename": "README.md", 57 | "devDependencies": { 58 | "@krakenjs/grumbler-scripts": "^8.0.4", 59 | "@krakenjs/eslint-config-grumbler": "8.1.3", 60 | "@krakenjs/sync-browser-mocks": "^3.0.0", 61 | "babel-core": "^7.0.0-bridge.0", 62 | "conventional-changelog-cli": "^2.0.11", 63 | "cross-env": "^7.0.3", 64 | "flow-bin": "0.135.0", 65 | "flow-typed": "^3.8.0", 66 | "fs-extra": "^4.0.2", 67 | "husky": "^8.0.1", 68 | "imagemagick": "^0.1.3", 69 | "imgur": "^0.2.1", 70 | "jest": "^29.3.1", 71 | "lint-staged": "^13.0.3", 72 | "memory-fs": "^0.4.1", 73 | "mocha": "^4.1.0", 74 | "mocketeer": "^0.3.0", 75 | "pixelmatch": "^4.0.2", 76 | "pngjs": "^3.3.0", 77 | "prettier": "2.7.1", 78 | "serve": "^10.1.2" 79 | }, 80 | "dependencies": { 81 | "@paypal/sdk-client": "^4.0.166", 82 | "@paypal/sdk-constants": "^1.0.128", 83 | "@paypal/sdk-logos": "^2.1.0", 84 | "@krakenjs/belter": "^2.0.0", 85 | "@krakenjs/jsx-pragmatic": "^3.0.0", 86 | "@krakenjs/post-robot": "^11.0.0", 87 | "@krakenjs/zalgo-promise": "^2.0.0", 88 | "@krakenjs/zoid": "^10.0.0" 89 | }, 90 | "lint-staged": { 91 | "**/*": "prettier --write --ignore-unknown" 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /scripts/postversion.sh: -------------------------------------------------------------------------------- 1 | #/bin/sh 2 | 3 | # Publish and push! 4 | git push; 5 | git push --tags; 6 | npm publish; 7 | -------------------------------------------------------------------------------- /scripts/preversion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e; 4 | 5 | # Make sure the HEAD is clean 6 | if ! git diff-files --quiet; then 7 | echo "Can not publish with unstaged uncommited changes"; 8 | exit 1; 9 | fi; 10 | 11 | if ! git diff-index --quiet --cached HEAD; then 12 | echo "Can not publish with staged uncommited changes"; 13 | exit 1; 14 | fi; 15 | 16 | # Re-install just the basics 17 | modules='@krakenjs/zoid @krakenjs/post-robot @krakenjs/zalgo-promise @krakenjs/beaver-logger @krakenjs/cross-domain-safe-weakmap @krakenjs/cross-domain-utils @krakenjs/belter @krakenjs/grumbler-scripts @paypal/sdk-client @paypal/sdk-constants'; 18 | 19 | for module in $modules; do 20 | rm -rf "node_modules/$module"; 21 | done; 22 | 23 | npm install $modules; 24 | npm run build; 25 | -------------------------------------------------------------------------------- /scripts/publish.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script will determine the type of release based on the git branch. 4 | # When the default branch is used, it will be a `patch` that's published to npm 5 | # under the `latest` dist-tag. Any other branch will be a `prelease` that's 6 | # published to npm under the `alpha-$SHA` dist-tag. 7 | bump='patch' 8 | tag='latest' 9 | 10 | current_branch=$(git rev-parse --abbrev-ref HEAD) 11 | default_branch=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p') 12 | current_sha=$(git rev-parse --short HEAD) 13 | 14 | if [ "$current_branch" != "$default_branch" ]; then 15 | bump='prerelease' 16 | tag="alpha-$current_sha" 17 | export tag 18 | npm --no-git-tag-version version $bump --preid=$tag 19 | else 20 | export tag 21 | npm version $bump 22 | fi 23 | -------------------------------------------------------------------------------- /scripts/version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | git add ./dist --all; 4 | 5 | # Generate the changelog; adding the latest commits 6 | ./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s 7 | git add CHANGELOG.md 8 | -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { getPayPalDomain } from "@paypal/sdk-client/src"; 4 | 5 | const URI = __TEST__ 6 | ? { 7 | THREEDOMAINSECURE: `/base/test/integration/windows/helios/index.htm`, 8 | } 9 | : { 10 | THREEDOMAINSECURE: `/webapps/helios`, 11 | }; 12 | 13 | export function getThreeDomainSecureUrl(): string { 14 | return `${getPayPalDomain()}${URI.THREEDOMAINSECURE}`; 15 | } 16 | -------------------------------------------------------------------------------- /src/declarations.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* eslint import/unambiguous: 0 */ 3 | 4 | import { FUNDING } from "@paypal/sdk-constants/src"; 5 | 6 | declare var __PAYPAL_CHECKOUT__: {| 7 | __REMEMBERED_FUNDING__: Array<$Values>, // eslint-disable-line flowtype/no-mutable-array 8 | |}; 9 | -------------------------------------------------------------------------------- /src/globals.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { FUNDING } from "@paypal/sdk-constants/src"; 4 | 5 | // eslint-disable-next-line flowtype/no-mutable-array 6 | export function getRememberedFunding(): Array<$Values> { 7 | return __PAYPAL_CHECKOUT__.__REMEMBERED_FUNDING__; 8 | } 9 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from "./three-domain-secure"; 4 | export * from "./overlay"; 5 | export * from "./ui"; 6 | -------------------------------------------------------------------------------- /src/interface.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { isPayPalDomain } from "@paypal/sdk-client/src"; 4 | // eslint-disable-next-line import/no-namespace 5 | import * as postRobotModule from "@krakenjs/post-robot/src"; 6 | 7 | import { 8 | getThreeDomainSecureComponent, 9 | type TDSComponent, 10 | } from "./three-domain-secure"; 11 | 12 | export type LazyExport = {| 13 | __get__: () => T, 14 | |}; 15 | 16 | export type LazyProtectedExport = {| 17 | __get__: () => ?T, 18 | |}; 19 | 20 | function protectedExport(xport: T): ?T { 21 | if (isPayPalDomain()) { 22 | return xport; 23 | } 24 | } 25 | 26 | export const ThreeDomainSecure: LazyProtectedExport = { 27 | __get__: () => protectedExport(getThreeDomainSecureComponent()), 28 | }; 29 | 30 | export const postRobot: LazyProtectedExport = { 31 | __get__: () => protectedExport(postRobotModule), 32 | }; 33 | -------------------------------------------------------------------------------- /src/overlay/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from "./template"; 4 | -------------------------------------------------------------------------------- /src/three-domain-secure/component.jsx: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /** @jsx node */ 3 | /* eslint max-lines: 0 */ 4 | 5 | import { node, dom } from "@krakenjs/jsx-pragmatic/src"; 6 | import { create, type ZoidComponent } from "@krakenjs/zoid/src"; 7 | import { inlineMemoize, noop } from "@krakenjs/belter/src"; 8 | import { getSDKMeta, getClientID, getCSPNonce } from "@paypal/sdk-client/src"; 9 | import { ZalgoPromise } from "@krakenjs/zalgo-promise/src"; 10 | 11 | import { Overlay } from "../overlay"; 12 | import { getThreeDomainSecureUrl } from "../config"; 13 | 14 | export type TDSResult = {||}; 15 | 16 | export const USER_TYPE = { 17 | BRANDED_GUEST: ("BRANDED_GUEST": "BRANDED_GUEST"), // inline guest flow 18 | UNBRANDED_GUEST: ("UNBRANDED_GUEST": "UNBRANDED_GUEST"), // UCC 19 | MEMBER: ("MEMBER": "MEMBER"), 20 | }; 21 | 22 | export type TDSProps = {| 23 | action: string, 24 | xcomponent: string, 25 | flow: string, 26 | orderID: string, 27 | onSuccess: (TDSResult) => void, 28 | onError: (mixed) => void, 29 | sdkMeta: string, 30 | content?: void | {| 31 | windowMessage?: string, 32 | continueMessage?: string, 33 | cancelMessage?: string, 34 | interrogativeMessage?: string, 35 | |}, 36 | userType: ?$Values, 37 | nonce: string, 38 | |}; 39 | 40 | export type TDSComponent = ZoidComponent; 41 | 42 | export function getThreeDomainSecureComponent(): TDSComponent { 43 | return inlineMemoize(getThreeDomainSecureComponent, () => { 44 | const component = create({ 45 | tag: "three-domain-secure", 46 | url: getThreeDomainSecureUrl, 47 | 48 | attributes: { 49 | iframe: { 50 | scrolling: "no", 51 | }, 52 | }, 53 | 54 | containerTemplate: ({ 55 | context, 56 | focus, 57 | close, 58 | frame, 59 | prerenderFrame, 60 | doc, 61 | event, 62 | props, 63 | }) => { 64 | return ( 65 | 75 | ).render(dom({ doc })); 76 | }, 77 | 78 | props: { 79 | action: { 80 | type: "string", 81 | queryParam: true, 82 | value: (data) => (data.props.action ? data.props.action : "verify"), 83 | }, 84 | xcomponent: { 85 | type: "string", 86 | queryParam: true, 87 | value: () => "1", 88 | }, 89 | flow: { 90 | type: "string", 91 | queryParam: true, 92 | value: () => "3ds", 93 | }, 94 | createOrder: { 95 | type: "function", 96 | queryParam: "cart_id", 97 | // $FlowFixMe[incompatible-call] 98 | queryValue: ({ value }) => ZalgoPromise.try(value), 99 | required: false, 100 | }, 101 | vaultToken: { 102 | type: "string", 103 | queryParam: "token", 104 | // We do not need to add queryValue here. 105 | // This code has gone through E2E approval and so we are keeping it as a safeguard 106 | // Refer zoid documentation for further clarity. 107 | queryValue: ({ value }) => value, 108 | required: false, 109 | }, 110 | clientID: { 111 | type: "string", 112 | value: getClientID, 113 | queryParam: true, 114 | }, 115 | onSuccess: { 116 | type: "function", 117 | alias: "onContingencyResult", 118 | decorate: ({ props, value, onError }) => { 119 | return (err, result) => { 120 | const isCardFieldFlow = props?.userType === "UNBRANDED_GUEST"; 121 | 122 | // HostedFields ONLY rejects when the err object is not null. The below implementation ensures that CardFields follows the same pattern. 123 | 124 | const hasError = isCardFieldFlow 125 | ? Boolean(err) 126 | : // $FlowFixMe[incompatible-use] 127 | Boolean(err) || result?.success === false; 128 | 129 | if (hasError) { 130 | return onError(err); 131 | } 132 | 133 | return value(result); 134 | }; 135 | }, 136 | }, 137 | onCancel: { 138 | type: "function", 139 | required: false, 140 | }, 141 | sdkMeta: { 142 | type: "string", 143 | queryParam: true, 144 | sendToChild: false, 145 | value: getSDKMeta, 146 | }, 147 | content: { 148 | type: "object", 149 | required: false, 150 | }, 151 | userType: { 152 | type: "string", 153 | required: false, 154 | }, 155 | nonce: { 156 | type: "string", 157 | default: getCSPNonce, 158 | }, 159 | }, 160 | }); 161 | 162 | if (component.isChild()) { 163 | window.xchild = { 164 | props: component.xprops, 165 | close: noop, 166 | }; 167 | } 168 | 169 | return component; 170 | }); 171 | } 172 | -------------------------------------------------------------------------------- /src/three-domain-secure/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from "./component"; 4 | -------------------------------------------------------------------------------- /src/types.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const TYPES = true; 4 | 5 | export type DimensionsType = {| 6 | width: number, 7 | height: number, 8 | |}; 9 | -------------------------------------------------------------------------------- /src/ui/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from "./spinner"; 4 | export * from "./venmoSpinner"; 5 | -------------------------------------------------------------------------------- /src/ui/spinner.jsx: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /** @jsx node */ 3 | 4 | import { 5 | node, 6 | type ElementNode, 7 | type ChildrenType, 8 | } from "@krakenjs/jsx-pragmatic/src"; 9 | 10 | const spinnerStyle = ` 11 | 12 | body { 13 | width: 100%; 14 | height: 100%; 15 | overflow: hidden; 16 | position: fixed; 17 | top: 0; 18 | left: 0; 19 | margin: 0; 20 | } 21 | 22 | .spinner { 23 | height: 100%; 24 | width: 100%; 25 | position: absolute; 26 | z-index: 10 27 | } 28 | 29 | .spinner .spinWrap { 30 | width: 200px; 31 | height: 100px; 32 | position: absolute; 33 | top: 50%; 34 | left: 50%; 35 | margin-left: -100px; 36 | margin-top: -50px 37 | } 38 | 39 | .spinner .loader, 40 | .spinner .spinnerImage { 41 | height: 100px; 42 | width: 100px; 43 | position: absolute; 44 | top: 0; 45 | left: 50%; 46 | opacity: 1; 47 | filter: alpha(opacity=100) 48 | } 49 | 50 | .spinner .spinnerImage { 51 | margin: 28px 0 0 -25px; 52 | background: url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat 53 | } 54 | 55 | .spinner .loader { 56 | margin: 0 0 0 -55px; 57 | background-color: transparent; 58 | animation: rotation .7s infinite linear; 59 | border-left: 5px solid #cbcbca; 60 | border-right: 5px solid #cbcbca; 61 | border-bottom: 5px solid #cbcbca; 62 | border-top: 5px solid #2380be; 63 | border-radius: 100% 64 | } 65 | 66 | @keyframes rotation { 67 | from { 68 | transform: rotate(0deg) 69 | } 70 | to { 71 | transform: rotate(359deg) 72 | } 73 | } 74 | `; 75 | 76 | export function Spinner({ nonce }: {| nonce: ?string |}): ElementNode { 77 | return ( 78 |
79 |