cloudcannon-jekyll-bookshop 2.0.0.pre.beta.35 → 2.0.0.pre.beta.39

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: c4b2a99daad477032b8880536e848872aabb0e2b5d11569a4d06ced59f223a8a
4
- data.tar.gz: dc452c3d5e0cb1976443a2d5cc6893375d795b9df92a73641d2a6fae764e50c5
3
+ metadata.gz: b03fc5441815182d9ca1af98a485f10a58d77a8a28f8f8af2b2285a8d909d987
4
+ data.tar.gz: ed37ad51622f8d1feff64e0a9b6b9582b1cc9f68bce3c94cc2ec77f5e3656670
5
5
  SHA512:
6
- metadata.gz: 27e463db370a79438c28da58b8e18f582ec06592bbcde0fd8ce787ff0e093fc631627170144880f7e63beb957c10e5ae02fc158341a6fa7c2682a296e32f2fea
7
- data.tar.gz: 15b9edf82b0206c8e0826eeec229c3248a919d0c58e720903196108c6567da08600d3623dc149b555562be5c3cec9f7e5c1faeb59d7d186fa500996bf2696666
6
+ metadata.gz: b32d7218739f96315a329b8a530d80511140febc20ad3e28e36a2dd4ef6ecdbe1eb21278f8ef8269c79dc41206f8cfa938e7657c014d0f86683d2cf89160082a
7
+ data.tar.gz: 6c2b060c3ea555da341dae268ade7f5bfdedc41fde6a1589c81da8eb3feb74274ff603c2a93a27ef4c34b0a284c8de1a08298b7e054bd7dd515e67eff9b5ef21
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.35)
4
+ cloudcannon-jekyll-bookshop (2.0.0.pre.beta.39)
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.35"
4
+ VERSION = "2.0.0.pre.beta.39"
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.35",
3
+ "version": "2.0.0-beta.39",
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.35",
19
+ "@bookshop/toml-narrator": "2.0.0-beta.39",
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.35",
3
+ "version": "2.0.0-beta.39",
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.35
4
+ version: 2.0.0.pre.beta.39
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-30 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