cloudcannon-jekyll-bookshop 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cloudcannon-jekyll-bookshop/version.rb +1 -1
- data/node_modules/@bookshop/cloudcannon-structures/package.json +2 -2
- data/node_modules/@bookshop/toml-narrator/main.js +1 -4
- data/node_modules/@bookshop/toml-narrator/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1276dc52be27660e3b083e2f45a765a20341671884ab60d913a167cc871889f4
|
4
|
+
data.tar.gz: cdb5b1d344df44451064adcea8d37da0757f4771ba5b92823b22c399bd304e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d1130c4851747de84020731a90e568c731367cdbe1ab49514fb7bb729eaa169675c0b08f8352125780f1fbfd383073353c76e8dd0cccacbe16690287298ef1c
|
7
|
+
data.tar.gz: b77c3992d5597a4a80fbbad2e7854cd354fc7ce923da84378bd498e89d8306d39c6e9c7a982869c9091253e724016e2264037d33d625aafc2cbbf39dd37b9da7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bookshop/cloudcannon-structures",
|
3
3
|
"packageManager": "yarn@3.0.0",
|
4
|
-
"version": "2.0.
|
4
|
+
"version": "2.0.9",
|
5
5
|
"description": "Convert a Bookshop object into a CloudCannon structure",
|
6
6
|
"main": "main.js",
|
7
7
|
"scripts": {
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"access": "public"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"@bookshop/toml-narrator": "2.0.
|
20
|
+
"@bookshop/toml-narrator": "2.0.9",
|
21
21
|
"@ltd/j-toml": "^1.17.0",
|
22
22
|
"ava": "^3.15.0",
|
23
23
|
"nyc": "^15.1.0",
|
@@ -7,7 +7,6 @@ module.exports = {
|
|
7
7
|
const isVariableComment = /^[a-z0-9\-_\.\s]+=.*?#.+?$/i;
|
8
8
|
// [some_section] #: Some comment
|
9
9
|
const isBlockComment = /^\s*?\[.*?#.+?$/i;
|
10
|
-
|
11
10
|
const extractComment = /#:([^#]+)$/i;
|
12
11
|
const extractVariable = /^\s*?([a-z0-9\-_\.]+)\s?=/i;
|
13
12
|
|
@@ -15,12 +14,10 @@ module.exports = {
|
|
15
14
|
const [, comment] = extractComment.exec(line) || [];
|
16
15
|
const [, variable_name] = extractVariable.exec(line) || [];
|
17
16
|
if (!comment || !variable_name) return line;
|
18
|
-
|
19
|
-
return `${variable_name}--bookshop_comment = "${comment.trim()}"\n${line}`
|
17
|
+
return `${variable_name}--bookshop_comment = "${comment.replace(/"/g, '\"').trim()}"\n${line}`
|
20
18
|
} else if (isBlockComment.test(line)) {
|
21
19
|
const [, comment] = extractComment.exec(line) || [];
|
22
20
|
if (!comment) return line;
|
23
|
-
|
24
21
|
return `${line}\n--bookshop_comment = "${comment.trim()}"`
|
25
22
|
} else {
|
26
23
|
return line;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudcannon-jekyll-bookshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Bigelow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|