From b80c417429f5e54a3586cee4435cd6b3ce33d333 Mon Sep 17 00:00:00 2001 From: Caleb Date: Fri, 29 Sep 2017 21:01:08 -0600 Subject: [PATCH] Switch to a smaller/faster TOML parser. --- package.json | 2 +- src/formats/frontmatter.js | 2 +- yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 00a34972..bd15daf6 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "slate-edit-table": "^0.10.1", "slate-soft-break": "^0.3.0", "slug": "^0.9.1", - "toml": "^2.3.3", + "toml-j0.4": "^1.1.1", "unified": "^6.1.4", "unist-builder": "^1.0.2", "unist-util-visit-parents": "^1.1.1", diff --git a/src/formats/frontmatter.js b/src/formats/frontmatter.js index 8740fbd2..3f5b7df2 100644 --- a/src/formats/frontmatter.js +++ b/src/formats/frontmatter.js @@ -1,5 +1,5 @@ import matter from 'gray-matter'; -import tomlEng from 'toml'; +import tomlEng from 'toml-j0.4'; import YAML from './yaml'; const parsers = { diff --git a/yarn.lock b/yarn.lock index f7986099..7f501ebf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8576,9 +8576,9 @@ to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" -toml@^2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/toml/-/toml-2.3.3.tgz#8d683d729577cb286231dfc7a8affe58d31728fb" +toml-j0.4@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/toml-j0.4/-/toml-j0.4-1.1.1.tgz#eb0c70348609a0263bb1d6e4a3dd191dcca60866" topbar@^0.1.3: version "0.1.3"