cloudcannon-jekyll-bookshop 2.0.0.pre.beta.37 → 2.0.0.pre.beta.41

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: fa0fc6cfc97d3aba7aaf171502ac48bb2cf6dc0e819a3a8dcbf3523c5a9932f3
4
- data.tar.gz: 495dfd800574adea70478c54c5a53d2658e41286d4450a5fd5ab4bc8bb81f563
3
+ metadata.gz: b8a43c880675addd3e785d46f3d517d497e25fdc12aa38aabbaa10be559a6620
4
+ data.tar.gz: e13f34a634080907df956e25cc6f3d5517655f5b36e8a223d83cc4a4fd6cc8a4
5
5
  SHA512:
6
- metadata.gz: 619a3b533cd9e5da628d2e8d119cda125e87c48f39c5d708c8a9d375483bfcf57d1e2054e1cf8ececb0ccc6e888c9d5652ad46f561a07881570ac7e822a1df1f
7
- data.tar.gz: aab3c91f4faf943354da0181040a9112e0495acef3ee4c52f55f93d9a6bbb02bccf596b88fe4cd12dafa1b00774633ed70a39667b3540ad60eba65c0866a7057
6
+ metadata.gz: 87ae15232cb073cd6fc560f9f627b105ed05780e96028910d4699b49b559845a46df20d20a468126969bfcb5d3ac42d7ded910db4b9e468d7f7efcdffb2d6b12
7
+ data.tar.gz: a9ea515a8b18a8c99f8e9117e30c7bdf2d19bbcd62e046792b7f71ab8bbaea72a9fe73693de6f51d166b95b3d07bb714f24f66f0a982506cdc4eac970027ef6e
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.37)
4
+ cloudcannon-jekyll-bookshop (2.0.0.pre.beta.41)
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.37"
4
+ VERSION = "2.0.0.pre.beta.41"
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.37",
3
+ "version": "2.0.0-beta.41",
4
4
  "description": "Convert a Bookshop object into a CloudCannon structure",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "access": "public"
17
17
  },
18
18
  "devDependencies": {
19
- "@bookshop/toml-narrator": "2.0.0-beta.37",
19
+ "@bookshop/toml-narrator": "2.0.0-beta.41",
20
20
  "@ltd/j-toml": "^1.17.0",
21
21
  "ava": "^3.15.0",
22
22
  "nyc": "^15.1.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bookshop/toml-narrator",
3
- "version": "2.0.0-beta.37",
3
+ "version": "2.0.0-beta.41",
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.37
4
+ version: 2.0.0.pre.beta.41
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-03 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll