diff --git a/docs/extensions/cover-art-archive.md b/docs/extensions/cover-art-archive.md index a7f6846..870b601 100644 --- a/docs/extensions/cover-art-archive.md +++ b/docs/extensions/cover-art-archive.md @@ -15,6 +15,9 @@ This extension can be configured using environment variables: * **`COVER_ART_ARCHIVE_CACHE_TTL`**: The number of seconds to keep items in the cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). + + +## Schema Types
Table of Contents @@ -30,9 +33,9 @@ This extension can be configured using environment variables:
-## Objects +### Objects -### CoverArtArchiveImage +#### CoverArtArchiveImage An individual piece of album artwork from the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive). @@ -131,7 +134,7 @@ A free-text comment left for the image. -### CoverArtArchiveImageThumbnails +#### CoverArtArchiveImageThumbnails URLs for thumbnails of different sizes for a particular piece of cover art. @@ -169,7 +172,7 @@ The URL of a large version of the cover art, where the maximum dimension is -### CoverArtArchiveRelease +#### CoverArtArchiveRelease An object containing a list of the cover art images for a release obtained from the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive), @@ -278,7 +281,7 @@ The particular release shown in the returned cover art. -### Release +#### Release :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -307,7 +310,7 @@ This field is provided by the Cover Art Archive extension. -### ReleaseGroup +#### ReleaseGroup :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -338,9 +341,9 @@ This field is provided by the Cover Art Archive extension. -## Enums +### Enums -### CoverArtArchiveImageSize +#### CoverArtArchiveImageSize The image sizes that may be requested at the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive). @@ -376,3 +379,5 @@ The image’s original dimensions, with no maximum. + + diff --git a/docs/extensions/fanart-tv.md b/docs/extensions/fanart-tv.md index af3c7f7..61c6c98 100644 --- a/docs/extensions/fanart-tv.md +++ b/docs/extensions/fanart-tv.md @@ -1,6 +1,7 @@ # Extension: fanart.tv -Retrieve high quality artwork for artists, releases, and labels from [fanart.tv](https://fanart.tv/). +Retrieve high quality artwork for artists, releases, and labels from +[fanart.tv](https://fanart.tv/). This extension uses its own cache, separate from the MusicBrainz loader cache. @@ -17,6 +18,9 @@ This extension can be configured using environment variables: * **`FANART_CACHE_TTL`**: The number of seconds to keep items in the cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). + + +## Schema Types
Table of Contents @@ -36,9 +40,9 @@ This extension can be configured using environment variables:
-## Objects +### Objects -### Artist +#### Artist :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -66,7 +70,7 @@ This field is provided by the fanart.tv extension. -### FanArtAlbum +#### FanArtAlbum An object containing lists of the different types of release group images from [fanart.tv](https://fanart.tv/). @@ -103,7 +107,7 @@ group, with transparent backgrounds. -### FanArtArtist +#### FanArtArtist An object containing lists of the different types of artist images from [fanart.tv](https://fanart.tv/). @@ -170,7 +174,7 @@ containing every member of a band). -### FanArtDiscImage +#### FanArtDiscImage A disc image from [fanart.tv](https://fanart.tv/). @@ -241,7 +245,7 @@ The width and height of the (square) disc image. -### FanArtImage +#### FanArtImage A single image from [fanart.tv](https://fanart.tv/). @@ -294,7 +298,7 @@ The number of likes the image has received by fanart.tv users. -### FanArtLabel +#### FanArtLabel An object containing lists of the different types of label images from [fanart.tv](https://fanart.tv/). @@ -323,7 +327,7 @@ transparent backgrounds. -### FanArtLabelImage +#### FanArtLabelImage A music label image from [fanart.tv](https://fanart.tv/). @@ -385,7 +389,7 @@ The type of color content in the image (usually “white” or “colour”). -### Label +#### Label :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -413,7 +417,7 @@ This field is provided by the fanart.tv extension. -### ReleaseGroup +#### ReleaseGroup :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -441,9 +445,9 @@ This field is provided by the fanart.tv extension. -## Enums +### Enums -### FanArtImageSize +#### FanArtImageSize The image sizes that may be requested at [fanart.tv](https://fanart.tv/). @@ -471,3 +475,5 @@ A maximum dimension of 200px. + + diff --git a/docs/extensions/mediawiki.md b/docs/extensions/mediawiki.md index f5e124f..cb09f7f 100644 --- a/docs/extensions/mediawiki.md +++ b/docs/extensions/mediawiki.md @@ -1,6 +1,7 @@ # Extension: MediaWiki -Retrieve information from MediaWiki image pages, like the actual image file URL and EXIF metadata. +Retrieve information from MediaWiki image pages, like the actual image file URL +and EXIF metadata. On entities with [URL relationship types][relationships] that represent images, this extension will find those URLs that appear to be MediaWiki image pages, and @@ -25,6 +26,9 @@ This extension can be configured using environment variables: [relationships]: https://musicbrainz.org/relationships [MediaWiki API]: https://www.mediawiki.org/wiki/API:Main_page + + +## Schema Types
Table of Contents @@ -39,9 +43,9 @@ This extension can be configured using environment variables:
-## Objects +### Objects -### Artist +#### Artist :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -80,7 +84,7 @@ the possible [Artist-URL relationship types](https://musicbrainz.org/relationshi -### Instrument +#### Instrument :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -119,7 +123,7 @@ possible [Instrument-URL relationship types](https://musicbrainz.org/relationshi -### Label +#### Label :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -158,7 +162,7 @@ possible [Label-URL relationship types](https://musicbrainz.org/relationships/la -### MediaWikiImage +#### MediaWikiImage An object describing various properties of an image stored on a MediaWiki server. The information comes the [MediaWiki imageinfo API](https://www.mediawiki.org/wiki/API:Imageinfo). @@ -321,7 +325,7 @@ The full list of values in the `extmetadata` field. -### MediaWikiImageMetadata +#### MediaWikiImageMetadata An entry in the `extmetadata` field of a MediaWiki image file. @@ -365,7 +369,7 @@ The source of the value. -### Place +#### Place :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -403,3 +407,5 @@ possible [Place-URL relationship types](https://musicbrainz.org/relationships/pl + + diff --git a/docs/extensions/the-audio-db.md b/docs/extensions/the-audio-db.md index ab18fb0..7aeb0cc 100644 --- a/docs/extensions/the-audio-db.md +++ b/docs/extensions/the-audio-db.md @@ -1,6 +1,7 @@ # Extension: TheAudioDB -Retrieve images and information about artists, releases, and recordings from [TheAudioDB.com](http://www.theaudiodb.com/). +Retrieve images and information about artists, releases, and recordings from +[TheAudioDB.com](http://www.theaudiodb.com/). This extension uses its own cache, separate from the MusicBrainz loader cache. @@ -17,6 +18,9 @@ This extension can be configured using environment variables: * **`THEAUDIODB_CACHE_TTL`**: The number of seconds to keep items in the cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). + + +## Schema Types
Table of Contents @@ -34,9 +38,9 @@ This extension can be configured using environment variables:
-## Objects +### Objects -### Artist +#### Artist :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -65,7 +69,7 @@ This field is provided by TheAudioDB extension. -### Recording +#### Recording :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -93,7 +97,7 @@ This field is provided by TheAudioDB extension. -### ReleaseGroup +#### ReleaseGroup :small_blue_diamond: *This type has been extended. See the [base schema](../types.md) for a description and additional fields.* @@ -122,7 +126,7 @@ This field is provided by TheAudioDB extension. -### TheAudioDBAlbum +#### TheAudioDBAlbum An album on [TheAudioDB](http://www.theaudiodb.com/) corresponding with a MusicBrainz Release Group. @@ -329,7 +333,7 @@ The primary musical theme of the album (e.g. “In Love”). -### TheAudioDBArtist +#### TheAudioDBArtist An artist on [TheAudioDB](http://www.theaudiodb.com/). @@ -483,7 +487,7 @@ The primary musical style of the artist (e.g. “Rock/Pop”). -### TheAudioDBMusicVideo +#### TheAudioDBMusicVideo Details of a music video associated with a track on [TheAudioDB](http://www.theaudiodb.com/). @@ -585,7 +589,7 @@ rarely be up to date, so use cautiously. -### TheAudioDBTrack +#### TheAudioDBTrack A track on [TheAudioDB](http://www.theaudiodb.com/) corresponding with a MusicBrainz Recording. @@ -734,9 +738,9 @@ The primary musical theme of the track (e.g. “In Love”). -## Enums +### Enums -### TheAudioDBImageSize +#### TheAudioDBImageSize The image sizes that may be requested at [TheAudioDB](http://www.theaudiodb.com/). @@ -764,3 +768,5 @@ A maximum dimension of 200px. + + diff --git a/docs/types.md b/docs/types.md index 4ee87a7..1f2c835 100644 --- a/docs/types.md +++ b/docs/types.md @@ -1,6 +1,9 @@ # Schema Types -You may also be interested in reading the [schema in GraphQL syntax](schema.md). +You may also be interested in reading the [schema in GraphQL syntax](schema.md) +or the schemas provided by the [built-in extensions](extensions). + +
Table of Contents @@ -7404,3 +7407,5 @@ The id of the object. + + diff --git a/package.json b/package.json index d8f68fe..459e0fd 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "build:docs:extensions": "babel-node scripts/build-extension-docs.js", "build:docs:readme": "doctoc --notitle README.md docs/extensions/README.md", "build:docs:schema": "printf '# GraphQL Schema\\n\\n%s\n' \"$(npm run -s print-schema:md)\" > docs/schema.md", - "build:docs:types": "graphql-markdown --require babel-register --prologue 'You may also be interested in reading the [schema in GraphQL syntax](schema.md).' ./src/schema.js > docs/types.md", + "build:docs:types": "graphql-markdown ./src/schema.js --require babel-register --no-title --update-file docs/types.md", "build:lib": "babel --out-dir lib src", "clean": "npm run clean:lib", "clean:lib": "rm -rf lib", @@ -81,7 +81,7 @@ "express-graphql": "^0.6.7", "graphql": "^0.11.7", "graphql-relay": "^0.5.2", - "graphql-tools": "^2.6.1", + "graphql-tools": "^2.7.0", "lru-cache": "^4.1.1", "pascalcase": "^0.1.1", "postinstall-build": "^5.0.1", @@ -99,15 +99,15 @@ "babel-preset-stage-2": "^6.24.1", "babel-register": "^6.24.1", "coveralls": "^3.0.0", - "cross-env": "^5.1.0", + "cross-env": "^5.1.1", "doctoc": "^1.3.0", "eslint-plugin-markdown": "^1.0.0-beta.6", - "graphql-markdown": "^3.1.0", + "graphql-markdown": "^3.2.0", "nodemon": "^1.11.0", "nyc": "^11.1.0", "rimraf": "^2.6.1", "sepia": "^2.0.2", - "sinon": "^4.0.1", + "sinon": "^4.0.2", "snazzy": "^7.0.0", "standard": "^10.0.3" }, diff --git a/scripts/build-extension-docs.js b/scripts/build-extension-docs.js index cf32d68..fab237d 100644 --- a/scripts/build-extension-docs.js +++ b/scripts/build-extension-docs.js @@ -1,7 +1,6 @@ -import fs from 'fs' import path from 'path' import { graphql, introspectionQuery } from 'graphql' -import { renderSchema, diffSchema } from 'graphql-markdown' +import { updateSchema, diffSchema } from 'graphql-markdown' import baseSchema, { createSchema } from '../src/schema' const extensionModules = [ @@ -38,25 +37,9 @@ Promise.all(extensionModules.map(extensionModule => { __dirname, `../docs/extensions/${extensionModule}.md` ) - const stream = fs.createWriteStream(outputPath) - const printer = (line) => stream.write(`${line}\n`) - const prologuePath = path.resolve( - __dirname, - `../src/extensions/${extensionModule}/prologue.md` - ) - const prologue = fs.readFileSync(prologuePath, 'utf8') - renderSchema(outputSchema, { - title: `Extension: ${extension.name}`, - prologue: prologue.trim() - ? `${extension.description}\n\n${prologue}` - : extension.description, - printer, - unknownTypeURL: '../types.md' - }) - stream.end() - return new Promise((resolve, reject) => { - stream.on('error', reject) - stream.on('finish', () => resolve(extension)) + return updateSchema(outputPath, outputSchema, { + unknownTypeURL: '../types.md', + headingLevel: 2 }) }) })).then((extensions) => { diff --git a/src/extensions/cover-art-archive/prologue.md b/src/extensions/cover-art-archive/prologue.md deleted file mode 100644 index 255602a..0000000 --- a/src/extensions/cover-art-archive/prologue.md +++ /dev/null @@ -1,12 +0,0 @@ -This extension uses its own cache, separate from the MusicBrainz loader cache. - -## Configuration - -This extension can be configured using environment variables: - -* **`COVER_ART_ARCHIVE_BASE_URL`**: The base URL at which to access the Cover - Art Archive API. Defaults to `http://coverartarchive.org/`. -* **`COVER_ART_ARCHIVE_CACHE_SIZE`**: The number of items to keep in the cache. - Defaults to `GRAPHBRAINZ_CACHE_SIZE` if defined, or `8192`. -* **`COVER_ART_ARCHIVE_CACHE_TTL`**: The number of seconds to keep items in the - cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). diff --git a/src/extensions/fanart-tv/prologue.md b/src/extensions/fanart-tv/prologue.md deleted file mode 100644 index 6533795..0000000 --- a/src/extensions/fanart-tv/prologue.md +++ /dev/null @@ -1,14 +0,0 @@ -This extension uses its own cache, separate from the MusicBrainz loader cache. - -## Configuration - -This extension can be configured using environment variables: - -* **`FANART_API_KEY`**: The fanart.tv API key to use. This is required for any - fields added by the extension to successfully resolve. -* **`FANART_BASE_URL`**: The base URL at which to access the - fanart.tv API. Defaults to `http://webservice.fanart.tv/v3/`. -* **`FANART_CACHE_SIZE`**: The number of items to keep in the cache. - Defaults to `GRAPHBRAINZ_CACHE_SIZE` if defined, or `8192`. -* **`FANART_CACHE_TTL`**: The number of seconds to keep items in the - cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). diff --git a/src/extensions/mediawiki/prologue.md b/src/extensions/mediawiki/prologue.md deleted file mode 100644 index 63b89a4..0000000 --- a/src/extensions/mediawiki/prologue.md +++ /dev/null @@ -1,22 +0,0 @@ -On entities with [URL relationship types][relationships] that represent images, -this extension will find those URLs that appear to be MediaWiki image pages, and -use the [MediaWiki API][] to fetch information about the image. This information -will include the actual file URL, so you can use it as the `src` in an `` -tag (for example). - -MediaWiki image URLs are assumed to be those with a path that starts with -`/wiki/Image:` or `/wiki/File:`. - -This extension uses its own cache, separate from the MusicBrainz loader cache. - -## Configuration - -This extension can be configured using environment variables: - -* **`MEDIAWIKI_CACHE_SIZE`**: The number of items to keep in the cache. - Defaults to `GRAPHBRAINZ_CACHE_SIZE` if defined, or `8192`. -* **`MEDIAWIKI_CACHE_TTL`**: The number of seconds to keep items in the - cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). - -[relationships]: https://musicbrainz.org/relationships -[MediaWiki API]: https://www.mediawiki.org/wiki/API:Main_page diff --git a/src/extensions/the-audio-db/prologue.md b/src/extensions/the-audio-db/prologue.md deleted file mode 100644 index dd94508..0000000 --- a/src/extensions/the-audio-db/prologue.md +++ /dev/null @@ -1,14 +0,0 @@ -This extension uses its own cache, separate from the MusicBrainz loader cache. - -## Configuration - -This extension can be configured using environment variables: - -* **`THEAUDIODB_API_KEY`**: TheAudioDB API key to use. This is required for any - fields added by the extension to successfully resolve. -* **`THEAUDIODB_BASE_URL`**: The base URL at which to access TheAudioDB API. - Defaults to `http://www.theaudiodb.com/api/v1/json/`. -* **`THEAUDIODB_CACHE_SIZE`**: The number of items to keep in the cache. - Defaults to `GRAPHBRAINZ_CACHE_SIZE` if defined, or `8192`. -* **`THEAUDIODB_CACHE_TTL`**: The number of seconds to keep items in the - cache. Defaults to `GRAPHBRAINZ_CACHE_TTL` if defined, or `86400000` (one day). diff --git a/yarn.lock b/yarn.lock index 4a4e8b1..5c30dd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -157,9 +157,9 @@ anymatch@^1.3.0: arrify "^1.0.0" micromatch "^2.1.5" -apollo-utilities@^0.1.1-0: - version "0.1.1-1" - resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-0.1.1-1.tgz#a637c2a5b49e06f20dd9adf7c55ec1ff69a97592" +apollo-utilities@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.0.1.tgz#34b4df0bd6ed71d0afaa7c62489173dca5d07e92" append-transform@^0.4.0: version "0.4.0" @@ -1625,9 +1625,9 @@ create-error-class@^3.0.0: dependencies: capture-stack-trace "^1.0.0" -cross-env@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.0.tgz#1f12d6b3777d5847dcf9cf39fbee3c6a76dd5058" +cross-env@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.1.tgz#b6d8ab97f304c0f71dae7277b75fe424c08dfa74" dependencies: cross-spawn "^5.1.0" is-windows "^1.0.0" @@ -2663,9 +2663,9 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" -graphql-markdown@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/graphql-markdown/-/graphql-markdown-3.1.0.tgz#ff8fb91864388b359622f92637c8f1edbee70618" +graphql-markdown@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/graphql-markdown/-/graphql-markdown-3.2.0.tgz#108638359c1dc1d6ea388a033ab13b9d66eb84af" dependencies: deep-diff "^0.3.8" graphql "^0.11.7" @@ -2677,11 +2677,11 @@ graphql-relay@^0.5.2: version "0.5.3" resolved "https://registry.yarnpkg.com/graphql-relay/-/graphql-relay-0.5.3.tgz#56a78ac07c87d89795a34db6b8e9681b827be5b5" -graphql-tools@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-2.6.1.tgz#9f6d1600951a05b18b83c52986c42eee4fd3cb1b" +graphql-tools@^2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-2.7.0.tgz#1045f4135e6365b50bb66595ac4f1a7b868ef148" dependencies: - apollo-utilities "^0.1.1-0" + apollo-utilities "^1.0.1" deprecated-decorator "^0.1.6" uuid "^3.1.0" @@ -3305,9 +3305,9 @@ jsx-ast-utils@^1.3.4: version "1.4.1" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1" -just-extend@^1.1.22: - version "1.1.22" - resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-1.1.22.tgz#3330af756cab6a542700c64b2e4e4aa062d52fff" +just-extend@^1.1.26: + version "1.1.27" + resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-1.1.27.tgz#ec6e79410ff914e472652abfa0e603c03d60e905" kind-of@^3.0.2: version "3.2.2" @@ -3726,10 +3726,6 @@ nan@^2.3.0: version "2.6.2" resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" -native-promise-only@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/native-promise-only/-/native-promise-only-0.8.1.tgz#20a318c30cb45f71fe7adfbf7b21c99c1472ef11" - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -3738,12 +3734,12 @@ negotiator@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" -nise@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/nise/-/nise-1.1.1.tgz#1faa07147f3bf2465d4dbedc0e4a84048f081041" +nise@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/nise/-/nise-1.2.0.tgz#079d6cadbbcb12ba30e38f1c999f36ad4d6baa53" dependencies: formatio "^1.2.0" - just-extend "^1.1.22" + just-extend "^1.1.26" lolex "^1.6.0" path-to-regexp "^1.7.0" text-encoding "^0.6.4" @@ -4643,7 +4639,7 @@ safe-buffer@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" -samsam@1.x, samsam@^1.1.3: +samsam@1.x: version "1.2.1" resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.2.1.tgz#edd39093a3184370cb859243b2bdf255e7d8ea67" @@ -4728,19 +4724,16 @@ signal-exit@^3.0.0, signal-exit@^3.0.1, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" -sinon@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/sinon/-/sinon-4.0.1.tgz#e46146a8a8420f837bdba32e2965bd1fe43d5b05" +sinon@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/sinon/-/sinon-4.0.2.tgz#c81f62456d37986c84e9f522ddb9ce413bda49d2" dependencies: diff "^3.1.0" formatio "1.2.0" lodash.get "^4.4.2" lolex "^2.1.3" - native-promise-only "^0.8.1" - nise "^1.1.1" - path-to-regexp "^1.7.0" - samsam "^1.1.3" - text-encoding "0.6.4" + nise "^1.2.0" + supports-color "^4.4.0" type-detect "^4.0.0" slash@^1.0.0: @@ -5000,6 +4993,12 @@ supports-color@^4.0.0: dependencies: has-flag "^2.0.0" +supports-color@^4.4.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" + dependencies: + has-flag "^2.0.0" + symbol-observable@^0.2.2: version "0.2.4" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-0.2.4.tgz#95a83db26186d6af7e7a18dbd9760a2f86d08f40" @@ -5062,7 +5061,7 @@ test-exclude@^4.1.1: read-pkg-up "^1.0.1" require-main-filename "^1.0.1" -text-encoding@0.6.4, text-encoding@^0.6.4: +text-encoding@^0.6.4: version "0.6.4" resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.6.4.tgz#e399a982257a276dae428bb92845cb71bdc26d19"