cloudcannon-jekyll-bookshop 2.0.0.pre.beta.34 → 2.0.0.pre.beta.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24dbf78b753c313ac28a7f1d3ed8f96173b0ea684b11aa61596a77546a7eb358
4
- data.tar.gz: 75110980c06a1383fb81e0eaa24145184fcc57cd72aeab3eb1f3190579966316
3
+ metadata.gz: 3be0a8e01b861737a3a22a0183715a2d15beb44da6f9804a1cbb9082c3eb98b9
4
+ data.tar.gz: '05281b74ca95d80da1ec8d9209304974f6899e288fed38312a5af60a805a723f'
5
5
  SHA512:
6
- metadata.gz: da6403adb33ba92c04b484215563051501091a5015e39d11e996f5e5426387e4ca669d9e88b8548c45f7891ba5a856be11229ed847f24b5e38648024ddde0b46
7
- data.tar.gz: 4f4eaafa4d63e0ab1e36a73f6420b675ea98be2bca1c3458dc2662434ca282c0b6ef2c34ac6274a522632e28933cb737e3bf2aeaa76fc316755c5dd3523331bd
6
+ metadata.gz: 94d5752406b698dc16278ef8582f55463d154a5fbc3aca8d0721b103e05b1e8e94dc6b5332292ab619c7e21a53643cf564bc6a45deb909124582c3176a90af8b
7
+ data.tar.gz: 30648c106e04f6b415f18503afe039e7ec326c5e6224518bbd824099bb5c4e1fc89d3699429072ced991464340f1d0a5967f766cb35a4be49eb94e883c8678ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudcannon-jekyll-bookshop (2.0.0.pre.beta.34)
4
+ cloudcannon-jekyll-bookshop (2.0.0.pre.beta.38)
5
5
  dry-inflector (>= 0.1, < 1.0)
6
6
  jekyll (>= 3.7, < 5.0)
7
7
  node-runner (>= 1.0, < 2.0)
@@ -44,7 +44,7 @@ module CloudCannonJekyllBookshop
44
44
  end
45
45
 
46
46
  def self.add_structure(hash, component)
47
- array_structures = component.delete("array_structures")
47
+ array_structures = component.delete("structures")
48
48
  array_structures.each do |key|
49
49
  hash[key] ||= {}
50
50
  hash[key]["values"] ||= []
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyllBookshop
4
- VERSION = "2.0.0.pre.beta.34"
4
+ VERSION = "2.0.0.pre.beta.38"
5
5
  end
@@ -29,14 +29,14 @@ const TransformComponent = (path, component) => {
29
29
  _bookshop_name: GetComponentKey(path)
30
30
  },
31
31
  label: NiceLabel(GetComponentKey(path)), // Used as a fallback when no label is supplied inside [component]
32
- array_structures: [],
32
+ structures: [],
33
33
  ...component["component"]
34
34
  }
35
35
  if (component["props"]) {
36
36
  TransformComponentProps(component["props"], result, null);
37
37
  }
38
- if (!result["_hidden"] && !result["array_structures"].includes("bookshop_components")) {
39
- result["array_structures"].push("bookshop_components");
38
+ if (!result["_hidden"] && !result["structures"].includes("bookshop_components")) {
39
+ result["structures"].push("bookshop_components");
40
40
  }
41
41
 
42
42
  const results = [result];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bookshop/cloudcannon-structures",
3
- "version": "2.0.0-beta.34",
3
+ "version": "2.0.0-beta.38",
4
4
  "description": "Convert a Bookshop object into a CloudCannon structure",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -16,8 +16,8 @@
16
16
  "access": "public"
17
17
  },
18
18
  "devDependencies": {
19
- "@bookshop/toml-narrator": "2.0.0-beta.34",
20
- "@ltd/j-toml": "1.15.0",
19
+ "@bookshop/toml-narrator": "2.0.0-beta.38",
20
+ "@ltd/j-toml": "^1.17.0",
21
21
  "ava": "^3.15.0",
22
22
  "nyc": "^15.1.0",
23
23
  "pluralize": "^8.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bookshop/toml-narrator",
3
- "version": "2.0.0-beta.34",
3
+ "version": "2.0.0-beta.38",
4
4
  "description": "Rewrite Bookshop TOML files to preserve comments",
5
5
  "main": "main.js",
6
6
  "scripts": {
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.0.pre.beta.34
4
+ version: 2.0.0.pre.beta.38
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-09-29 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll