cloudcannon-jekyll-bookshop 2.0.0.pre.beta.36 → 2.0.0.pre.beta.40

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: 955f7433b08f1f7cc6aa49cf9f4848548429752a89239c2ea35b945034a83b19
4
- data.tar.gz: 91762bc2aee21852300f1f145e6c8a604580805348554b916b5416c50f4193b0
3
+ metadata.gz: 2da5d0a00c047ea61c484b7c9cfe4123dfb8ac05e776f4a4d2624de43250d994
4
+ data.tar.gz: 99279fd73dd13d36c9c87a1e460a87e5150b1e7cbe331390733219b2d1a8aa51
5
5
  SHA512:
6
- metadata.gz: 77c855d0c0f5f814ae31b4fe00b829d04077b2d76365d8efaab8970534a425082200faede0af910ee5dee762604b513421b0eb737a01e79692267573f5e672ab
7
- data.tar.gz: 2a8fa05ac9d681a6ec74c694569d20a5c6ea90e15fdb8f92c3f34a737cb6b5672f8ad5efe48357cb93da7354465727ff517ab84a5f2bc25de8666dee822fde60
6
+ metadata.gz: 22c767c7ba5d81a310bd23b946fcd97d53bb39d9f9614e808247492ffd7154a8ae48bde7a37a9850f71bf6d13f52910cf6dacd1b7089720a4b0bf8206411900f
7
+ data.tar.gz: 3297efba44099de288f6d10903e6faaa0fa7f015839f99f6e5a7a322feade5ef92505b3a5de10b209130cb97c4456c8a7f5a9039288e0a032449b8d98b1fc361
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.36)
4
+ cloudcannon-jekyll-bookshop (2.0.0.pre.beta.40)
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.36"
4
+ VERSION = "2.0.0.pre.beta.40"
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.36",
3
+ "version": "2.0.0-beta.40",
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.36",
19
+ "@bookshop/toml-narrator": "2.0.0-beta.40",
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.36",
3
+ "version": "2.0.0-beta.40",
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.36
4
+ version: 2.0.0.pre.beta.40
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-01 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