├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .github └── stale.yml ├── .gitignore ├── deploy.md ├── git-deploy.js ├── lerna.json ├── package.json ├── packages ├── cookie-universal-nuxt │ ├── .gitignore │ ├── .prettierrc.js │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── module.js │ │ └── templates │ │ │ └── cookie-universal-nuxt.js │ ├── package.json │ ├── types │ │ ├── index.d.ts │ │ └── vue.d.ts │ └── yarn.lock └── cookie-universal │ ├── .eslintrc.js │ ├── .gitignore │ ├── .prettierrc.js │ ├── LICENSE │ ├── README.md │ ├── demo │ ├── cookies-playground.js │ ├── index.html │ ├── server-express.js │ └── server.js │ ├── dist │ ├── cookie-universal-common.js │ └── cookie-universal.js │ ├── index.js │ ├── package-lock.json │ ├── package.json │ ├── test │ ├── index.browser.spec.js │ └── index.server.spec.js │ ├── types │ └── index.d.ts │ ├── webpack.config.js │ └── yarn.lock ├── readme.md └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_size = 2 6 | indent_style = space 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: 'babel-eslint', 4 | env: { 5 | browser: true, 6 | node: true 7 | }, 8 | extends: 'standard', 9 | rules: { 10 | // node specific 11 | 'indent': ['error', 2], 12 | 'node/no-extraneous-require': 'error', 13 | // defaults 14 | 'space-before-function-paren': ['error', { 15 | 'anonymous': 'ignore', 16 | 'named': 'ignore', 17 | 'asyncArrow': 'ignore' 18 | }], 19 | 'new-cap': 0, 20 | 'comma-dangle': 0, 21 | 'no-unused-vars': 0, 22 | 'no-trailing-spaces': 0, 23 | 'arrow-parens': 0, 24 | 'spaced-comment': 0, 25 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 26 | }, 27 | globals: { 28 | 'define': true, 29 | 'it': true, 30 | 'describe': true, 31 | 'before': true, 32 | 'after': true, 33 | 'beforeEach': true, 34 | 'afterEach': true, 35 | }, 36 | } 37 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 60 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: wontfix 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has not had 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.iml 3 | .idea 4 | *.log* 5 | .nuxt 6 | .vscode 7 | .DS_STORE 8 | coverage 9 | 10 | .commit 11 | -------------------------------------------------------------------------------- /deploy.md: -------------------------------------------------------------------------------- 1 | # Deployment instrucitons 2 | 3 | To deploy this project, run the following command: 4 | 5 | ```bash 6 | yarn deploy "commit message here" 7 | ``` 8 | 9 | To publish this project, run this code: 10 | 11 | ```bash 12 | npx lerna publish 13 | ``` 14 | 15 | If lerna fails in the middle of the publishing process, try to run these commands manually: 16 | 17 | ```bash 18 | git push origin --tags 19 | npx lerna exec -- "npm publish || exit 0" 20 | ``` 21 | -------------------------------------------------------------------------------- /git-deploy.js: -------------------------------------------------------------------------------- 1 | const git = require('simple-git')() 2 | const msg = process.argv[2] 3 | 4 | if (process.argv.length !== 3) throw Error(` 5 | You passed the wrong number of arguments. 6 | Try a command like this: 'yarn deploy "Commit msg here"' 7 | `) 8 | if (typeof msg !== 'string') throw Error(`You didn't provide a valid msg`) 9 | 10 | const deploy = () => { 11 | console.log(`Trying to commit to your github repository...`) 12 | 13 | git 14 | .add('./*') 15 | .commit(msg) 16 | .push( 17 | ['-u', 'origin', 'master'], 18 | () => { 19 | console.log(`Your commits have been successfully pushed to your github repository`) 20 | 21 | console.log(`-----------------------------------------------------------`) 22 | console.log(`-----------------------------------------------------------`) 23 | 24 | console.log(`Run 'lerna publish' to publish on npm`) 25 | } 26 | ) 27 | } 28 | 29 | deploy() 30 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "lerna": "2.8.0", 3 | "npmClient": "yarn", 4 | "packages": [ 5 | "packages/*" 6 | ], 7 | "version": "2.2.2" 8 | } 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "deploy": "lerna run build && lerna run test && node ./git-deploy.js" 4 | }, 5 | "devDependencies": { 6 | "lerna": "^2.8.0", 7 | "simple-git": "^3.5.0" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.iml 3 | .idea 4 | *.log* 5 | .nuxt 6 | .vscode 7 | .DS_STORE 8 | coverage 9 | dist -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | semi: false, 3 | singleQuote: true, 4 | trailingComma: 'es5', 5 | tabWidth: 2, 6 | } -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Salvatore Tedde 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/README.md: -------------------------------------------------------------------------------- 1 | # cookie-universal-nuxt 2 | [![npm (scoped with tag)](https://img.shields.io/npm/v/cookie-universal-nuxt/latest.svg?style=flat-square)](https://npmjs.com/package/cookie-universal-nuxt) 3 | [![npm](https://img.shields.io/npm/dt/cookie-universal-nuxt.svg?style=flat-square)](https://npmjs.com/package/cookie-universal-nuxt) 4 | [![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com) 5 | 6 | > Universal cookie plugin for Nuxt, perfect for SSR 7 | 8 | You can use `cookie-universal-nuxt` to set, get and remove cookies in both client and server side nuxt apps. 9 | `cookie-universal-nuxt` parse cookies with the popular [cookie node module](https://github.com/jshttp/cookie). 10 | 11 | ## Install 12 | - yarn: `yarn add cookie-universal-nuxt` 13 | - npm: `npm i --save cookie-universal-nuxt` 14 | 15 | Add `cookie-universal-nuxt` to `nuxt.config.js`: 16 | 17 | ```js 18 | { 19 | // To make it work for SSR, remember to set `ssr: true` and `target: 'server'` 20 | ssr: true, 21 | target: 'server', 22 | 23 | modules: [ 24 | // Simple usage 25 | 'cookie-universal-nuxt', 26 | 27 | // With options 28 | ['cookie-universal-nuxt', { alias: 'cookiz' }], 29 | ] 30 | } 31 | ``` 32 | 33 | 34 | 35 | ## ParseJSON 36 | 37 | By default cookie-universal will try to parse to JSON, however you can disable this 38 | functionality in several ways: 39 | 40 | --- 41 | 42 |
Disable globally

43 | 44 | - Disable from the plugin options: 45 | 46 | ``` 47 | { 48 | modules: [ 49 | ['cookie-universal-nuxt', { parseJSON: false }], 50 | ] 51 | } 52 | ``` 53 |

54 | 55 | --- 56 | 57 |
Disable globally on the fly

58 | 59 | ```js 60 | // nuxt middleware 61 | export default ({ app }) => { 62 | app.$cookies.parseJSON = false 63 | } 64 | 65 | // client 66 | this.$cookies.parseJSON = false 67 | ``` 68 |

69 | 70 | --- 71 | 72 |
Disable on a specific get request

73 | 74 | ```js 75 | // nuxt middleware 76 | export default ({ app }) => { 77 | app.$cookies.get('cookie-name', { parseJSON: false }) 78 | } 79 | 80 | // client 81 | this.$cookies.get('cookie-name', { parseJSON: false }) 82 | ``` 83 |

84 | 85 | ## Api 86 | 87 |
set(name, value, opts)

88 | 89 | - `name` (string): Cookie name to set. 90 | - `value` (string|object): Cookie value. 91 | - `opts` (object): Same as the [cookie node module](https://github.com/jshttp/cookie). 92 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 93 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 94 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 95 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 96 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 97 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 98 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 99 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 100 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 101 | 102 | ```js 103 | const cookieValObject = { param1: 'value1', param2: 'value2' } 104 | 105 | // nuxt middleware 106 | export default ({ app }) => { 107 | app.$cookies.set('cookie-name', 'cookie-value', { 108 | path: '/', 109 | maxAge: 60 * 60 * 24 * 7 110 | }) 111 | app.$cookies.set('cookie-name', cookieValObject, { 112 | path: '/', 113 | maxAge: 60 * 60 * 24 * 7 114 | }) 115 | } 116 | 117 | // client 118 | this.$cookies.set('cookie-name', 'cookie-value', { 119 | path: '/', 120 | maxAge: 60 * 60 * 24 * 7 121 | }) 122 | this.$cookies.set('cookie-name', cookieValObject, { 123 | path: '/', 124 | maxAge: 60 * 60 * 24 * 7 125 | }) 126 | ``` 127 |

128 | 129 | --- 130 | 131 |
setAll(cookieArray)

132 | 133 | - cookieArray (array) 134 | - `name` (string): Cookie name to set. 135 | - `value` (string|object): Cookie value. 136 | - `opts` (object): Same as the [cookie node module](https://github.com/jshttp/cookie) 137 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 138 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 139 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 140 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 141 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 142 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 143 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 144 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 145 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 146 | 147 | ```js 148 | const options = { 149 | path: '/', 150 | maxAge: 60 * 60 * 24 * 7 151 | } 152 | const cookieList = [ 153 | { name: 'cookie-name1', value: 'value1', opts: options }, 154 | { name: 'cookie-name2', value: 'value2', opts: options }, 155 | { name: 'cookie-name3', value: 'value3', opts: options }, 156 | { name: 'cookie-name4', value: 'value4', opts: options } 157 | ] 158 | 159 | // nuxt middleware 160 | export default ({ app }) => { 161 | app.$cookies.setAll(cookieList) 162 | } 163 | 164 | // client 165 | this.$cookies.setAll(cookieList) 166 | ``` 167 |

168 | 169 | --- 170 | 171 |
get(name, opts)

172 | 173 | - `name` (string): Cookie name to get. 174 | - `opts` 175 | - `fromRes` (boolean): Get cookies from res instead of req. 176 | - `parseJSON` (boolean): Parse json, true by default unless overridden globally or locally. 177 | 178 | ```js 179 | // nuxt middleware 180 | export default ({ app }) => { 181 | const cookieRes = app.$cookies.get('cookie-name') 182 | const cookieRes = app.$cookies.get('cookie-name', { fromRes: true }) // get from res instead of req 183 | // returns the cookie value or undefined 184 | } 185 | 186 | // client 187 | const cookieRes = this.$cookies.get('cookie-name') 188 | // returns the cookie value or undefined 189 | ``` 190 |

191 | 192 | --- 193 | 194 |
getAll(opts)

195 | 196 | - `opts` 197 | - `fromRes` (boolean): Get cookies from res instead of req. 198 | - `parseJSON` (boolean): Parse json, true by default unless overridden globally or locally. 199 | 200 | ```js 201 | // nuxt middleware 202 | export default ({ app }) => { 203 | const cookiesRes = app.$cookies.getAll() 204 | const cookiesRes = app.$cookies.getAll({ fromRes: true }) // get from res instead of req 205 | // returns all cookies or {} 206 | //{ 207 | // "cookie-1": "value1", 208 | // "cookie-2": "value2", 209 | //} 210 | } 211 | 212 | // client 213 | const cookiesRes = this.$cookies.getAll() 214 | // returns all cookies or {} 215 | //{ 216 | // "cookie-1": "value1", 217 | // "cookie-2": "value2", 218 | //} 219 | ``` 220 |

221 | 222 | --- 223 | 224 |
remove(name, opts)

225 | 226 | - `name` (string): Cookie name to remove. 227 | - `opts` 228 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 229 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 230 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 231 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 232 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 233 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 234 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 235 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 236 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 237 | 238 | ```js 239 | // nuxt middleware 240 | export default ({ app }) => { 241 | app.$cookies.remove('cookie-name') 242 | app.$cookies.remove('cookie-name', { 243 | // this will allow you to remove a cookie 244 | // from a different path 245 | path: '/my-path' 246 | }) 247 | } 248 | 249 | // client 250 | this.$cookies.remove('cookie-name') 251 | ``` 252 |

253 | 254 | --- 255 | 256 |
removeAll(opts)

257 | 258 | - `opts` 259 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 260 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 261 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 262 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 263 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 264 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 265 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 266 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 267 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 268 | 269 | ```js 270 | // nuxt middleware 271 | export default ({ app }) => { 272 | app.$cookies.removeAll() 273 | } 274 | 275 | // client 276 | this.$cookies.removeAll() 277 | ``` 278 |

279 | 280 | --- 281 | 282 |
nodeCookie

283 | 284 | This property will expose the [cookie node module](https://github.com/jshttp/cookie) so you don't have to include it yourself. 285 | 286 | ```js 287 | 288 | // nuxt middleware 289 | export default ({ app }) => { 290 | const cookieRes = app.$cookies.nodeCookie.parse('cookie-name', 'cookie-value') 291 | cookieRes['cookie-name'] // returns 'cookie-value' 292 | } 293 | 294 | // client 295 | const cookieRes = this.$cookies.nodeCookie.parse('cookie-name', 'cookie-value') 296 | cookieRes['cookie-name'] // returns 'cookie-value' 297 | ``` 298 |

299 | 300 | --- 301 | 302 |
Plugin options

303 | 304 | - `alias` (string): Specifies the plugin alias to use. 305 | - `parseJSON` (boolean): Disable JSON parsing. 306 | 307 | ```js 308 | { 309 | modules: [ 310 | ['cookie-universal-nuxt', { alias: 'cookiz', parseJSON: false }], 311 | ] 312 | } 313 | 314 | 315 | // usage 316 | this.$cookiz.set('cookie-name', 'cookie-value') 317 | ``` 318 |

319 | 320 | ## License 321 | 322 | [MIT License](./LICENSE) 323 | 324 | Copyright (c) Salvatore Tedde 325 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/lib/module.js: -------------------------------------------------------------------------------- 1 | const { resolve } = require('path') 2 | 3 | module.exports = async function module (moduleOptions) { 4 | const defaults = { 5 | alias: 'cookies', 6 | parseJSON: true 7 | } 8 | const options = Object.assign({}, defaults, moduleOptions) 9 | 10 | this.addPlugin({ 11 | src: resolve(__dirname, './templates/cookie-universal-nuxt.js'), 12 | fileName: 'cookie-universal-nuxt.js', 13 | options 14 | }) 15 | } 16 | 17 | module.exports.meta = require('../package.json') 18 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/lib/templates/cookie-universal-nuxt.js: -------------------------------------------------------------------------------- 1 | import cookieUniversal from 'cookie-universal' 2 | 3 | export default ({ req, res }, inject) => { 4 | const options = <%= JSON.stringify(options, null, 2) %> 5 | inject(options.alias, cookieUniversal(req, res, options.parseJSON)) 6 | } 7 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cookie-universal-nuxt", 3 | "version": "2.2.2", 4 | "description": "Universal cookie plugin for Nuxt, perfect for SSR", 5 | "main": "lib/module.js", 6 | "author": "Salvatore Tedde ", 7 | "license": "MIT", 8 | "bugs": "https://github.com/microcipcip/cookie-universal/issues", 9 | "homepage": "https://github.com/microcipcip/cookie-universal/tree/master/packages/cookie-universal-nuxt#readme", 10 | "repository": "https://github.com/microcipcip/cookie-universal/tree/master/packages/cookie-universal-nuxt", 11 | "keywords": [ 12 | "universal cookie", 13 | "SSR cookie", 14 | "node cookie", 15 | "browser cookie", 16 | "cookies", 17 | "cookie" 18 | ], 19 | "publishConfig": { 20 | "access": "public" 21 | }, 22 | "dependencies": { 23 | "@types/cookie": "^0.3.3", 24 | "cookie-universal": "^2.2.2" 25 | }, 26 | "files": [ 27 | "lib", 28 | "types/index.d.ts", 29 | "types/vue.d.ts" 30 | ], 31 | "typings": "types/index.d.ts", 32 | "devDependencies": { 33 | "prettier": "^1.15.3" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { CookieParseOptions, CookieSerializeOptions } from "cookie"; 2 | 3 | // augment typings of Vue.js 4 | import "./vue"; 5 | 6 | type CookieValue = any; 7 | 8 | interface GetOptions { 9 | fromRes?: boolean; 10 | parseJSON?: boolean; 11 | } 12 | 13 | interface SetParams { 14 | name: string; 15 | value: CookieValue; 16 | opts?: CookieSerializeOptions; 17 | } 18 | 19 | interface NodeCookie { 20 | parse(str: string, options?: CookieParseOptions): Record; 21 | serialize(name: string, value: string, options?: CookieSerializeOptions): string; 22 | } 23 | 24 | export interface NuxtCookies { 25 | set: ( 26 | name: string, 27 | value: CookieValue, 28 | opts?: CookieSerializeOptions 29 | ) => void; 30 | setAll: (cookieArray: SetParams[]) => void; 31 | get: (name: string, opts?: GetOptions) => T; 32 | getAll: (opts?: GetOptions) => T; 33 | remove: (name: string, opts?: CookieSerializeOptions) => void; 34 | removeAll: () => void; 35 | nodeCookie: NodeCookie; 36 | } 37 | 38 | declare module "@nuxt/vue-app" { 39 | interface NuxtAppOptions { 40 | $cookies: NuxtCookies; 41 | } 42 | } 43 | // Nuxt 2.9+ 44 | declare module "@nuxt/types" { 45 | interface NuxtAppOptions { 46 | $cookies: NuxtCookies; 47 | } 48 | 49 | interface Context { 50 | $cookies: NuxtCookies; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/types/vue.d.ts: -------------------------------------------------------------------------------- 1 | import { NuxtCookies } from "./index"; 2 | 3 | // augment typings of Vue.js 4 | import "./vue"; 5 | 6 | declare module "vue/types/vue" { 7 | interface Vue { 8 | $cookies: NuxtCookies; 9 | } 10 | } 11 | 12 | declare module 'vuex/types/index' { 13 | interface Store { 14 | $cookies: NuxtCookies 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /packages/cookie-universal-nuxt/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@types/cookie@^0.3.1": 6 | version "0.3.1" 7 | resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.3.1.tgz#720a756ea8e760a258708b52441bd341f1ef4296" 8 | integrity sha512-64Uv+8bTRVZHlbB8eXQgMP9HguxPgnOOIYrQpwHWrtLDrtcG/lILKhUl7bV65NSOIJ9dXGYD7skQFXzhL8tk1A== 9 | 10 | "@types/cookie@^0.3.3": 11 | version "0.3.3" 12 | resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.3.3.tgz#85bc74ba782fb7aa3a514d11767832b0e3bc6803" 13 | integrity sha512-LKVP3cgXBT9RYj+t+9FDKwS5tdI+rPBXaNSkma7hvqy35lc7mAokC2zsqWJH0LaqIt3B962nuYI77hsJoT1gow== 14 | 15 | cookie-universal@^2.0.16: 16 | version "2.0.16" 17 | resolved "https://registry.yarnpkg.com/cookie-universal/-/cookie-universal-2.0.16.tgz#ec8b55789b502a377ef02ad230923c1dfa5c1061" 18 | integrity sha512-EHtQ5Tg3UoUHG7LmeV3rlV3iYthkhUuYZ0y86EseypxGcUuvzxuHExEb6mHKDhDPrIrdewAHdG/aCHuG/T4zEg== 19 | dependencies: 20 | "@types/cookie" "^0.3.1" 21 | cookie "^0.3.1" 22 | 23 | cookie@^0.3.1: 24 | version "0.3.1" 25 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" 26 | integrity sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s= 27 | 28 | prettier@^1.15.3: 29 | version "1.15.3" 30 | resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.3.tgz#1feaac5bdd181237b54dbe65d874e02a1472786a" 31 | integrity sha512-gAU9AGAPMaKb3NNSUUuhhFAS7SCO4ALTN4nRIn6PJ075Qd28Yn2Ig2ahEJWdJwJmlEBTUfC7mMUSFy8MwsOCfg== 32 | -------------------------------------------------------------------------------- /packages/cookie-universal/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: 'babel-eslint', 4 | env: { 5 | browser: true, 6 | node: true, 7 | }, 8 | extends: 'standard', 9 | rules: { 10 | // node specific 11 | indent: ['error', 2], 12 | 'node/no-extraneous-require': 'error', 13 | // defaults 14 | 'space-before-function-paren': [ 15 | 'error', 16 | { 17 | anonymous: 'ignore', 18 | named: 'ignore', 19 | asyncArrow: 'ignore', 20 | }, 21 | ], 22 | 'new-cap': 0, 23 | 'comma-dangle': 0, 24 | 'no-unused-vars': 0, 25 | 'no-trailing-spaces': 0, 26 | 'arrow-parens': 0, 27 | 'spaced-comment': 0, 28 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 29 | }, 30 | globals: { 31 | define: true, 32 | it: true, 33 | describe: true, 34 | before: true, 35 | after: true, 36 | beforeEach: true, 37 | afterEach: true, 38 | }, 39 | } 40 | -------------------------------------------------------------------------------- /packages/cookie-universal/.gitignore: -------------------------------------------------------------------------------- 1 | # IDE, temp files 2 | _notes 3 | ._*.* 4 | /dbg/ 5 | .project 6 | *.cpf 7 | *.cpfs 8 | *.DS_Store 9 | *.idea 10 | 11 | # Logs 12 | logs 13 | *.log 14 | npm-debug.log 15 | 16 | # dependencies 17 | node_modules -------------------------------------------------------------------------------- /packages/cookie-universal/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | semi: false, 3 | singleQuote: true, 4 | trailingComma: 'es5', 5 | tabWidth: 2, 6 | } -------------------------------------------------------------------------------- /packages/cookie-universal/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Salvatore Tedde 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/cookie-universal/README.md: -------------------------------------------------------------------------------- 1 | # cookie-universal 2 | [![npm (scoped with tag)](https://img.shields.io/npm/v/cookie-universal/latest.svg?style=flat-square)](https://npmjs.com/package/cookie-universal) 3 | [![npm](https://img.shields.io/npm/dt/cookie-universal.svg?style=flat-square)](https://npmjs.com/package/cookie-universal) 4 | [![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com) 5 | 6 | > Universal cookie plugin, perfect for SSR 7 | 8 | You can use `cookie-universal` to set, get and remove cookies in the browser, node, connect and express apps. 9 | `cookie-universal` parse cookies with the popular [cookie node module](https://github.com/jshttp/cookie). 10 | 11 | ## Install 12 | - yarn: `yarn add cookie-universal` 13 | - npm: `npm i --save cookie-universal` 14 | 15 | ## Usage 16 | 17 | ```js 18 | // server 19 | app.get('/', (req, res) => { 20 | const cookies = require('cookie-universal')(req, res) 21 | cookies.set('cookie-name', 'cookie-value') 22 | }) 23 | 24 | // browser, from import 25 | import Cookie from 'cookie-universal' 26 | const cookies = Cookie() 27 | cookies.set('cookie-name', 'cookie-value') 28 | 29 | // browser, from dist 30 | // note: include dist/cookie-universal.js 31 | const cookies = Cookie() 32 | cookies.set('cookie-name', 'cookie-value') 33 | ``` 34 | 35 | ## ParseJSON 36 | 37 | By default cookie-universal will try to parse to JSON, however you can disable this 38 | functionality in several ways: 39 | 40 | --- 41 | 42 |
Disable globally

43 | 44 | ```js 45 | // server 46 | const parseJSON = false 47 | app.get('/', (req, res) => { 48 | const cookies = require('cookie-universal')(req, res, parseJSON) 49 | }) 50 | 51 | // browser, from import 52 | import Cookie from 'cookie-universal' 53 | const parseJSON = false 54 | const cookies = Cookie(false, false, parseJSON) 55 | ``` 56 |

57 | 58 | --- 59 | 60 |
Disable globally on the fly

61 | 62 | ```js 63 | // server 64 | app.get('/', (req, res) => { 65 | const cookies = require('cookie-universal')(req, res) 66 | cookies.parseJSON = false 67 | }) 68 | 69 | // browser, from import 70 | import Cookie from 'cookie-universal' 71 | const cookies = Cookie(false, false) 72 | cookies.parseJSON = false 73 | ``` 74 |

75 | 76 | --- 77 | 78 |
Disable on a specific get request

79 | 80 | ```js 81 | // server 82 | app.get('/', (req, res) => { 83 | const cookies = require('cookie-universal')(req, res) 84 | cookies.set('cookie-name', 'cookie-value') 85 | cookies.get('cookie-name', { parseJSON: false }) 86 | }) 87 | 88 | // browser, from import 89 | import Cookie from 'cookie-universal' 90 | const cookies = Cookie(false, false) 91 | cookies.set('cookie-name', 'cookie-value') 92 | cookies.get('cookie-name', { parseJSON: false }) 93 | ``` 94 |

95 | 96 | ## Api 97 | 98 |
set(name, value, opts)

99 | 100 | - `name` (string): Cookie name to set. 101 | - `value` (string|object): Cookie value. 102 | - `opts` (object): Same as the [cookie node module](https://github.com/jshttp/cookie). 103 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 104 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 105 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 106 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 107 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 108 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 109 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 110 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 111 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 112 | 113 | ```js 114 | const cookieValObject = { param1: 'value1', param2: 'value2' } 115 | 116 | // server 117 | app.get('/', (req, res) => { 118 | const cookies = require('cookie-universal')(req, res) 119 | cookies.set('cookie-name', 'cookie-value', { 120 | path: '/', 121 | maxAge: 60 * 60 * 24 * 7 122 | }) 123 | cookies.set('cookie-name', cookieValObject, { 124 | path: '/', 125 | maxAge: 60 * 60 * 24 * 7 126 | }) 127 | }) 128 | 129 | // client 130 | import Cookie from 'cookie-universal' 131 | const cookies = Cookie() 132 | cookies.set('cookie-name', 'cookie-value', { 133 | path: '/', 134 | maxAge: 60 * 60 * 24 * 7 135 | }) 136 | cookies.set('cookie-name', cookieValObject, { 137 | path: '/', 138 | maxAge: 60 * 60 * 24 * 7 139 | }) 140 | ``` 141 |

142 | 143 | --- 144 | 145 |
setAll(cookieArray)

146 | 147 | - cookieArray (array) 148 | - `name` (string): Cookie name to set. 149 | - `value` (string|object): Cookie value. 150 | - `opts` (object): Same as the [cookie node module](https://github.com/jshttp/cookie). 151 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 152 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 153 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 154 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 155 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 156 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 157 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 158 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 159 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 160 | 161 | ```js 162 | const options = { 163 | path: '/', 164 | maxAge: 60 * 60 * 24 * 7 165 | } 166 | const cookieList = [ 167 | { name: 'cookie-name1', value: 'value1', opts: options }, 168 | { name: 'cookie-name2', value: 'value2', opts: options }, 169 | { name: 'cookie-name3', value: 'value3', opts: options }, 170 | { name: 'cookie-name4', value: 'value4', opts: options } 171 | ] 172 | 173 | // server 174 | app.get('/', (req, res) => { 175 | const cookies = require('cookie-universal')(req, res) 176 | cookies.setAll(cookieList) 177 | }) 178 | 179 | // client 180 | import Cookie from 'cookie-universal' 181 | const cookies = Cookie() 182 | cookies.setAll(cookieList) 183 | ``` 184 |

185 | 186 | --- 187 | 188 |
get(name, opts)

189 | 190 | - `name` (string): Cookie name to get. 191 | - `opts` 192 | - `fromRes` (boolean): Get cookies from res instead of req. 193 | - `parseJSON` (boolean): Parse json, true by default unless overridden globally or locally. 194 | 195 | ```js 196 | // server 197 | app.get('/', (req, res) => { 198 | const cookies = require('cookie-universal')(req, res) 199 | const cookieRes = cookies.get('cookie-name') 200 | const cookieRes = cookies.get('cookie-name', { fromRes: true }) // get from res instead of req 201 | // returns the cookie value or undefined 202 | }) 203 | 204 | // client 205 | import Cookie from 'cookie-universal' 206 | const cookies = Cookie() 207 | const cookieRes = cookies.get('cookie-name') 208 | // returns the cookie value or undefined 209 | ``` 210 |

211 | 212 | --- 213 | 214 |
getAll(opts)

215 | 216 | - `opts` 217 | - `fromRes` (boolean): Get cookies from res instead of req. 218 | - `parseJSON` (boolean): Parse json, true by default unless overridden globally or locally. 219 | 220 | ```js 221 | // server 222 | app.get('/', (req, res) => { 223 | const cookies = require('cookie-universal')(req, res) 224 | const cookiesRes = cookies.getAll() 225 | const cookiesRes = cookies.getAll({ fromRes: true }) // get from res instead of req 226 | // returns all cookies or {} 227 | { 228 | "cookie-1": "value1", 229 | "cookie-2": "value2", 230 | } 231 | }) 232 | 233 | // client 234 | import Cookie from 'cookie-universal' 235 | const cookies = Cookie() 236 | const cookiesRes = cookies.getAll() 237 | // returns all cookies or {} 238 | { 239 | "cookie-1": "value1", 240 | "cookie-2": "value2", 241 | } 242 | ``` 243 |

244 | 245 | --- 246 | 247 |
remove(name, opts)

248 | 249 | - `name` (string): Cookie name to remove. 250 | - `opts` 251 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 252 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 253 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 254 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 255 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 256 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 257 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 258 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 259 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 260 | 261 | ```js 262 | // server 263 | app.get('/', (req, res) => { 264 | const cookies = require('cookie-universal')(req, res) 265 | cookies.remove('cookie-name') 266 | cookies.remove('cookie-name', { 267 | // this will allow you to remove a cookie 268 | // from a different path 269 | path: '/my-path' 270 | }) 271 | }) 272 | 273 | // client 274 | import Cookie from 'cookie-universal' 275 | const cookies = Cookie() 276 | cookies.remove('cookie-name') 277 | ``` 278 |

279 | 280 | --- 281 | 282 |
removeAll(opts)

283 | 284 | - `opts` 285 | - `path` (string): Specifies the value for the Path Set-Cookie attribute. By default, the path is considered the "default path". 286 | - `expires` (date): Specifies the Date object to be the value for the Expires Set-Cookie attribute. 287 | - `maxAge` (number): Specifies the number (in seconds) to be the value for the Max-Age Set-Cookie attribute. 288 | - `httpOnly` (boolean): Specifies the boolean value for the [HttpOnly Set-Cookie attribute][rfc-6265-5.2.6]. 289 | - `domain` (string): specifies the value for the Domain Set-Cookie attribute. 290 | - `encode` (function): Specifies a function that will be used to encode a cookie's value. 291 | - `sameSite` (boolean|string): Specifies the value for the [`SameSite` `Set-Cookie` attribute](https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7). 292 | Possible values: `true`, `false`, `'lax'`, `'none'`, `'strict'` ([see details](https://github.com/jshttp/cookie#samesite)). Default is `false`. 293 | - `secure` (boolean): Specifies the boolean value for the Secure Set-Cookie attribute. 294 | 295 | ```js 296 | // server 297 | app.get('/', (req, res) => { 298 | const cookies = require('cookie-universal')(req, res) 299 | cookies.removeAll() 300 | }) 301 | 302 | // client 303 | import Cookie from 'cookie-universal' 304 | const cookies = Cookie() 305 | cookies.removeAll() 306 | ``` 307 |

308 | 309 | --- 310 | 311 |
nodeCookie

312 | 313 | This property will expose the [cookie node module](https://github.com/jshttp/cookie) so you don't have to include it yourself. 314 | 315 | ```js 316 | 317 | // server 318 | app.get('/', (req, res) => { 319 | const cookies = require('cookie-universal')(req, res) 320 | const cookieRes = cookies.nodeCookie.parse('cookie-name', 'cookie-value') 321 | cookieRes['cookie-name'] // returns 'cookie-value' 322 | }) 323 | 324 | // client 325 | import Cookie from 'cookie-universal' 326 | const cookies = Cookie() 327 | const cookieRes = cookies.nodeCookie.parse('cookie-name', 'cookie-value') 328 | cookieRes['cookie-name'] // returns 'cookie-value' 329 | ``` 330 |

331 | 332 | 333 | ## License 334 | 335 | [MIT License](./LICENSE) 336 | 337 | Copyright (c) Salvatore Tedde 338 | 339 | -------------------------------------------------------------------------------- /packages/cookie-universal/demo/cookies-playground.js: -------------------------------------------------------------------------------- 1 | const cookies = Cookie() 2 | 3 | const $console = document.querySelector('.cookie-console') 4 | const $inputName = document.querySelector('.cookie-input__name') 5 | const $inputValue = document.querySelector('.cookie-input__value') 6 | 7 | const $btnSet = document.querySelector('#cookie-set') 8 | const $btnSetall = document.querySelector('#cookie-setall') 9 | const $btnSetDiffDomain = document.querySelector('#cookie-set-diff-domain') 10 | 11 | const $btnGet = document.querySelector('#cookie-get') 12 | const $btnGetall = document.querySelector('#cookie-getall') 13 | 14 | const $btnRemove = document.querySelector('#cookie-remove') 15 | const $btnRemoveall = document.querySelector('#cookie-removeall') 16 | const $btnRemoveDiffDomain = document.querySelector('#cookie-remove-diff-domain') 17 | 18 | const setConsole = (msg) => { 19 | const result = $console.innerHTML 20 | $console.innerHTML = `

${msg}

${result}` 21 | } 22 | 23 | const domain = '.localhost' 24 | 25 | const notExpiredCookie = { 26 | path: '/', 27 | maxAge: 60 * 60 * 24 * 7 // 1 week 28 | } 29 | 30 | const getName = () => $inputName.value 31 | const getValue = () => $inputValue.value 32 | 33 | $btnSet.addEventListener('click', function (e) { 34 | e.preventDefault() 35 | cookies.set(getName(), getValue(), notExpiredCookie) 36 | setConsole(`Setting cookie:
{ ${getName()}: ${cookies.get(getName())} }
`) 37 | }) 38 | 39 | $btnSetall.addEventListener('click', (e) => { 40 | e.preventDefault() 41 | const rand = Math.random() 42 | const cookieList = [ 43 | { name: `${rand}1`, value: 'value1' }, 44 | { name: `${rand}2`, value: 'value2' }, 45 | { name: `${rand}3`, value: 'value3' }, 46 | { name: `${rand}4`, value: 'value4' }, 47 | { name: `${rand}5`, value: 'value5' }, 48 | { name: `${rand}6`, value: 'value6' } 49 | ] 50 | cookies.setAll(cookieList) 51 | setConsole(`Setting multiple cookie:
${JSON.stringify(cookieList, null, 2)}
`) 52 | }) 53 | 54 | $btnSetDiffDomain.addEventListener('click', function (e) { 55 | e.preventDefault() 56 | cookies.set(getName(), getValue(), { ...notExpiredCookie, domain }) 57 | setConsole(`Setting cookie:
{ ${getName()}: ${cookies.get(getName())} }
`) 58 | }) 59 | 60 | $btnGet.addEventListener('click', (e) => { 61 | e.preventDefault() 62 | setConsole(`Getting cookie:
{ ${getName()}: ${cookies.get(getName())} }
`) 63 | }) 64 | 65 | $btnGetall.addEventListener('click', (e) => { 66 | e.preventDefault() 67 | setConsole(`Getting all cookies:
${JSON.stringify(cookies.getAll(), null, 2)}
`) 68 | }) 69 | 70 | $btnRemove.addEventListener('click', (e) => { 71 | e.preventDefault() 72 | setConsole(`Removing cookie:
{ ${getName()}: ${cookies.get(getName())} }
`) 73 | cookies.remove(getName()) 74 | }) 75 | 76 | $btnRemoveall.addEventListener('click', (e) => { 77 | e.preventDefault() 78 | setConsole(`Removing cookies:
${JSON.stringify(cookies.getAll(getName()), null, 2)}
`) 79 | cookies.removeAll() 80 | }) 81 | 82 | $btnRemoveDiffDomain.addEventListener('click', (e) => { 83 | e.preventDefault() 84 | setConsole(`Removing cookie:
{ ${getName()}: ${cookies.get(getName())} }
`) 85 | cookies.remove(getName(), { domain }) 86 | }) 87 | -------------------------------------------------------------------------------- /packages/cookie-universal/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Cookie universal 6 | 7 | 8 | 9 | 10 |
11 |

12 |
13 |

Cookie playground

14 |
15 | 65 |
66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /packages/cookie-universal/demo/server-express.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const app = express() 3 | const port = 8080 4 | const Cookie = require('../index') 5 | 6 | const testCookies = (req, res) => { 7 | const cookies = Cookie(req, res) 8 | 9 | // set cookie 10 | cookies.set('node', 'setting cookie', { 11 | path: '/', 12 | maxAge: 60 * 60 * 24 * 7 // 1 week 13 | }) 14 | 15 | cookies.set('node-again', 'setting cookie again', { 16 | path: '/', 17 | maxAge: 60 * 60 * 24 * 7 // 1 week 18 | }) 19 | 20 | // cookies.remove('node-again') 21 | 22 | const rand = Math.random() 23 | const cookieList = [ 24 | { name: `${rand}1`, value: 'value1' }, 25 | { name: `${rand}2`, value: 'value2' }, 26 | { name: `${rand}3`, value: 'value3' }, 27 | { name: `${rand}4`, value: 'value4' }, 28 | { name: `${rand}5`, value: 'value5' }, 29 | { name: `${rand}6`, value: 'value6', opts: { path: '/', httpOnly: true } } 30 | ] 31 | cookies.setAll(cookieList) 32 | } 33 | 34 | app.use((req, res, next) => { 35 | const fileType = req.url.split('.')[1] 36 | if (fileType === 'html') testCookies(req, res) 37 | next() 38 | }) 39 | app.use(express.static('./')) 40 | 41 | app.listen(port, () => { 42 | console.log(`You can access the demo from http://localhost:${port}/demo/index.html`) 43 | }) 44 | -------------------------------------------------------------------------------- /packages/cookie-universal/demo/server.js: -------------------------------------------------------------------------------- 1 | const http = require('http') 2 | const url = require('url') 3 | const path = require('path') 4 | const fs = require('fs') 5 | const port = 8080 6 | const Cookie = require('../index') 7 | 8 | const mimeTypes = { 9 | 'html': 'text/html', 10 | 'jpeg': 'image/jpeg', 11 | 'jpg': 'image/jpeg', 12 | 'png': 'image/png', 13 | 'js': 'text/javascript', 14 | 'css': 'text/css' 15 | } 16 | 17 | const testCookies = (req, res) => { 18 | const cookies = Cookie(req, res) 19 | 20 | // set cookie 21 | cookies.set('node', 'setting cookie', { 22 | path: '/', 23 | maxAge: 60 * 60 * 24 * 7 // 1 week 24 | }) 25 | 26 | cookies.set('node-again', 'setting cookie again', { 27 | path: '/', 28 | maxAge: 60 * 60 * 24 * 7 // 1 week 29 | }) 30 | 31 | // cookies.remove('node-again') 32 | 33 | const rand = Math.random() 34 | const cookieList = [ 35 | { name: `${rand}1`, value: 'value1' }, 36 | { name: `${rand}2`, value: 'value2' }, 37 | { name: `${rand}3`, value: 'value3' }, 38 | { name: `${rand}4`, value: 'value4' }, 39 | { name: `${rand}5`, value: 'value5' }, 40 | { name: `${rand}6`, value: 'value6', opts: { path: '/', httpOnly: true } } 41 | ] 42 | cookies.setAll(cookieList) 43 | } 44 | 45 | http.createServer((req, res) => { 46 | const uri = url.parse(req.url).pathname 47 | const filename = path.join(process.cwd(), uri) 48 | fs.exists(filename, (exists) => { 49 | if(!exists) { 50 | res.writeHead(200, {'Content-Type': 'text/plain'}) 51 | res.write('404 Not Found\n') 52 | res.end() 53 | return 54 | } 55 | const mimeType = mimeTypes[path.extname(filename).split('.')[1]] 56 | 57 | // run only on html 58 | if (mimeType === 'text/html') testCookies(req, res) 59 | 60 | res.writeHead(200, { 'Content-Type': mimeType }) 61 | 62 | const fileStream = fs.createReadStream(filename) 63 | fileStream.pipe(res) 64 | }) 65 | }).listen(port, () => { 66 | console.log(`You can access the demo from http://localhost:${port}/demo/index.html`) 67 | }) 68 | -------------------------------------------------------------------------------- /packages/cookie-universal/dist/cookie-universal-common.js: -------------------------------------------------------------------------------- 1 | module.exports=function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(1);e.exports=function(t,r){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":o(document))&&"string"==typeof document.cookie,s="object"===(void 0===t?"undefined":o(t))&&"object"===(void 0===r?"undefined":o(r))&&void 0!==e,u=!a&&!s||a&&s,f=function(e){if(s){var o=t.headers.cookie||"";return e&&(o=r.getHeaders(),o=o["set-cookie"]?o["set-cookie"].map(function(e){return e.split(";")[0]}).join(";"):""),o}if(a)return document.cookie||""},c=function(){var e=r.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]},p=function(e){return r.setHeader("Set-Cookie",e)},d=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(t){return e}},l={parseJSON:i,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(t="object"===(void 0===t?"undefined":o(t))?JSON.stringify(t):t,s){var i=c();i.push(n.serialize(e,t,r)),p(i)}else document.cookie=n.serialize(e,t,r)},setAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(e)&&e.forEach(function(e){var t=e.name,r=void 0===t?"":t,o=e.value,n=void 0===o?"":o,i=e.opts,a=void 0===i?{path:"/"}:i;l.set(r,n,a)})},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:l.parseJSON};if(u)return"";var r=n.parse(f(t.fromRes)),o=r[e];return d(o,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:l.parseJSON};if(u)return{};var t=n.parse(f(e.fromRes));for(var r in t)t[r]=d(t[r],e.parseJSON);return t},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};u||(t.expires=new Date(0),l.set(e,"",t))},removeAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!u){var t=n.parse(f());for(var r in t)l.remove(r,e)}},nodeCookie:n};return l}},function(e,t,r){"use strict";function o(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},n=e.split(u),s=o.decode||a,f=0;f2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":o(document))&&"string"==typeof document.cookie,s="object"===(void 0===t?"undefined":o(t))&&"object"===(void 0===r?"undefined":o(r))&&void 0!==e,u=!a&&!s||a&&s,f=function(e){if(s){var o=t.headers.cookie||"";return e&&(o=r.getHeaders(),o=o["set-cookie"]?o["set-cookie"].map(function(e){return e.split(";")[0]}).join(";"):""),o}if(a)return document.cookie||""},c=function(){var e=r.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]},p=function(e){return r.setHeader("Set-Cookie",e)},d=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(t){return e}},l={parseJSON:i,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(t="object"===(void 0===t?"undefined":o(t))?JSON.stringify(t):t,s){var i=c();i.push(n.serialize(e,t,r)),p(i)}else document.cookie=n.serialize(e,t,r)},setAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(e)&&e.forEach(function(e){var t=e.name,r=void 0===t?"":t,o=e.value,n=void 0===o?"":o,i=e.opts,a=void 0===i?{path:"/"}:i;l.set(r,n,a)})},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:l.parseJSON};if(u)return"";var r=n.parse(f(t.fromRes)),o=r[e];return d(o,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:l.parseJSON};if(u)return{};var t=n.parse(f(e.fromRes));for(var r in t)t[r]=d(t[r],e.parseJSON);return t},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};u||(t.expires=new Date(0),l.set(e,"",t))},removeAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!u){var t=n.parse(f());for(var r in t)l.remove(r,e)}},nodeCookie:n};return l}},function(e,t,r){"use strict";function o(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},n=e.split(u),s=o.decode||a,f=0;f { 4 | let isClient = 5 | typeof document === 'object' && typeof document.cookie === 'string' 6 | let isServer = 7 | typeof req === 'object' && 8 | typeof res === 'object' && 9 | typeof module !== 'undefined' 10 | let isNeither = (!isClient && !isServer) || (isClient && isServer) 11 | 12 | const getHeaders = fromRes => { 13 | if (isServer) { 14 | let h = req.headers.cookie || '' 15 | if (fromRes) { 16 | h = res.getHeaders() 17 | h = h['set-cookie'] 18 | ? h['set-cookie'].map(c => c.split(';')[0]).join(';') 19 | : '' 20 | } 21 | return h 22 | } 23 | if (isClient) return document.cookie || '' 24 | } 25 | 26 | const getResponseCookies = () => { 27 | let cookies = res.getHeader('Set-Cookie') 28 | cookies = typeof cookies === 'string' ? [cookies] : cookies 29 | return cookies || [] 30 | } 31 | const setResponseCookie = cookieList => 32 | res.setHeader('Set-Cookie', cookieList) 33 | 34 | const parseToJSON = (val, enableParsing) => { 35 | if (!enableParsing) return val 36 | try { 37 | return JSON.parse(val) 38 | } catch (err) { 39 | return val 40 | } 41 | } 42 | 43 | // public api 44 | const state = { 45 | parseJSON, 46 | 47 | set(name = '', value = '', opts = { path: '/' }) { 48 | if (isNeither) return 49 | value = typeof value === 'object' ? JSON.stringify(value) : value 50 | 51 | if (isServer) { 52 | const cookies = getResponseCookies() 53 | cookies.push(Cookie.serialize(name, value, opts)) 54 | setResponseCookie(cookies) 55 | } else { 56 | document.cookie = Cookie.serialize(name, value, opts) 57 | } 58 | }, 59 | 60 | setAll(cookieList = []) { 61 | if (isNeither) return 62 | if (!Array.isArray(cookieList)) return 63 | cookieList.forEach(cookie => { 64 | const { name = '', value = '', opts = { path: '/' } } = cookie 65 | state.set(name, value, opts) 66 | }) 67 | }, 68 | 69 | get(name = '', opts = { fromRes: false, parseJSON: state.parseJSON }) { 70 | if (isNeither) return '' 71 | const cookies = Cookie.parse(getHeaders(opts.fromRes)) 72 | const cookie = cookies[name] 73 | return parseToJSON(cookie, opts.parseJSON) 74 | }, 75 | 76 | getAll(opts = { fromRes: false, parseJSON: state.parseJSON }) { 77 | if (isNeither) return {} 78 | const cookies = Cookie.parse(getHeaders(opts.fromRes)) 79 | for (const cookie in cookies) { 80 | cookies[cookie] = parseToJSON(cookies[cookie], opts.parseJSON) 81 | } 82 | return cookies 83 | }, 84 | 85 | remove(name = '', opts = { path: '/' }) { 86 | if (isNeither) return 87 | opts.expires = new Date(0) 88 | state.set(name, '', opts) 89 | }, 90 | 91 | removeAll(opts = { path: '/' }) { 92 | if (isNeither) return 93 | const cookies = Cookie.parse(getHeaders()) 94 | for (const cookie in cookies) { 95 | state.remove(cookie, opts) 96 | } 97 | }, 98 | 99 | // expose cookie library 100 | nodeCookie: Cookie, 101 | } 102 | 103 | return state 104 | } 105 | -------------------------------------------------------------------------------- /packages/cookie-universal/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cookie-universal", 3 | "version": "2.2.2", 4 | "description": "Universal cookie plugin, perfect for SSR", 5 | "main": "dist/cookie-universal-common.js", 6 | "author": "Salvatore Tedde ", 7 | "license": "MIT", 8 | "bugs": "https://github.com/microcipcip/cookie-universal/issues", 9 | "homepage": "https://github.com/microcipcip/cookie-universal/tree/master/packages/cookie-universal#readme", 10 | "repository": "https://github.com/microcipcip/cookie-universal/tree/master/packages/cookie-universal", 11 | "scripts": { 12 | "build": "webpack", 13 | "demo-node": "nodemon ./demo/server.js", 14 | "demo-express": "nodemon ./demo/server-express.js", 15 | "dev": "nodemon index.js --exec \"npm run lint && node\"", 16 | "lint": "eslint index.js", 17 | "test-nodemon": "nodemon --exec \"npm run testlint && npm run mocha\"", 18 | "test": "npm run testlint && npm run mocha", 19 | "testlint": "eslint **/*.spec.js", 20 | "mocha": "mocha \"./{,!(node_modules)/**/}*.spec.js\"" 21 | }, 22 | "keywords": [ 23 | "universal cookie", 24 | "SSR cookie", 25 | "node cookie", 26 | "browser cookie", 27 | "cookies", 28 | "cookie" 29 | ], 30 | "publishConfig": { 31 | "access": "public" 32 | }, 33 | "dependencies": { 34 | "@types/cookie": "^0.3.3", 35 | "cookie": "^0.4.0" 36 | }, 37 | "devDependencies": { 38 | "babel-core": "^6.26.0", 39 | "babel-eslint": "^7.2.3", 40 | "babel-loader": "^7.1.2", 41 | "babel-preset-env": "^1.6.1", 42 | "chai": "^4.2.0", 43 | "chai-http": "^4.3.0", 44 | "clean-webpack-plugin": "^0.1.17", 45 | "date-fns": "^1.29.0", 46 | "eslint": "^4.3.0", 47 | "eslint-config-standard": "^10.2.1", 48 | "eslint-plugin-import": "^2.8.0", 49 | "eslint-plugin-node": "^5.1.1", 50 | "eslint-plugin-promise": "^3.5.0", 51 | "eslint-plugin-standard": "^3.0.1", 52 | "express": "^4.16.2", 53 | "jsdom": "^16.5.0", 54 | "mocha": "^4.0.1", 55 | "prettier": "^1.15.3", 56 | "webpack": "^3.10.0", 57 | "webpack-merge": "^4.1.1" 58 | }, 59 | "files": [ 60 | "dist/", 61 | "types/index.d.ts" 62 | ], 63 | "typings": "types/index.d.ts" 64 | } 65 | -------------------------------------------------------------------------------- /packages/cookie-universal/test/index.browser.spec.js: -------------------------------------------------------------------------------- 1 | /* eslint no-unused-expressions: "off" */ 2 | 3 | const dateFns = require('date-fns') 4 | const fs = require('fs') 5 | const expect = require('chai').expect 6 | const { JSDOM } = require('jsdom') 7 | const Cookie = fs.readFileSync('dist/cookie-universal.js', { 8 | encoding: 'utf-8', 9 | }) 10 | 11 | let window, cookies, rand, cookieList 12 | let oneWeek = 60 * 60 * 24 * 7 13 | 14 | describe(`Browser`, () => { 15 | beforeEach(() => { 16 | window = new JSDOM(``, { runScripts: 'dangerously' }).window 17 | const scriptEl = window.document.createElement('script') 18 | scriptEl.textContent = Cookie 19 | window.document.body.appendChild(scriptEl) 20 | cookies = window.Cookie() 21 | 22 | rand = Math.random() 23 | cookieList = [ 24 | { name: `${rand}1`, value: 'value1' }, 25 | { name: `${rand}2`, value: 'value2' }, 26 | { name: `${rand}3`, value: 'value3' }, 27 | { name: `${rand}4`, value: 'value4' }, 28 | { name: `${rand}5`, value: 'value5' }, 29 | { name: `${rand}6`, value: 'value6' }, 30 | ] 31 | }) 32 | 33 | describe(`Set cookie`, () => { 34 | it(`should set a cookie when no options are passed`, () => { 35 | const cookieName = `test-cookie` 36 | const cookieContent = `this is a test cookie` 37 | cookies.set(cookieName, cookieContent) 38 | expect(cookies.get(cookieName)).to.have.string(cookieContent) 39 | }) 40 | 41 | it(`should set a cookie object and parse it`, () => { 42 | const cookieName = `test-cookie` 43 | const cookieContent = { param1: 'value1', param2: 'value2' } 44 | cookies.set(cookieName, cookieContent) 45 | 46 | const cookie = cookies.get(cookieName) 47 | expect(cookie).to.deep.equal(cookieContent) 48 | expect(cookie.param1).to.have.string(cookieContent.param1) 49 | }) 50 | 51 | it(`should set a cookie with positive maxAge`, () => { 52 | const cookieName = `test-cookie` 53 | const cookieContent = `this is a test cookie` 54 | cookies.set(cookieName, cookieContent, { 55 | path: '/', 56 | maxAge: oneWeek, 57 | }) 58 | expect(cookies.get(cookieName)).to.have.string(cookieContent) 59 | }) 60 | 61 | it(`should not set a cookie with negative maxAge`, () => { 62 | const cookieName = 'test-cookie' 63 | const cookieContent = 'this is a test cookie' 64 | cookies.set(cookieName, cookieContent, { 65 | path: '/', 66 | maxAge: -1, 67 | }) 68 | expect(cookies.get(cookieName)).to.be.undefined 69 | }) 70 | 71 | it(`should set a cookie with positive expires`, () => { 72 | const cookieName = `test-cookie` 73 | const cookieContent = `this is a test cookie` 74 | cookies.set(cookieName, cookieContent, { 75 | path: '/', 76 | expires: dateFns.addWeeks(new Date(), 1), 77 | }) 78 | expect(cookies.get(cookieName)).to.have.string(cookieContent) 79 | }) 80 | 81 | it(`should not set a cookie with negative expires`, () => { 82 | const cookieName = 'test-cookie' 83 | const cookieContent = 'this is a test cookie' 84 | cookies.set(cookieName, cookieContent, { 85 | path: '/', 86 | expires: dateFns.subSeconds(new Date(), 30), 87 | }) 88 | expect(cookies.get(cookieName)).to.be.undefined 89 | }) 90 | }) 91 | 92 | describe(`Set all cookies`, () => { 93 | it(`should set multiple cookies`, () => { 94 | cookies.setAll(cookieList) 95 | cookieList.forEach(cookie => { 96 | expect(cookies.get(cookie.name)).to.have.string(cookie.value) 97 | expect(cookies.get(cookie.name)).to.not.have.string(cookie.value + 1) 98 | }) 99 | }) 100 | }) 101 | 102 | describe(`Get cookie`, () => { 103 | it(`should get a cookie with same name`, () => { 104 | const cookieName = `test-cookie` 105 | const cookieContent = `this is a test cookie` 106 | cookies.set(cookieName, cookieContent, { 107 | path: '/', 108 | maxAge: oneWeek, 109 | }) 110 | expect(cookies.get(cookieName)).to.have.string(cookieContent) 111 | }) 112 | 113 | it(`should not get a cookie with different name`, () => { 114 | const cookieName = `test-cookie` 115 | const cookieContent = `this is a test cookie` 116 | cookies.set(cookieName, cookieContent, { 117 | path: '/', 118 | maxAge: oneWeek, 119 | }) 120 | expect(cookies.get(cookieName + 1)).to.be.undefined 121 | }) 122 | 123 | it(`should not get a cookie with different path`, () => { 124 | const cookieName = `test-cookie` 125 | const cookieContent = `this is a test cookie` 126 | cookies.set(cookieName, cookieContent, { 127 | path: '/custom/path', 128 | maxAge: oneWeek, 129 | }) 130 | expect(cookies.get(cookieName)).to.be.undefined 131 | }) 132 | 133 | it(`should get a cookie with value set as an object`, () => { 134 | const cookieName = `test-cookie` 135 | const cookieContent = { param1: 'value1', param2: 'value2' } 136 | cookies.set(cookieName, cookieContent) 137 | const cookie = cookies.get(cookieName) 138 | expect(cookie.param1).to.have.string(cookieContent.param1) 139 | }) 140 | 141 | it(`should not parse the cookie if I disable global parsing`, () => { 142 | cookies = window.Cookie(false, false, false) 143 | const cookieName = `test-cookie` 144 | const cookieContent = { param1: 'value1', param2: 'value2' } 145 | cookies.set(cookieName, cookieContent, { 146 | path: '/', 147 | maxAge: oneWeek, 148 | }) 149 | expect(cookies.get(cookieName)).to.be.a('string') 150 | }) 151 | 152 | it(`should parse the cookie if I enable global parsing`, () => { 153 | cookies = window.Cookie(false, false, true) 154 | const cookieName = `test-cookie` 155 | const cookieContent = { param1: 'value1', param2: 'value2' } 156 | cookies.set(cookieName, cookieContent, { 157 | path: '/', 158 | maxAge: oneWeek, 159 | }) 160 | expect(cookies.get(cookieName)).to.be.a('object') 161 | }) 162 | 163 | it(`should not parse the cookie if I disable local parsing`, () => { 164 | cookies.parseJSON = false 165 | const cookieName = `test-cookie` 166 | const cookieContent = { param1: 'value1', param2: 'value2' } 167 | cookies.set(cookieName, cookieContent, { 168 | path: '/', 169 | maxAge: oneWeek, 170 | }) 171 | expect(cookies.get(cookieName)).to.be.a('string') 172 | }) 173 | 174 | it(`should parse the cookie if I enable local parsing`, () => { 175 | cookies.parseJSON = true 176 | const cookieName = `test-cookie` 177 | const cookieContent = { param1: 'value1', param2: 'value2' } 178 | cookies.set(cookieName, cookieContent, { 179 | path: '/', 180 | maxAge: oneWeek, 181 | }) 182 | expect(cookies.get(cookieName)).to.be.a('object') 183 | }) 184 | 185 | it(`should not parse the cookie if I disable parsing`, () => { 186 | const cookieName = `test-cookie` 187 | const cookieContent = { param1: 'value1', param2: 'value2' } 188 | cookies.set(cookieName, cookieContent, { 189 | path: '/', 190 | maxAge: oneWeek, 191 | }) 192 | expect(cookies.get(cookieName, { parseJSON: false })).to.be.a('string') 193 | }) 194 | 195 | it(`should parse the cookie if I enable parsing`, () => { 196 | const cookieName = `test-cookie` 197 | const cookieContent = { param1: 'value1', param2: 'value2' } 198 | cookies.set(cookieName, cookieContent, { 199 | path: '/', 200 | maxAge: oneWeek, 201 | }) 202 | expect(cookies.get(cookieName, { parseJSON: true })).to.be.a('object') 203 | }) 204 | }) 205 | 206 | describe(`Get all cookies`, () => { 207 | it(`should get all cookies`, () => { 208 | cookies.setAll(cookieList) 209 | 210 | for (let cookieName in cookies.getAll()) { 211 | const cookieExists = cookieList.some( 212 | cookie => cookie.name === cookieName 213 | ) 214 | expect(cookieExists).to.be.true 215 | } 216 | expect(cookies.get('random')).to.be.undefined 217 | }) 218 | 219 | it(`should parse the cookies`, () => { 220 | cookies.setAll([ 221 | { name: `${rand}1`, value: { el: 'val' } }, 222 | { name: `${rand}2`, value: { el: 'val' } }, 223 | { name: `${rand}3`, value: { el: 'val' } }, 224 | { name: `${rand}4`, value: { el: 'val' } }, 225 | { name: `${rand}5`, value: { el: 'val' } }, 226 | { name: `${rand}6`, value: { el: 'val' } }, 227 | ]) 228 | 229 | for (let [cookieName, cookieContent] of Object.entries( 230 | cookies.getAll() 231 | )) { 232 | expect(cookieContent).to.be.a('object') 233 | } 234 | }) 235 | 236 | it(`should parse the cookies but not the string`, () => { 237 | cookies.setAll([ 238 | { name: `${rand}1`, value: { el: 'val' } }, 239 | { name: `${rand}2`, value: { el: 'val' } }, 240 | { name: `${rand}3`, value: { el: 'val' } }, 241 | { name: `${rand}4`, value: { el: 'val' } }, 242 | { name: `${rand}5`, value: { el: 'val' } }, 243 | { name: `${rand}6`, value: 'value' }, 244 | ]) 245 | 246 | let i = 0 247 | for (let [cookieName, cookieContent] of Object.entries( 248 | cookies.getAll() 249 | )) { 250 | expect(cookieContent).to.be.a(i !== 5 ? 'object' : 'string') 251 | i++ 252 | } 253 | }) 254 | 255 | it(`should not parse the cookies objects`, () => { 256 | cookies.setAll([ 257 | { name: `${rand}1`, value: { el: 'val' } }, 258 | { name: `${rand}2`, value: { el: 'val' } }, 259 | { name: `${rand}3`, value: { el: 'val' } }, 260 | { name: `${rand}4`, value: { el: 'val' } }, 261 | { name: `${rand}5`, value: { el: 'val' } }, 262 | ]) 263 | 264 | for (let [cookieName, cookieContent] of Object.entries( 265 | cookies.getAll({ parseJson: false }) 266 | )) { 267 | expect(cookieContent).to.be.a('string') 268 | } 269 | }) 270 | }) 271 | 272 | describe(`Remove cookie`, () => { 273 | it(`should remove a cookie`, () => { 274 | const cookieName = `test-cookie` 275 | const cookieContent = `this is a test cookie` 276 | cookies.set(cookieName, cookieContent, { 277 | path: '/', 278 | maxAge: oneWeek, 279 | }) 280 | 281 | cookies.remove(cookieName) 282 | expect(cookies.get(cookieName)).to.be.undefined 283 | }) 284 | 285 | it(`should remove a cookie even if it is a falsy value`, () => { 286 | const cookieName = `test-cookie` 287 | const cookieContent = 0 288 | cookies.set(cookieName, cookieContent, { 289 | path: '/', 290 | maxAge: oneWeek, 291 | }) 292 | 293 | cookies.remove(cookieName) 294 | expect(cookies.get(cookieName)).to.be.undefined 295 | }) 296 | }) 297 | 298 | describe(`Remove all cookies`, () => { 299 | it(`should remove all cookies`, () => { 300 | cookies.setAll(cookieList) 301 | cookies.removeAll() 302 | for (let cookieName in cookies.getAll()) { 303 | const cookieExists = cookieList.some( 304 | cookie => cookie.name === cookieName 305 | ) 306 | expect(cookieExists).to.be.false 307 | } 308 | }) 309 | }) 310 | 311 | describe(`Cookie library`, () => { 312 | it(`should be able to access Cookie library directly`, () => { 313 | const cookieName = `test-cookie` 314 | const cookieContent = `this is a test cookie` 315 | const cookie = cookies.nodeCookie.parse(`${cookieName}=${cookieContent}`) 316 | expect(cookie[cookieName]).to.have.string(cookieContent) 317 | }) 318 | 319 | it(`should not find a cookie from the Cookie library`, () => { 320 | const cookieName = `test-cookie` 321 | const cookieContent = `this is a test cookie` 322 | const cookie = cookies.nodeCookie.parse(`${cookieName}=${cookieContent}`) 323 | expect(cookie[cookieName]).to.not.have.string(cookieContent + 1) 324 | }) 325 | }) 326 | }) 327 | -------------------------------------------------------------------------------- /packages/cookie-universal/test/index.server.spec.js: -------------------------------------------------------------------------------- 1 | /* eslint no-unused-expressions: "off" */ 2 | /* eslint handle-callback-err: "off" */ 3 | 4 | const chai = require('chai') 5 | const expect = chai.expect 6 | const NodeCookie = require('cookie') 7 | const Cookie = require('../index') 8 | const dateFns = require('date-fns') 9 | chai.use(require('chai-http')) 10 | 11 | const appBuilder = routes => { 12 | const express = require('express') 13 | const app = express() 14 | const port = 8000 15 | 16 | routes.forEach(route => { 17 | app.get(route.path || '/', (req, res) => route.cb(req, res)) 18 | }) 19 | 20 | return app.listen(port) 21 | } 22 | 23 | const getCookies = res => { 24 | const cookieArr = res.headers['set-cookie'] 25 | if (Array.isArray(cookieArr)) { 26 | return cookieArr.map(cookie => NodeCookie.parse(cookie)) 27 | } else { 28 | return false 29 | } 30 | } 31 | 32 | const getCookieValue = (cookies, i) => { 33 | const filterKey = Object.keys(cookies[i])[0] 34 | return cookies[i][filterKey] 35 | } 36 | 37 | let server, agent, rand, cookieList 38 | let oneWeek = 60 * 60 * 24 * 7 39 | const cookieName = `test-cookie` 40 | const cookieContent = `thisIsATestCookie` 41 | 42 | const buildAll = routes => { 43 | server = appBuilder(routes) 44 | agent = chai.request.agent(server) 45 | } 46 | 47 | describe(`Server`, () => { 48 | beforeEach(() => { 49 | rand = Math.random() 50 | cookieList = [ 51 | { name: `${rand}1`, value: 'value1' }, 52 | { name: `${rand}2`, value: 'value2' }, 53 | { name: `${rand}3`, value: 'value3' }, 54 | { name: `${rand}4`, value: 'value4' }, 55 | { name: `${rand}5`, value: 'value5' }, 56 | { name: `${rand}6`, value: 'value6' }, 57 | ] 58 | }) 59 | afterEach(() => { 60 | if (server) server.close() 61 | }) 62 | 63 | describe(`Set cookie`, () => { 64 | it(`should set a cookie when no options are passed`, done => { 65 | buildAll([ 66 | { 67 | cb(req, res) { 68 | let cookies = Cookie(req, res) 69 | cookies.set(cookieName, cookieContent) 70 | res.end() 71 | }, 72 | }, 73 | ]) 74 | 75 | agent.get('/').end((err, res) => { 76 | expect(res).to.have.cookie(cookieName, cookieContent) 77 | done() 78 | }) 79 | }) 80 | 81 | it(`should set a cookie with positive maxAge`, done => { 82 | buildAll([ 83 | { 84 | cb(req, res) { 85 | let cookies = Cookie(req, res) 86 | cookies.set(cookieName, cookieContent, { 87 | path: '/', 88 | maxAge: oneWeek, 89 | }) 90 | res.end() 91 | }, 92 | }, 93 | ]) 94 | 95 | agent.get('/').end((err, res) => { 96 | const cookie = getCookies(res)[0] 97 | expect(res).to.have.cookie(cookieName) 98 | expect(Number(cookie['Max-Age']) > -1).to.be.true 99 | done() 100 | }) 101 | }) 102 | 103 | it(`should not set a cookie with negative maxAge`, done => { 104 | buildAll([ 105 | { 106 | cb(req, res) { 107 | let cookies = Cookie(req, res) 108 | cookies.set(cookieName, cookieContent, { 109 | path: '/', 110 | maxAge: -1, 111 | }) 112 | res.end() 113 | }, 114 | }, 115 | ]) 116 | 117 | agent.get('/').end((err, res) => { 118 | // the cookie is available here but the 119 | // browser will not actually set it 120 | // if it is negative 121 | const cookie = getCookies(res)[0] 122 | expect(Number(cookie['Max-Age']) === -1).to.be.true 123 | done() 124 | }) 125 | }) 126 | 127 | it(`should set a cookie with positive expires`, done => { 128 | buildAll([ 129 | { 130 | cb(req, res) { 131 | let cookies = Cookie(req, res) 132 | cookies.set(cookieName, cookieContent, { 133 | path: '/', 134 | expires: dateFns.addWeeks(new Date(), 1), 135 | }) 136 | res.end() 137 | }, 138 | }, 139 | ]) 140 | 141 | agent.get('/').end((err, res) => { 142 | const cookie = getCookies(res)[0] 143 | expect(res).to.have.cookie(cookieName) 144 | expect(dateFns.isFuture(cookie['Expires'])).to.be.true 145 | done() 146 | }) 147 | }) 148 | 149 | it(`should not set a cookie with negative expires`, done => { 150 | buildAll([ 151 | { 152 | cb(req, res) { 153 | let cookies = Cookie(req, res) 154 | cookies.set(cookieName, cookieContent, { 155 | path: '/', 156 | expires: dateFns.subSeconds(new Date(), 10), 157 | }) 158 | res.end() 159 | }, 160 | }, 161 | ]) 162 | 163 | agent.get('/').end((err, res) => { 164 | const cookie = getCookies(res)[0] 165 | // the cookie is available here but the 166 | // browser will not actually set it 167 | // if the date is negative 168 | expect(dateFns.isPast(cookie['Expires'])).to.be.true 169 | done() 170 | }) 171 | }) 172 | }) 173 | 174 | describe(`Set all cookies`, done => { 175 | it(`should set multiple cookies`, done => { 176 | buildAll([ 177 | { 178 | cb(req, res) { 179 | let cookies = Cookie(req, res) 180 | cookies.setAll(cookieList) 181 | res.end() 182 | }, 183 | }, 184 | ]) 185 | 186 | agent.get('/').end((err, res) => { 187 | let cookies = getCookies(res) 188 | cookieList.forEach((cookie, i) => { 189 | const filterValue = getCookieValue(cookies, i) 190 | expect(filterValue).to.have.string(cookie.value) 191 | expect(filterValue).to.not.have.string(cookie.value + 1) 192 | }) 193 | done() 194 | }) 195 | }) 196 | }) 197 | 198 | describe(`Get cookie`, () => { 199 | it(`should get a cookie with same name`, done => { 200 | buildAll([ 201 | { 202 | cb(req, res) { 203 | let cookies = Cookie(req, res) 204 | cookies.set(cookieName, cookieContent) 205 | res.end(cookies.get(cookieName, { fromRes: true })) 206 | }, 207 | }, 208 | ]) 209 | 210 | agent.get('/').end((err, res) => { 211 | expect(res.text).to.have.string(cookieContent) 212 | done() 213 | }) 214 | }) 215 | 216 | it(`should not get a cookie with different name`, done => { 217 | buildAll([ 218 | { 219 | cb(req, res) { 220 | let cookies = Cookie(req, res) 221 | cookies.set(cookieName, cookieContent) 222 | res.end(cookies.get(cookieName, { fromRes: true })) 223 | }, 224 | }, 225 | ]) 226 | 227 | agent.get('/').end((err, res) => { 228 | expect(res.text).to.not.have.string(cookieContent + 1) 229 | done() 230 | }) 231 | }) 232 | 233 | it(`should not get a cookie with different path`, done => { 234 | buildAll([ 235 | { 236 | cb(req, res) { 237 | let cookies = Cookie(req, res) 238 | cookies.set(cookieName, cookieContent, { 239 | path: '/hello', 240 | }) 241 | res.end(cookies.get(cookieName, { fromRes: true })) 242 | }, 243 | }, 244 | ]) 245 | 246 | agent.get('/').end((err, res) => { 247 | let cookies = getCookies(res)[0] 248 | expect(cookies['Path']).to.not.equal('/') 249 | done() 250 | }) 251 | }) 252 | }) 253 | 254 | describe(`Get all cookies`, done => { 255 | it(`should get all cookies`, done => { 256 | buildAll([ 257 | { 258 | cb(req, res) { 259 | let cookies = Cookie(req, res) 260 | cookies.setAll(cookieList) 261 | res.end() 262 | }, 263 | }, 264 | ]) 265 | 266 | agent.get('/').end((err, res) => { 267 | let cookies = getCookies(res) 268 | cookieList.forEach((cookie, i) => { 269 | const filterValue = getCookieValue(cookies, i) 270 | expect(filterValue).to.have.string(cookie.value) 271 | expect(filterValue).to.not.have.string(cookie.value + 1) 272 | }) 273 | done() 274 | }) 275 | }) 276 | }) 277 | 278 | describe(`Remove cookie`, () => { 279 | it(`should remove a cookie`, done => { 280 | buildAll([ 281 | { 282 | cb(req, res) { 283 | let cookies = Cookie(req, res) 284 | cookies.set(cookieName, cookieContent) 285 | res.end() 286 | }, 287 | }, 288 | { 289 | path: '/get', 290 | cb(req, res) { 291 | let cookies = Cookie(req, res) 292 | cookies.remove(cookieName) 293 | res.end() 294 | }, 295 | }, 296 | ]) 297 | 298 | agent.get('/').then(res => { 299 | expect(res).to.have.cookie(cookieName) 300 | return agent.get('/get').then(res => { 301 | let cookies = getCookies(res)[0] 302 | // the cookie is available here but the 303 | // browser will not actually set it 304 | // if the date is negative 305 | expect(dateFns.isPast(cookies['Expires'])).to.be.true 306 | done() 307 | }) 308 | }) 309 | }) 310 | 311 | it(`should remove a cookie removed in the same response`, done => { 312 | buildAll([ 313 | { 314 | cb(req, res) { 315 | let cookies = Cookie(req, res) 316 | cookies.set(cookieName, cookieContent) 317 | cookies.remove(cookieName) 318 | res.end() 319 | }, 320 | }, 321 | ]) 322 | 323 | agent.get('/').then(res => { 324 | let cookies = getCookies(res)[0] 325 | expect(res).not.to.have.cookie(cookieName) 326 | done() 327 | }) 328 | }) 329 | 330 | it(`should remove a cookie even if it is a falsy value`, done => { 331 | buildAll([ 332 | { 333 | cb(req, res) { 334 | let cookies = Cookie(req, res) 335 | cookies.set(cookieName, 0) 336 | res.end() 337 | }, 338 | }, 339 | { 340 | path: '/get', 341 | cb(req, res) { 342 | let cookies = Cookie(req, res) 343 | cookies.remove(cookieName) 344 | res.end() 345 | }, 346 | }, 347 | ]) 348 | 349 | agent.get('/').then(res => { 350 | expect(res).to.have.cookie(cookieName) 351 | return agent.get('/get').then(res => { 352 | let cookies = getCookies(res)[0] 353 | expect(dateFns.isPast(cookies['Expires'])).to.be.true 354 | done() 355 | }) 356 | }) 357 | }) 358 | }) 359 | 360 | describe(`Remove all cookies`, () => { 361 | it(`should remove all cookies`, done => { 362 | buildAll([ 363 | { 364 | cb(req, res) { 365 | let cookies = Cookie(req, res) 366 | cookies.setAll(cookieList) 367 | res.end() 368 | }, 369 | }, 370 | { 371 | path: '/get', 372 | cb(req, res) { 373 | let cookies = Cookie(req, res) 374 | cookies.removeAll() 375 | res.end() 376 | }, 377 | }, 378 | ]) 379 | 380 | agent.get('/').then(res => { 381 | let cookies = getCookies(res) 382 | cookieList.forEach((cookie, i) => { 383 | const filterValue = getCookieValue(cookies, i) 384 | expect(filterValue).to.have.string(cookie.value) 385 | }) 386 | return agent.get('/get').then(res => { 387 | let cookies = getCookies(res) 388 | // the cookies are available here but the 389 | // browser will not actually set them 390 | // if the date is negative 391 | cookieList.forEach((cookie, i) => { 392 | const filterExpires = cookies[i].Expires 393 | expect(dateFns.isPast(filterExpires)).to.be.true 394 | }) 395 | done() 396 | }) 397 | }) 398 | }) 399 | }) 400 | }) 401 | -------------------------------------------------------------------------------- /packages/cookie-universal/types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { CookieParseOptions, CookieSerializeOptions } from 'cookie' 2 | 3 | type CookieValue = any 4 | 5 | interface ICookieGetOpts { 6 | fromRes?: boolean 7 | parseJSON?: boolean 8 | } 9 | 10 | interface ICookieSetOpts { 11 | name: string 12 | value: CookieValue 13 | opts?: CookieSerializeOptions 14 | } 15 | 16 | interface NodeCookie { 17 | parse(str: string, options?: CookieParseOptions): Record 18 | serialize(name: string, value: string, options?: CookieSerializeOptions): string 19 | } 20 | 21 | export interface ICookie { 22 | get: (name: string, opts?: ICookieGetOpts) => any 23 | getAll: (opts?: ICookieGetOpts) => object 24 | set: ( 25 | name: string, 26 | value: CookieValue, 27 | opts?: CookieSerializeOptions 28 | ) => void 29 | setAll: (cookieArray: ICookieSetOpts[]) => void 30 | remove: (name: string, opts?: CookieSerializeOptions) => void 31 | removeAll: () => void 32 | nodeCookie: NodeCookie 33 | } 34 | 35 | export default function (req?: object, res?: object, opts?: boolean): ICookie 36 | -------------------------------------------------------------------------------- /packages/cookie-universal/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path') 2 | const CleanWebpackPlugin = require('clean-webpack-plugin') 3 | const UglifyJSPlugin = require('uglifyjs-webpack-plugin') 4 | 5 | const createConfig = (target, name) => { 6 | return { 7 | entry: './index.js', 8 | output: { 9 | path: path.resolve(__dirname, 'dist'), 10 | filename: `${name}.js`, 11 | libraryTarget: target, 12 | library: 'Cookie' 13 | }, 14 | module: { 15 | rules: [ 16 | { 17 | test: [/\.js$/], 18 | exclude: [/node_modules/], 19 | loader: 'babel-loader', 20 | options: { 21 | presets: [['env']] 22 | } 23 | } 24 | ] 25 | }, 26 | plugins: [ 27 | new CleanWebpackPlugin([ 'dist' ]), 28 | new UglifyJSPlugin() 29 | ] 30 | } 31 | } 32 | 33 | module.exports = [ 34 | createConfig('var', 'cookie-universal'), 35 | createConfig('commonjs2', 'cookie-universal-common') 36 | ] 37 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # [cookie-universal](packages/cookie-universal) 2 | [![npm (scoped with tag)](https://img.shields.io/npm/v/cookie-universal/latest.svg?style=flat-square)](https://npmjs.com/package/cookie-universal) 3 | 4 | You can use `cookie-universal` to set, get and remove cookies in the **browser**, **node**, **connect** and **express** apps. 5 | `cookie-universal` parse cookies with the popular [cookie node module](https://github.com/jshttp/cookie). 6 | 7 | 8 | # [cookie-universal-nuxt](packages/cookie-universal-nuxt) 9 | [![npm (scoped with tag)](https://img.shields.io/npm/v/cookie-universal-nuxt/latest.svg?style=flat-square)](https://npmjs.com/package/cookie-universal-nuxt) 10 | 11 | You can use `cookie-universal-nuxt` to set, get and remove cookies in both **client** and **server** side nuxt apps. 12 | `cookie-universal-nuxt` parse cookies with the popular [cookie node module](https://github.com/jshttp/cookie). 13 | 14 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@kwsites/file-exists@^1.1.1": 6 | version "1.1.1" 7 | resolved "https://registry.yarnpkg.com/@kwsites/file-exists/-/file-exists-1.1.1.tgz#ad1efcac13e1987d8dbaf235ef3be5b0d96faa99" 8 | integrity sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw== 9 | dependencies: 10 | debug "^4.1.1" 11 | 12 | "@kwsites/promise-deferred@^1.1.1": 13 | version "1.1.1" 14 | resolved "https://registry.yarnpkg.com/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz#8ace5259254426ccef57f3175bc64ed7095ed919" 15 | integrity sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw== 16 | 17 | JSONStream@^1.0.4: 18 | version "1.3.2" 19 | resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea" 20 | dependencies: 21 | jsonparse "^1.2.0" 22 | through ">=2.2.7 <3" 23 | 24 | add-stream@^1.0.0: 25 | version "1.0.0" 26 | resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" 27 | 28 | ansi-escapes@^3.0.0: 29 | version "3.0.0" 30 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92" 31 | 32 | ansi-regex@^2.0.0: 33 | version "2.1.1" 34 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 35 | 36 | ansi-regex@^3.0.0: 37 | version "3.0.0" 38 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 39 | 40 | ansi-styles@^3.1.0: 41 | version "3.2.0" 42 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" 43 | dependencies: 44 | color-convert "^1.9.0" 45 | 46 | aproba@^1.0.3: 47 | version "1.2.0" 48 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" 49 | 50 | are-we-there-yet@~1.1.2: 51 | version "1.1.4" 52 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" 53 | dependencies: 54 | delegates "^1.0.0" 55 | readable-stream "^2.0.6" 56 | 57 | array-find-index@^1.0.1: 58 | version "1.0.2" 59 | resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" 60 | 61 | array-ify@^1.0.0: 62 | version "1.0.0" 63 | resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" 64 | 65 | array-union@^1.0.1: 66 | version "1.0.2" 67 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 68 | dependencies: 69 | array-uniq "^1.0.1" 70 | 71 | array-uniq@^1.0.1: 72 | version "1.0.3" 73 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 74 | 75 | async@^1.5.0: 76 | version "1.5.2" 77 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 78 | 79 | balanced-match@^1.0.0: 80 | version "1.0.0" 81 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 82 | 83 | brace-expansion@^1.1.7: 84 | version "1.1.8" 85 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" 86 | dependencies: 87 | balanced-match "^1.0.0" 88 | concat-map "0.0.1" 89 | 90 | builtin-modules@^1.0.0: 91 | version "1.1.1" 92 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 93 | 94 | byline@^5.0.0: 95 | version "5.0.0" 96 | resolved "https://registry.yarnpkg.com/byline/-/byline-5.0.0.tgz#741c5216468eadc457b03410118ad77de8c1ddb1" 97 | 98 | camelcase-keys@^2.0.0: 99 | version "2.1.0" 100 | resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" 101 | dependencies: 102 | camelcase "^2.0.0" 103 | map-obj "^1.0.0" 104 | 105 | camelcase@^2.0.0: 106 | version "2.1.1" 107 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" 108 | 109 | camelcase@^4.1.0: 110 | version "4.1.0" 111 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" 112 | 113 | capture-stack-trace@^1.0.0: 114 | version "1.0.0" 115 | resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" 116 | 117 | chalk@^2.0.0, chalk@^2.1.0: 118 | version "2.3.0" 119 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba" 120 | dependencies: 121 | ansi-styles "^3.1.0" 122 | escape-string-regexp "^1.0.5" 123 | supports-color "^4.0.0" 124 | 125 | chardet@^0.4.0: 126 | version "0.4.2" 127 | resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" 128 | 129 | ci-info@^1.0.0: 130 | version "1.1.2" 131 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.2.tgz#03561259db48d0474c8bdc90f5b47b068b6bbfb4" 132 | 133 | cli-cursor@^2.1.0: 134 | version "2.1.0" 135 | resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" 136 | dependencies: 137 | restore-cursor "^2.0.0" 138 | 139 | cli-width@^2.0.0: 140 | version "2.2.0" 141 | resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" 142 | 143 | cliui@^3.2.0: 144 | version "3.2.0" 145 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" 146 | dependencies: 147 | string-width "^1.0.1" 148 | strip-ansi "^3.0.1" 149 | wrap-ansi "^2.0.0" 150 | 151 | clone@^1.0.2: 152 | version "1.0.3" 153 | resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.3.tgz#298d7e2231660f40c003c2ed3140decf3f53085f" 154 | 155 | cmd-shim@^2.0.2: 156 | version "2.0.2" 157 | resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-2.0.2.tgz#6fcbda99483a8fd15d7d30a196ca69d688a2efdb" 158 | dependencies: 159 | graceful-fs "^4.1.2" 160 | mkdirp "~0.5.0" 161 | 162 | code-point-at@^1.0.0: 163 | version "1.1.0" 164 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 165 | 166 | color-convert@^1.9.0: 167 | version "1.9.1" 168 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" 169 | dependencies: 170 | color-name "^1.1.1" 171 | 172 | color-name@^1.1.1: 173 | version "1.1.3" 174 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 175 | 176 | columnify@^1.5.4: 177 | version "1.5.4" 178 | resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb" 179 | dependencies: 180 | strip-ansi "^3.0.0" 181 | wcwidth "^1.0.0" 182 | 183 | command-join@^2.0.0: 184 | version "2.0.0" 185 | resolved "https://registry.yarnpkg.com/command-join/-/command-join-2.0.0.tgz#52e8b984f4872d952ff1bdc8b98397d27c7144cf" 186 | 187 | compare-func@^1.3.1: 188 | version "1.3.2" 189 | resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.2.tgz#99dd0ba457e1f9bc722b12c08ec33eeab31fa648" 190 | dependencies: 191 | array-ify "^1.0.0" 192 | dot-prop "^3.0.0" 193 | 194 | concat-map@0.0.1: 195 | version "0.0.1" 196 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 197 | 198 | concat-stream@^1.4.10: 199 | version "1.6.0" 200 | resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" 201 | dependencies: 202 | inherits "^2.0.3" 203 | readable-stream "^2.2.2" 204 | typedarray "^0.0.6" 205 | 206 | console-control-strings@^1.0.0, console-control-strings@~1.1.0: 207 | version "1.1.0" 208 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" 209 | 210 | conventional-changelog-angular@^1.6.2: 211 | version "1.6.2" 212 | resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-1.6.2.tgz#0a811313de46326e5e4e11dac281d61cfe1f00c4" 213 | dependencies: 214 | compare-func "^1.3.1" 215 | q "^1.4.1" 216 | 217 | conventional-changelog-atom@^0.2.0: 218 | version "0.2.0" 219 | resolved "https://registry.yarnpkg.com/conventional-changelog-atom/-/conventional-changelog-atom-0.2.0.tgz#72f18e5c74e3d8807411252fe013818ddffa7157" 220 | dependencies: 221 | q "^1.4.1" 222 | 223 | conventional-changelog-cli@^1.3.2: 224 | version "1.3.9" 225 | resolved "https://registry.yarnpkg.com/conventional-changelog-cli/-/conventional-changelog-cli-1.3.9.tgz#926aed3af40c76682f6e192f8a573f46dcd3894f" 226 | dependencies: 227 | add-stream "^1.0.0" 228 | conventional-changelog "^1.1.11" 229 | lodash "^4.1.0" 230 | meow "^3.7.0" 231 | tempfile "^1.1.1" 232 | 233 | conventional-changelog-codemirror@^0.3.0: 234 | version "0.3.0" 235 | resolved "https://registry.yarnpkg.com/conventional-changelog-codemirror/-/conventional-changelog-codemirror-0.3.0.tgz#4dd8abb9f521a638cab49f683496c26b8a5c6d31" 236 | dependencies: 237 | q "^1.4.1" 238 | 239 | conventional-changelog-core@^2.0.1: 240 | version "2.0.1" 241 | resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-2.0.1.tgz#7573de89bde46e0ccf395b4b85a0869aa5388e8d" 242 | dependencies: 243 | conventional-changelog-writer "^3.0.0" 244 | conventional-commits-parser "^2.1.1" 245 | dateformat "^1.0.12" 246 | get-pkg-repo "^1.0.0" 247 | git-raw-commits "^1.3.0" 248 | git-remote-origin-url "^2.0.0" 249 | git-semver-tags "^1.3.0" 250 | lodash "^4.0.0" 251 | normalize-package-data "^2.3.5" 252 | q "^1.4.1" 253 | read-pkg "^1.1.0" 254 | read-pkg-up "^1.0.1" 255 | through2 "^2.0.0" 256 | 257 | conventional-changelog-ember@^0.3.2: 258 | version "0.3.2" 259 | resolved "https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-0.3.2.tgz#d3dd89ffe96832384a5d3b60dc63bf5e0142a944" 260 | dependencies: 261 | q "^1.4.1" 262 | 263 | conventional-changelog-eslint@^1.0.0: 264 | version "1.0.0" 265 | resolved "https://registry.yarnpkg.com/conventional-changelog-eslint/-/conventional-changelog-eslint-1.0.0.tgz#c63cd9d6f09d4e204530ae7369d7a20a167bc6bc" 266 | dependencies: 267 | q "^1.4.1" 268 | 269 | conventional-changelog-express@^0.3.0: 270 | version "0.3.0" 271 | resolved "https://registry.yarnpkg.com/conventional-changelog-express/-/conventional-changelog-express-0.3.0.tgz#5ed006f48682d8615ee0ab5f53cacb26fbd3e1c8" 272 | dependencies: 273 | q "^1.4.1" 274 | 275 | conventional-changelog-jquery@^0.1.0: 276 | version "0.1.0" 277 | resolved "https://registry.yarnpkg.com/conventional-changelog-jquery/-/conventional-changelog-jquery-0.1.0.tgz#0208397162e3846986e71273b6c79c5b5f80f510" 278 | dependencies: 279 | q "^1.4.1" 280 | 281 | conventional-changelog-jscs@^0.1.0: 282 | version "0.1.0" 283 | resolved "https://registry.yarnpkg.com/conventional-changelog-jscs/-/conventional-changelog-jscs-0.1.0.tgz#0479eb443cc7d72c58bf0bcf0ef1d444a92f0e5c" 284 | dependencies: 285 | q "^1.4.1" 286 | 287 | conventional-changelog-jshint@^0.3.0: 288 | version "0.3.0" 289 | resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-0.3.0.tgz#0393fd468113baf73cba911d17c5826423366a28" 290 | dependencies: 291 | compare-func "^1.3.1" 292 | q "^1.4.1" 293 | 294 | conventional-changelog-writer@^3.0.0: 295 | version "3.0.0" 296 | resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-3.0.0.tgz#e106154ed94341e387d717b61be2181ff53254cc" 297 | dependencies: 298 | compare-func "^1.3.1" 299 | conventional-commits-filter "^1.1.1" 300 | dateformat "^1.0.11" 301 | handlebars "^4.0.2" 302 | json-stringify-safe "^5.0.1" 303 | lodash "^4.0.0" 304 | meow "^3.3.0" 305 | semver "^5.0.1" 306 | split "^1.0.0" 307 | through2 "^2.0.0" 308 | 309 | conventional-changelog@^1.1.11: 310 | version "1.1.11" 311 | resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-1.1.11.tgz#3c880f5e5ebf483642a19d9bd5c9562f0d1257b8" 312 | dependencies: 313 | conventional-changelog-angular "^1.6.2" 314 | conventional-changelog-atom "^0.2.0" 315 | conventional-changelog-codemirror "^0.3.0" 316 | conventional-changelog-core "^2.0.1" 317 | conventional-changelog-ember "^0.3.2" 318 | conventional-changelog-eslint "^1.0.0" 319 | conventional-changelog-express "^0.3.0" 320 | conventional-changelog-jquery "^0.1.0" 321 | conventional-changelog-jscs "^0.1.0" 322 | conventional-changelog-jshint "^0.3.0" 323 | 324 | conventional-commits-filter@^1.1.1: 325 | version "1.1.1" 326 | resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-1.1.1.tgz#72172319c0c88328a015b30686b55527b3a5e54a" 327 | dependencies: 328 | is-subset "^0.1.1" 329 | modify-values "^1.0.0" 330 | 331 | conventional-commits-parser@^2.1.1: 332 | version "2.1.1" 333 | resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-2.1.1.tgz#1525a01bdad3349297b4210396e283d8a8ffd044" 334 | dependencies: 335 | JSONStream "^1.0.4" 336 | is-text-path "^1.0.0" 337 | lodash "^4.2.1" 338 | meow "^3.3.0" 339 | split2 "^2.0.0" 340 | through2 "^2.0.0" 341 | trim-off-newlines "^1.0.0" 342 | 343 | conventional-recommended-bump@^1.0.1: 344 | version "1.2.1" 345 | resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-1.2.1.tgz#1b7137efb5091f99fe009e2fe9ddb7cc490e9375" 346 | dependencies: 347 | concat-stream "^1.4.10" 348 | conventional-commits-filter "^1.1.1" 349 | conventional-commits-parser "^2.1.1" 350 | git-raw-commits "^1.3.0" 351 | git-semver-tags "^1.3.0" 352 | meow "^3.3.0" 353 | object-assign "^4.0.1" 354 | 355 | core-util-is@~1.0.0: 356 | version "1.0.2" 357 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 358 | 359 | create-error-class@^3.0.0: 360 | version "3.0.2" 361 | resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" 362 | dependencies: 363 | capture-stack-trace "^1.0.0" 364 | 365 | cross-spawn@^5.0.1: 366 | version "5.1.0" 367 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 368 | dependencies: 369 | lru-cache "^4.0.1" 370 | shebang-command "^1.2.0" 371 | which "^1.2.9" 372 | 373 | currently-unhandled@^0.4.1: 374 | version "0.4.1" 375 | resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" 376 | dependencies: 377 | array-find-index "^1.0.1" 378 | 379 | dargs@^4.0.1: 380 | version "4.1.0" 381 | resolved "https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17" 382 | dependencies: 383 | number-is-nan "^1.0.0" 384 | 385 | dateformat@^1.0.11, dateformat@^1.0.12: 386 | version "1.0.12" 387 | resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.12.tgz#9f124b67594c937ff706932e4a642cca8dbbfee9" 388 | dependencies: 389 | get-stdin "^4.0.1" 390 | meow "^3.3.0" 391 | 392 | debug@^4.1.1, debug@^4.3.3: 393 | version "4.3.4" 394 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" 395 | integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== 396 | dependencies: 397 | ms "2.1.2" 398 | 399 | decamelize@^1.1.1, decamelize@^1.1.2: 400 | version "1.2.0" 401 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 402 | 403 | dedent@^0.7.0: 404 | version "0.7.0" 405 | resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" 406 | 407 | deep-extend@~0.4.0: 408 | version "0.4.2" 409 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" 410 | 411 | defaults@^1.0.3: 412 | version "1.0.3" 413 | resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" 414 | dependencies: 415 | clone "^1.0.2" 416 | 417 | delegates@^1.0.0: 418 | version "1.0.0" 419 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" 420 | 421 | detect-indent@^5.0.0: 422 | version "5.0.0" 423 | resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" 424 | 425 | dot-prop@^3.0.0: 426 | version "3.0.0" 427 | resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177" 428 | dependencies: 429 | is-obj "^1.0.0" 430 | 431 | duplexer3@^0.1.4: 432 | version "0.1.4" 433 | resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" 434 | 435 | duplexer@^0.1.1: 436 | version "0.1.1" 437 | resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" 438 | 439 | error-ex@^1.2.0, error-ex@^1.3.1: 440 | version "1.3.1" 441 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" 442 | dependencies: 443 | is-arrayish "^0.2.1" 444 | 445 | escape-string-regexp@^1.0.5: 446 | version "1.0.5" 447 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 448 | 449 | execa@^0.7.0: 450 | version "0.7.0" 451 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" 452 | dependencies: 453 | cross-spawn "^5.0.1" 454 | get-stream "^3.0.0" 455 | is-stream "^1.1.0" 456 | npm-run-path "^2.0.0" 457 | p-finally "^1.0.0" 458 | signal-exit "^3.0.0" 459 | strip-eof "^1.0.0" 460 | 461 | execa@^0.8.0: 462 | version "0.8.0" 463 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" 464 | dependencies: 465 | cross-spawn "^5.0.1" 466 | get-stream "^3.0.0" 467 | is-stream "^1.1.0" 468 | npm-run-path "^2.0.0" 469 | p-finally "^1.0.0" 470 | signal-exit "^3.0.0" 471 | strip-eof "^1.0.0" 472 | 473 | external-editor@^2.0.4: 474 | version "2.1.0" 475 | resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48" 476 | dependencies: 477 | chardet "^0.4.0" 478 | iconv-lite "^0.4.17" 479 | tmp "^0.0.33" 480 | 481 | figures@^2.0.0: 482 | version "2.0.0" 483 | resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" 484 | dependencies: 485 | escape-string-regexp "^1.0.5" 486 | 487 | find-up@^1.0.0: 488 | version "1.1.2" 489 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" 490 | dependencies: 491 | path-exists "^2.0.0" 492 | pinkie-promise "^2.0.0" 493 | 494 | find-up@^2.0.0, find-up@^2.1.0: 495 | version "2.1.0" 496 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 497 | dependencies: 498 | locate-path "^2.0.0" 499 | 500 | fs-extra@^4.0.1: 501 | version "4.0.3" 502 | resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94" 503 | dependencies: 504 | graceful-fs "^4.1.2" 505 | jsonfile "^4.0.0" 506 | universalify "^0.1.0" 507 | 508 | fs.realpath@^1.0.0: 509 | version "1.0.0" 510 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 511 | 512 | gauge@~2.7.3: 513 | version "2.7.4" 514 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" 515 | dependencies: 516 | aproba "^1.0.3" 517 | console-control-strings "^1.0.0" 518 | has-unicode "^2.0.0" 519 | object-assign "^4.1.0" 520 | signal-exit "^3.0.0" 521 | string-width "^1.0.1" 522 | strip-ansi "^3.0.1" 523 | wide-align "^1.1.0" 524 | 525 | get-caller-file@^1.0.1: 526 | version "1.0.2" 527 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" 528 | 529 | get-pkg-repo@^1.0.0: 530 | version "1.4.0" 531 | resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz#c73b489c06d80cc5536c2c853f9e05232056972d" 532 | dependencies: 533 | hosted-git-info "^2.1.4" 534 | meow "^3.3.0" 535 | normalize-package-data "^2.3.0" 536 | parse-github-repo-url "^1.3.0" 537 | through2 "^2.0.0" 538 | 539 | get-port@^3.2.0: 540 | version "3.2.0" 541 | resolved "https://registry.yarnpkg.com/get-port/-/get-port-3.2.0.tgz#dd7ce7de187c06c8bf353796ac71e099f0980ebc" 542 | 543 | get-stdin@^4.0.1: 544 | version "4.0.1" 545 | resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" 546 | 547 | get-stream@^3.0.0: 548 | version "3.0.0" 549 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 550 | 551 | git-raw-commits@^1.3.0: 552 | version "1.3.0" 553 | resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-1.3.0.tgz#0bc8596e90d5ffe736f7f5546bd2d12f73abaac6" 554 | dependencies: 555 | dargs "^4.0.1" 556 | lodash.template "^4.0.2" 557 | meow "^3.3.0" 558 | split2 "^2.0.0" 559 | through2 "^2.0.0" 560 | 561 | git-remote-origin-url@^2.0.0: 562 | version "2.0.0" 563 | resolved "https://registry.yarnpkg.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz#5282659dae2107145a11126112ad3216ec5fa65f" 564 | dependencies: 565 | gitconfiglocal "^1.0.0" 566 | pify "^2.3.0" 567 | 568 | git-semver-tags@^1.3.0: 569 | version "1.3.0" 570 | resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-1.3.0.tgz#b154833a6ab5c360c0ad3b1aa9b8f12ea06de919" 571 | dependencies: 572 | meow "^3.3.0" 573 | semver "^5.0.1" 574 | 575 | gitconfiglocal@^1.0.0: 576 | version "1.0.0" 577 | resolved "https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b" 578 | dependencies: 579 | ini "^1.3.2" 580 | 581 | glob-parent@^3.1.0: 582 | version "3.1.0" 583 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" 584 | dependencies: 585 | is-glob "^3.1.0" 586 | path-dirname "^1.0.0" 587 | 588 | glob@^7.0.3, glob@^7.0.5, glob@^7.1.2: 589 | version "7.1.2" 590 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" 591 | dependencies: 592 | fs.realpath "^1.0.0" 593 | inflight "^1.0.4" 594 | inherits "2" 595 | minimatch "^3.0.4" 596 | once "^1.3.0" 597 | path-is-absolute "^1.0.0" 598 | 599 | globby@^6.1.0: 600 | version "6.1.0" 601 | resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" 602 | dependencies: 603 | array-union "^1.0.1" 604 | glob "^7.0.3" 605 | object-assign "^4.0.1" 606 | pify "^2.0.0" 607 | pinkie-promise "^2.0.0" 608 | 609 | got@^6.7.1: 610 | version "6.7.1" 611 | resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" 612 | dependencies: 613 | create-error-class "^3.0.0" 614 | duplexer3 "^0.1.4" 615 | get-stream "^3.0.0" 616 | is-redirect "^1.0.0" 617 | is-retry-allowed "^1.0.0" 618 | is-stream "^1.0.0" 619 | lowercase-keys "^1.0.0" 620 | safe-buffer "^5.0.1" 621 | timed-out "^4.0.0" 622 | unzip-response "^2.0.1" 623 | url-parse-lax "^1.0.0" 624 | 625 | graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: 626 | version "4.1.11" 627 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" 628 | 629 | handlebars@^4.0.2: 630 | version "4.7.7" 631 | resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" 632 | integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== 633 | dependencies: 634 | minimist "^1.2.5" 635 | neo-async "^2.6.0" 636 | source-map "^0.6.1" 637 | wordwrap "^1.0.0" 638 | optionalDependencies: 639 | uglify-js "^3.1.4" 640 | 641 | has-flag@^2.0.0: 642 | version "2.0.0" 643 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" 644 | 645 | has-unicode@^2.0.0: 646 | version "2.0.1" 647 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" 648 | 649 | hosted-git-info@^2.1.4, hosted-git-info@^2.5.0: 650 | version "2.8.9" 651 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" 652 | integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== 653 | 654 | iconv-lite@^0.4.17: 655 | version "0.4.19" 656 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" 657 | 658 | imurmurhash@^0.1.4: 659 | version "0.1.4" 660 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 661 | 662 | indent-string@^2.1.0: 663 | version "2.1.0" 664 | resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" 665 | dependencies: 666 | repeating "^2.0.0" 667 | 668 | inflight@^1.0.4: 669 | version "1.0.6" 670 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 671 | dependencies: 672 | once "^1.3.0" 673 | wrappy "1" 674 | 675 | inherits@2, inherits@^2.0.3, inherits@~2.0.3: 676 | version "2.0.3" 677 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 678 | 679 | ini@^1.3.2, ini@~1.3.0: 680 | version "1.3.7" 681 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" 682 | integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ== 683 | 684 | inquirer@^3.2.2: 685 | version "3.3.0" 686 | resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9" 687 | dependencies: 688 | ansi-escapes "^3.0.0" 689 | chalk "^2.0.0" 690 | cli-cursor "^2.1.0" 691 | cli-width "^2.0.0" 692 | external-editor "^2.0.4" 693 | figures "^2.0.0" 694 | lodash "^4.3.0" 695 | mute-stream "0.0.7" 696 | run-async "^2.2.0" 697 | rx-lite "^4.0.8" 698 | rx-lite-aggregates "^4.0.8" 699 | string-width "^2.1.0" 700 | strip-ansi "^4.0.0" 701 | through "^2.3.6" 702 | 703 | invert-kv@^1.0.0: 704 | version "1.0.0" 705 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 706 | 707 | is-arrayish@^0.2.1: 708 | version "0.2.1" 709 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 710 | 711 | is-builtin-module@^1.0.0: 712 | version "1.0.0" 713 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 714 | dependencies: 715 | builtin-modules "^1.0.0" 716 | 717 | is-ci@^1.0.10: 718 | version "1.1.0" 719 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5" 720 | dependencies: 721 | ci-info "^1.0.0" 722 | 723 | is-extglob@^2.1.0: 724 | version "2.1.1" 725 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" 726 | 727 | is-finite@^1.0.0: 728 | version "1.0.2" 729 | resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" 730 | dependencies: 731 | number-is-nan "^1.0.0" 732 | 733 | is-fullwidth-code-point@^1.0.0: 734 | version "1.0.0" 735 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 736 | dependencies: 737 | number-is-nan "^1.0.0" 738 | 739 | is-fullwidth-code-point@^2.0.0: 740 | version "2.0.0" 741 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 742 | 743 | is-glob@^3.1.0: 744 | version "3.1.0" 745 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" 746 | dependencies: 747 | is-extglob "^2.1.0" 748 | 749 | is-obj@^1.0.0: 750 | version "1.0.1" 751 | resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" 752 | 753 | is-plain-obj@^1.0.0: 754 | version "1.1.0" 755 | resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" 756 | 757 | is-promise@^2.1.0: 758 | version "2.1.0" 759 | resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" 760 | 761 | is-redirect@^1.0.0: 762 | version "1.0.0" 763 | resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" 764 | 765 | is-retry-allowed@^1.0.0: 766 | version "1.1.0" 767 | resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" 768 | 769 | is-stream@^1.0.0, is-stream@^1.1.0: 770 | version "1.1.0" 771 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 772 | 773 | is-subset@^0.1.1: 774 | version "0.1.1" 775 | resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" 776 | 777 | is-text-path@^1.0.0: 778 | version "1.0.1" 779 | resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e" 780 | dependencies: 781 | text-extensions "^1.0.0" 782 | 783 | is-utf8@^0.2.0: 784 | version "0.2.1" 785 | resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" 786 | 787 | isarray@~1.0.0: 788 | version "1.0.0" 789 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 790 | 791 | isexe@^2.0.0: 792 | version "2.0.0" 793 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 794 | 795 | json-parse-better-errors@^1.0.1: 796 | version "1.0.1" 797 | resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz#50183cd1b2d25275de069e9e71b467ac9eab973a" 798 | 799 | json-stringify-safe@^5.0.1: 800 | version "5.0.1" 801 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 802 | 803 | jsonfile@^4.0.0: 804 | version "4.0.0" 805 | resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" 806 | optionalDependencies: 807 | graceful-fs "^4.1.6" 808 | 809 | jsonparse@^1.2.0: 810 | version "1.3.1" 811 | resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" 812 | 813 | lcid@^1.0.0: 814 | version "1.0.0" 815 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 816 | dependencies: 817 | invert-kv "^1.0.0" 818 | 819 | lerna@^2.8.0: 820 | version "2.8.0" 821 | resolved "https://registry.yarnpkg.com/lerna/-/lerna-2.8.0.tgz#309a816fca5c73ea38f9f20e314a836e99b54cf0" 822 | dependencies: 823 | async "^1.5.0" 824 | chalk "^2.1.0" 825 | cmd-shim "^2.0.2" 826 | columnify "^1.5.4" 827 | command-join "^2.0.0" 828 | conventional-changelog-cli "^1.3.2" 829 | conventional-recommended-bump "^1.0.1" 830 | dedent "^0.7.0" 831 | execa "^0.8.0" 832 | find-up "^2.1.0" 833 | fs-extra "^4.0.1" 834 | get-port "^3.2.0" 835 | glob "^7.1.2" 836 | glob-parent "^3.1.0" 837 | globby "^6.1.0" 838 | graceful-fs "^4.1.11" 839 | hosted-git-info "^2.5.0" 840 | inquirer "^3.2.2" 841 | is-ci "^1.0.10" 842 | load-json-file "^4.0.0" 843 | lodash "^4.17.4" 844 | minimatch "^3.0.4" 845 | npmlog "^4.1.2" 846 | p-finally "^1.0.0" 847 | package-json "^4.0.1" 848 | path-exists "^3.0.0" 849 | read-cmd-shim "^1.0.1" 850 | read-pkg "^3.0.0" 851 | rimraf "^2.6.1" 852 | safe-buffer "^5.1.1" 853 | semver "^5.4.1" 854 | signal-exit "^3.0.2" 855 | slash "^1.0.0" 856 | strong-log-transformer "^1.0.6" 857 | temp-write "^3.3.0" 858 | write-file-atomic "^2.3.0" 859 | write-json-file "^2.2.0" 860 | write-pkg "^3.1.0" 861 | yargs "^8.0.2" 862 | 863 | load-json-file@^1.0.0: 864 | version "1.1.0" 865 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" 866 | dependencies: 867 | graceful-fs "^4.1.2" 868 | parse-json "^2.2.0" 869 | pify "^2.0.0" 870 | pinkie-promise "^2.0.0" 871 | strip-bom "^2.0.0" 872 | 873 | load-json-file@^2.0.0: 874 | version "2.0.0" 875 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" 876 | dependencies: 877 | graceful-fs "^4.1.2" 878 | parse-json "^2.2.0" 879 | pify "^2.0.0" 880 | strip-bom "^3.0.0" 881 | 882 | load-json-file@^4.0.0: 883 | version "4.0.0" 884 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" 885 | dependencies: 886 | graceful-fs "^4.1.2" 887 | parse-json "^4.0.0" 888 | pify "^3.0.0" 889 | strip-bom "^3.0.0" 890 | 891 | locate-path@^2.0.0: 892 | version "2.0.0" 893 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 894 | dependencies: 895 | p-locate "^2.0.0" 896 | path-exists "^3.0.0" 897 | 898 | lodash._reinterpolate@^3.0.0: 899 | version "3.0.0" 900 | resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" 901 | integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= 902 | 903 | lodash.template@^4.0.2: 904 | version "4.5.0" 905 | resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" 906 | integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== 907 | dependencies: 908 | lodash._reinterpolate "^3.0.0" 909 | lodash.templatesettings "^4.0.0" 910 | 911 | lodash.templatesettings@^4.0.0: 912 | version "4.2.0" 913 | resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" 914 | integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== 915 | dependencies: 916 | lodash._reinterpolate "^3.0.0" 917 | 918 | lodash@^4.0.0, lodash@^4.1.0, lodash@^4.17.4, lodash@^4.2.1, lodash@^4.3.0: 919 | version "4.17.21" 920 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" 921 | integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== 922 | 923 | loud-rejection@^1.0.0: 924 | version "1.6.0" 925 | resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" 926 | dependencies: 927 | currently-unhandled "^0.4.1" 928 | signal-exit "^3.0.0" 929 | 930 | lowercase-keys@^1.0.0: 931 | version "1.0.0" 932 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" 933 | 934 | lru-cache@^4.0.1: 935 | version "4.1.1" 936 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" 937 | dependencies: 938 | pseudomap "^1.0.2" 939 | yallist "^2.1.2" 940 | 941 | make-dir@^1.0.0: 942 | version "1.1.0" 943 | resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.1.0.tgz#19b4369fe48c116f53c2af95ad102c0e39e85d51" 944 | dependencies: 945 | pify "^3.0.0" 946 | 947 | map-obj@^1.0.0, map-obj@^1.0.1: 948 | version "1.0.1" 949 | resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" 950 | 951 | mem@^1.1.0: 952 | version "1.1.0" 953 | resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" 954 | dependencies: 955 | mimic-fn "^1.0.0" 956 | 957 | meow@^3.3.0, meow@^3.7.0: 958 | version "3.7.0" 959 | resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" 960 | dependencies: 961 | camelcase-keys "^2.0.0" 962 | decamelize "^1.1.2" 963 | loud-rejection "^1.0.0" 964 | map-obj "^1.0.1" 965 | minimist "^1.1.3" 966 | normalize-package-data "^2.3.4" 967 | object-assign "^4.0.1" 968 | read-pkg-up "^1.0.1" 969 | redent "^1.0.0" 970 | trim-newlines "^1.0.0" 971 | 972 | mimic-fn@^1.0.0: 973 | version "1.2.0" 974 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" 975 | 976 | minimatch@^3.0.4: 977 | version "3.0.4" 978 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 979 | dependencies: 980 | brace-expansion "^1.1.7" 981 | 982 | minimist@0.0.8: 983 | version "0.0.8" 984 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 985 | 986 | minimist@^0.1.0: 987 | version "0.1.0" 988 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.1.0.tgz#99df657a52574c21c9057497df742790b2b4c0de" 989 | 990 | minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5: 991 | version "1.2.5" 992 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" 993 | integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== 994 | 995 | mkdirp@~0.5.0: 996 | version "0.5.1" 997 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 998 | dependencies: 999 | minimist "0.0.8" 1000 | 1001 | modify-values@^1.0.0: 1002 | version "1.0.0" 1003 | resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.0.tgz#e2b6cdeb9ce19f99317a53722f3dbf5df5eaaab2" 1004 | 1005 | moment@^2.6.0: 1006 | version "2.29.4" 1007 | resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108" 1008 | integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w== 1009 | 1010 | ms@2.1.2: 1011 | version "2.1.2" 1012 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" 1013 | integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== 1014 | 1015 | mute-stream@0.0.7: 1016 | version "0.0.7" 1017 | resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" 1018 | 1019 | neo-async@^2.6.0: 1020 | version "2.6.2" 1021 | resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" 1022 | integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== 1023 | 1024 | normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.3.5: 1025 | version "2.4.0" 1026 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" 1027 | dependencies: 1028 | hosted-git-info "^2.1.4" 1029 | is-builtin-module "^1.0.0" 1030 | semver "2 || 3 || 4 || 5" 1031 | validate-npm-package-license "^3.0.1" 1032 | 1033 | npm-run-path@^2.0.0: 1034 | version "2.0.2" 1035 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 1036 | dependencies: 1037 | path-key "^2.0.0" 1038 | 1039 | npmlog@^4.1.2: 1040 | version "4.1.2" 1041 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" 1042 | dependencies: 1043 | are-we-there-yet "~1.1.2" 1044 | console-control-strings "~1.1.0" 1045 | gauge "~2.7.3" 1046 | set-blocking "~2.0.0" 1047 | 1048 | number-is-nan@^1.0.0: 1049 | version "1.0.1" 1050 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 1051 | 1052 | object-assign@^4.0.1, object-assign@^4.1.0: 1053 | version "4.1.1" 1054 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1055 | 1056 | once@^1.3.0: 1057 | version "1.4.0" 1058 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1059 | dependencies: 1060 | wrappy "1" 1061 | 1062 | onetime@^2.0.0: 1063 | version "2.0.1" 1064 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" 1065 | dependencies: 1066 | mimic-fn "^1.0.0" 1067 | 1068 | os-locale@^2.0.0: 1069 | version "2.1.0" 1070 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" 1071 | dependencies: 1072 | execa "^0.7.0" 1073 | lcid "^1.0.0" 1074 | mem "^1.1.0" 1075 | 1076 | os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: 1077 | version "1.0.2" 1078 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 1079 | 1080 | p-finally@^1.0.0: 1081 | version "1.0.0" 1082 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 1083 | 1084 | p-limit@^1.1.0: 1085 | version "1.2.0" 1086 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" 1087 | dependencies: 1088 | p-try "^1.0.0" 1089 | 1090 | p-locate@^2.0.0: 1091 | version "2.0.0" 1092 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 1093 | dependencies: 1094 | p-limit "^1.1.0" 1095 | 1096 | p-try@^1.0.0: 1097 | version "1.0.0" 1098 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" 1099 | 1100 | package-json@^4.0.1: 1101 | version "4.0.1" 1102 | resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" 1103 | dependencies: 1104 | got "^6.7.1" 1105 | registry-auth-token "^3.0.1" 1106 | registry-url "^3.0.3" 1107 | semver "^5.1.0" 1108 | 1109 | parse-github-repo-url@^1.3.0: 1110 | version "1.4.1" 1111 | resolved "https://registry.yarnpkg.com/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz#9e7d8bb252a6cb6ba42595060b7bf6df3dbc1f50" 1112 | 1113 | parse-json@^2.2.0: 1114 | version "2.2.0" 1115 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 1116 | dependencies: 1117 | error-ex "^1.2.0" 1118 | 1119 | parse-json@^4.0.0: 1120 | version "4.0.0" 1121 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" 1122 | dependencies: 1123 | error-ex "^1.3.1" 1124 | json-parse-better-errors "^1.0.1" 1125 | 1126 | path-dirname@^1.0.0: 1127 | version "1.0.2" 1128 | resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" 1129 | 1130 | path-exists@^2.0.0: 1131 | version "2.1.0" 1132 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" 1133 | dependencies: 1134 | pinkie-promise "^2.0.0" 1135 | 1136 | path-exists@^3.0.0: 1137 | version "3.0.0" 1138 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 1139 | 1140 | path-is-absolute@^1.0.0: 1141 | version "1.0.1" 1142 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1143 | 1144 | path-key@^2.0.0: 1145 | version "2.0.1" 1146 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 1147 | 1148 | path-type@^1.0.0: 1149 | version "1.1.0" 1150 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" 1151 | dependencies: 1152 | graceful-fs "^4.1.2" 1153 | pify "^2.0.0" 1154 | pinkie-promise "^2.0.0" 1155 | 1156 | path-type@^2.0.0: 1157 | version "2.0.0" 1158 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" 1159 | dependencies: 1160 | pify "^2.0.0" 1161 | 1162 | path-type@^3.0.0: 1163 | version "3.0.0" 1164 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" 1165 | dependencies: 1166 | pify "^3.0.0" 1167 | 1168 | pify@^2.0.0, pify@^2.3.0: 1169 | version "2.3.0" 1170 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1171 | 1172 | pify@^3.0.0: 1173 | version "3.0.0" 1174 | resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" 1175 | 1176 | pinkie-promise@^2.0.0: 1177 | version "2.0.1" 1178 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 1179 | dependencies: 1180 | pinkie "^2.0.0" 1181 | 1182 | pinkie@^2.0.0: 1183 | version "2.0.4" 1184 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 1185 | 1186 | prepend-http@^1.0.1: 1187 | version "1.0.4" 1188 | resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" 1189 | 1190 | process-nextick-args@~1.0.6: 1191 | version "1.0.7" 1192 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" 1193 | 1194 | pseudomap@^1.0.2: 1195 | version "1.0.2" 1196 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 1197 | 1198 | q@^1.4.1: 1199 | version "1.5.1" 1200 | resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" 1201 | 1202 | rc@^1.0.1, rc@^1.1.6: 1203 | version "1.2.5" 1204 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd" 1205 | dependencies: 1206 | deep-extend "~0.4.0" 1207 | ini "~1.3.0" 1208 | minimist "^1.2.0" 1209 | strip-json-comments "~2.0.1" 1210 | 1211 | read-cmd-shim@^1.0.1: 1212 | version "1.0.1" 1213 | resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-1.0.1.tgz#2d5d157786a37c055d22077c32c53f8329e91c7b" 1214 | dependencies: 1215 | graceful-fs "^4.1.2" 1216 | 1217 | read-pkg-up@^1.0.1: 1218 | version "1.0.1" 1219 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" 1220 | dependencies: 1221 | find-up "^1.0.0" 1222 | read-pkg "^1.0.0" 1223 | 1224 | read-pkg-up@^2.0.0: 1225 | version "2.0.0" 1226 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" 1227 | dependencies: 1228 | find-up "^2.0.0" 1229 | read-pkg "^2.0.0" 1230 | 1231 | read-pkg@^1.0.0, read-pkg@^1.1.0: 1232 | version "1.1.0" 1233 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" 1234 | dependencies: 1235 | load-json-file "^1.0.0" 1236 | normalize-package-data "^2.3.2" 1237 | path-type "^1.0.0" 1238 | 1239 | read-pkg@^2.0.0: 1240 | version "2.0.0" 1241 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" 1242 | dependencies: 1243 | load-json-file "^2.0.0" 1244 | normalize-package-data "^2.3.2" 1245 | path-type "^2.0.0" 1246 | 1247 | read-pkg@^3.0.0: 1248 | version "3.0.0" 1249 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" 1250 | dependencies: 1251 | load-json-file "^4.0.0" 1252 | normalize-package-data "^2.3.2" 1253 | path-type "^3.0.0" 1254 | 1255 | readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2: 1256 | version "2.3.3" 1257 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" 1258 | dependencies: 1259 | core-util-is "~1.0.0" 1260 | inherits "~2.0.3" 1261 | isarray "~1.0.0" 1262 | process-nextick-args "~1.0.6" 1263 | safe-buffer "~5.1.1" 1264 | string_decoder "~1.0.3" 1265 | util-deprecate "~1.0.1" 1266 | 1267 | redent@^1.0.0: 1268 | version "1.0.0" 1269 | resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" 1270 | dependencies: 1271 | indent-string "^2.1.0" 1272 | strip-indent "^1.0.1" 1273 | 1274 | registry-auth-token@^3.0.1: 1275 | version "3.3.2" 1276 | resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" 1277 | dependencies: 1278 | rc "^1.1.6" 1279 | safe-buffer "^5.0.1" 1280 | 1281 | registry-url@^3.0.3: 1282 | version "3.1.0" 1283 | resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" 1284 | dependencies: 1285 | rc "^1.0.1" 1286 | 1287 | repeating@^2.0.0: 1288 | version "2.0.1" 1289 | resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" 1290 | dependencies: 1291 | is-finite "^1.0.0" 1292 | 1293 | require-directory@^2.1.1: 1294 | version "2.1.1" 1295 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1296 | 1297 | require-main-filename@^1.0.1: 1298 | version "1.0.1" 1299 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 1300 | 1301 | restore-cursor@^2.0.0: 1302 | version "2.0.0" 1303 | resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" 1304 | dependencies: 1305 | onetime "^2.0.0" 1306 | signal-exit "^3.0.2" 1307 | 1308 | rimraf@^2.6.1: 1309 | version "2.6.2" 1310 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" 1311 | dependencies: 1312 | glob "^7.0.5" 1313 | 1314 | run-async@^2.2.0: 1315 | version "2.3.0" 1316 | resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" 1317 | dependencies: 1318 | is-promise "^2.1.0" 1319 | 1320 | rx-lite-aggregates@^4.0.8: 1321 | version "4.0.8" 1322 | resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be" 1323 | dependencies: 1324 | rx-lite "*" 1325 | 1326 | rx-lite@*, rx-lite@^4.0.8: 1327 | version "4.0.8" 1328 | resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444" 1329 | 1330 | safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: 1331 | version "5.1.1" 1332 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" 1333 | 1334 | "semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.1.0, semver@^5.4.1: 1335 | version "5.5.0" 1336 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" 1337 | 1338 | set-blocking@^2.0.0, set-blocking@~2.0.0: 1339 | version "2.0.0" 1340 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1341 | 1342 | shebang-command@^1.2.0: 1343 | version "1.2.0" 1344 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 1345 | dependencies: 1346 | shebang-regex "^1.0.0" 1347 | 1348 | shebang-regex@^1.0.0: 1349 | version "1.0.0" 1350 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 1351 | 1352 | signal-exit@^3.0.0, signal-exit@^3.0.2: 1353 | version "3.0.2" 1354 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1355 | 1356 | simple-git@^3.5.0: 1357 | version "3.5.0" 1358 | resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-3.5.0.tgz#3c3538f4d7a1b3c8f3904412b12740bdcad9c8b1" 1359 | integrity sha512-fZsaq5nzdxQRhMNs6ESGLpMUHoL5GRP+boWPhq9pMYMKwOGZV2jHOxi8AbFFA2Y/6u4kR99HoULizSbpzaODkA== 1360 | dependencies: 1361 | "@kwsites/file-exists" "^1.1.1" 1362 | "@kwsites/promise-deferred" "^1.1.1" 1363 | debug "^4.3.3" 1364 | 1365 | slash@^1.0.0: 1366 | version "1.0.0" 1367 | resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" 1368 | 1369 | sort-keys@^2.0.0: 1370 | version "2.0.0" 1371 | resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" 1372 | dependencies: 1373 | is-plain-obj "^1.0.0" 1374 | 1375 | source-map@^0.6.1: 1376 | version "0.6.1" 1377 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 1378 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== 1379 | 1380 | spdx-correct@~1.0.0: 1381 | version "1.0.2" 1382 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" 1383 | dependencies: 1384 | spdx-license-ids "^1.0.2" 1385 | 1386 | spdx-expression-parse@~1.0.0: 1387 | version "1.0.4" 1388 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" 1389 | 1390 | spdx-license-ids@^1.0.2: 1391 | version "1.2.2" 1392 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" 1393 | 1394 | split2@^2.0.0: 1395 | version "2.2.0" 1396 | resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" 1397 | dependencies: 1398 | through2 "^2.0.2" 1399 | 1400 | split@^1.0.0: 1401 | version "1.0.1" 1402 | resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" 1403 | dependencies: 1404 | through "2" 1405 | 1406 | string-width@^1.0.1, string-width@^1.0.2: 1407 | version "1.0.2" 1408 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 1409 | dependencies: 1410 | code-point-at "^1.0.0" 1411 | is-fullwidth-code-point "^1.0.0" 1412 | strip-ansi "^3.0.0" 1413 | 1414 | string-width@^2.0.0, string-width@^2.1.0: 1415 | version "2.1.1" 1416 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 1417 | dependencies: 1418 | is-fullwidth-code-point "^2.0.0" 1419 | strip-ansi "^4.0.0" 1420 | 1421 | string_decoder@~1.0.3: 1422 | version "1.0.3" 1423 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" 1424 | dependencies: 1425 | safe-buffer "~5.1.0" 1426 | 1427 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 1428 | version "3.0.1" 1429 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1430 | dependencies: 1431 | ansi-regex "^2.0.0" 1432 | 1433 | strip-ansi@^4.0.0: 1434 | version "4.0.0" 1435 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 1436 | dependencies: 1437 | ansi-regex "^3.0.0" 1438 | 1439 | strip-bom@^2.0.0: 1440 | version "2.0.0" 1441 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" 1442 | dependencies: 1443 | is-utf8 "^0.2.0" 1444 | 1445 | strip-bom@^3.0.0: 1446 | version "3.0.0" 1447 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 1448 | 1449 | strip-eof@^1.0.0: 1450 | version "1.0.0" 1451 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 1452 | 1453 | strip-indent@^1.0.1: 1454 | version "1.0.1" 1455 | resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" 1456 | dependencies: 1457 | get-stdin "^4.0.1" 1458 | 1459 | strip-json-comments@~2.0.1: 1460 | version "2.0.1" 1461 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 1462 | 1463 | strong-log-transformer@^1.0.6: 1464 | version "1.0.6" 1465 | resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-1.0.6.tgz#f7fb93758a69a571140181277eea0c2eb1301fa3" 1466 | dependencies: 1467 | byline "^5.0.0" 1468 | duplexer "^0.1.1" 1469 | minimist "^0.1.0" 1470 | moment "^2.6.0" 1471 | through "^2.3.4" 1472 | 1473 | supports-color@^4.0.0: 1474 | version "4.5.0" 1475 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" 1476 | dependencies: 1477 | has-flag "^2.0.0" 1478 | 1479 | temp-dir@^1.0.0: 1480 | version "1.0.0" 1481 | resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" 1482 | 1483 | temp-write@^3.3.0: 1484 | version "3.4.0" 1485 | resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-3.4.0.tgz#8cff630fb7e9da05f047c74ce4ce4d685457d492" 1486 | dependencies: 1487 | graceful-fs "^4.1.2" 1488 | is-stream "^1.1.0" 1489 | make-dir "^1.0.0" 1490 | pify "^3.0.0" 1491 | temp-dir "^1.0.0" 1492 | uuid "^3.0.1" 1493 | 1494 | tempfile@^1.1.1: 1495 | version "1.1.1" 1496 | resolved "https://registry.yarnpkg.com/tempfile/-/tempfile-1.1.1.tgz#5bcc4eaecc4ab2c707d8bc11d99ccc9a2cb287f2" 1497 | dependencies: 1498 | os-tmpdir "^1.0.0" 1499 | uuid "^2.0.1" 1500 | 1501 | text-extensions@^1.0.0: 1502 | version "1.7.0" 1503 | resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.7.0.tgz#faaaba2625ed746d568a23e4d0aacd9bf08a8b39" 1504 | 1505 | through2@^2.0.0, through2@^2.0.2: 1506 | version "2.0.3" 1507 | resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" 1508 | dependencies: 1509 | readable-stream "^2.1.5" 1510 | xtend "~4.0.1" 1511 | 1512 | through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6: 1513 | version "2.3.8" 1514 | resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" 1515 | 1516 | timed-out@^4.0.0: 1517 | version "4.0.1" 1518 | resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" 1519 | 1520 | tmp@^0.0.33: 1521 | version "0.0.33" 1522 | resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" 1523 | dependencies: 1524 | os-tmpdir "~1.0.2" 1525 | 1526 | trim-newlines@^1.0.0: 1527 | version "1.0.0" 1528 | resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" 1529 | 1530 | trim-off-newlines@^1.0.0: 1531 | version "1.0.1" 1532 | resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" 1533 | 1534 | typedarray@^0.0.6: 1535 | version "0.0.6" 1536 | resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" 1537 | 1538 | uglify-js@^3.1.4: 1539 | version "3.13.5" 1540 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.5.tgz#5d71d6dbba64cf441f32929b1efce7365bb4f113" 1541 | integrity sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw== 1542 | 1543 | universalify@^0.1.0: 1544 | version "0.1.1" 1545 | resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" 1546 | 1547 | unzip-response@^2.0.1: 1548 | version "2.0.1" 1549 | resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" 1550 | 1551 | url-parse-lax@^1.0.0: 1552 | version "1.0.0" 1553 | resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" 1554 | dependencies: 1555 | prepend-http "^1.0.1" 1556 | 1557 | util-deprecate@~1.0.1: 1558 | version "1.0.2" 1559 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 1560 | 1561 | uuid@^2.0.1: 1562 | version "2.0.3" 1563 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" 1564 | 1565 | uuid@^3.0.1: 1566 | version "3.2.1" 1567 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" 1568 | 1569 | validate-npm-package-license@^3.0.1: 1570 | version "3.0.1" 1571 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" 1572 | dependencies: 1573 | spdx-correct "~1.0.0" 1574 | spdx-expression-parse "~1.0.0" 1575 | 1576 | wcwidth@^1.0.0: 1577 | version "1.0.1" 1578 | resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" 1579 | dependencies: 1580 | defaults "^1.0.3" 1581 | 1582 | which-module@^2.0.0: 1583 | version "2.0.0" 1584 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 1585 | 1586 | which@^1.2.9: 1587 | version "1.3.0" 1588 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" 1589 | dependencies: 1590 | isexe "^2.0.0" 1591 | 1592 | wide-align@^1.1.0: 1593 | version "1.1.2" 1594 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" 1595 | dependencies: 1596 | string-width "^1.0.2" 1597 | 1598 | wordwrap@^1.0.0: 1599 | version "1.0.0" 1600 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 1601 | integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= 1602 | 1603 | wrap-ansi@^2.0.0: 1604 | version "2.1.0" 1605 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 1606 | dependencies: 1607 | string-width "^1.0.1" 1608 | strip-ansi "^3.0.1" 1609 | 1610 | wrappy@1: 1611 | version "1.0.2" 1612 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1613 | 1614 | write-file-atomic@^2.0.0, write-file-atomic@^2.3.0: 1615 | version "2.3.0" 1616 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" 1617 | dependencies: 1618 | graceful-fs "^4.1.11" 1619 | imurmurhash "^0.1.4" 1620 | signal-exit "^3.0.2" 1621 | 1622 | write-json-file@^2.2.0: 1623 | version "2.3.0" 1624 | resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-2.3.0.tgz#2b64c8a33004d54b8698c76d585a77ceb61da32f" 1625 | dependencies: 1626 | detect-indent "^5.0.0" 1627 | graceful-fs "^4.1.2" 1628 | make-dir "^1.0.0" 1629 | pify "^3.0.0" 1630 | sort-keys "^2.0.0" 1631 | write-file-atomic "^2.0.0" 1632 | 1633 | write-pkg@^3.1.0: 1634 | version "3.1.0" 1635 | resolved "https://registry.yarnpkg.com/write-pkg/-/write-pkg-3.1.0.tgz#030a9994cc9993d25b4e75a9f1a1923607291ce9" 1636 | dependencies: 1637 | sort-keys "^2.0.0" 1638 | write-json-file "^2.2.0" 1639 | 1640 | xtend@~4.0.1: 1641 | version "4.0.1" 1642 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" 1643 | 1644 | y18n@^3.2.1: 1645 | version "3.2.1" 1646 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 1647 | 1648 | yallist@^2.1.2: 1649 | version "2.1.2" 1650 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 1651 | 1652 | yargs-parser@^7.0.0: 1653 | version "7.0.0" 1654 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" 1655 | dependencies: 1656 | camelcase "^4.1.0" 1657 | 1658 | yargs@^8.0.2: 1659 | version "8.0.2" 1660 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" 1661 | dependencies: 1662 | camelcase "^4.1.0" 1663 | cliui "^3.2.0" 1664 | decamelize "^1.1.1" 1665 | get-caller-file "^1.0.1" 1666 | os-locale "^2.0.0" 1667 | read-pkg-up "^2.0.0" 1668 | require-directory "^2.1.1" 1669 | require-main-filename "^1.0.1" 1670 | set-blocking "^2.0.0" 1671 | string-width "^2.0.0" 1672 | which-module "^2.0.0" 1673 | y18n "^3.2.1" 1674 | yargs-parser "^7.0.0" 1675 | --------------------------------------------------------------------------------