govuk_publishing_components 17.3.0 → 17.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8d0ab99194724645bf31d90bd97f382c7d96eb78ba3124212ef67841e26eaa9
4
- data.tar.gz: 46acbcb1849d70d4d39435d895dad649c6f9fd2b2ed0b98d4f25cb3c590e98c0
3
+ metadata.gz: f74555cbc99898cc99da56e738c172a3522f8a79a1d57cd47f5f26e2b5c08699
4
+ data.tar.gz: 0cae21f794ae2cb5f819e3faa8de62b04f494dd1f2166174c4ed264026b6cbbf
5
5
  SHA512:
6
- metadata.gz: 3aff26f7fe04fe35df73df9035f803b0f4841fca31f4bfd278f10cdeadb171738e451ad650063affe6ec56b5876a74542b2409c795e025edf252b4dd795e24a9
7
- data.tar.gz: 72aefb086c9c5f7de2168dc545ae3c14da0d36c90b34aa0d3540f32804e7ca23049108232c8708a1371b225e5d254fa010f46916edec10c6f16db0112613c0e5
6
+ metadata.gz: 0a0a4afa889ad9b55a659396875b006f9d7ec83e42ac8d333fb932b6bb753007e8a1c588d7f2c482ae5404919809fbeddcd83390d72e979ec0be06a657006fc8
7
+ data.tar.gz: 222e58f5909090c38f06705091cd485478e7950ee15880f1d0baa8722279fcf421e99287c1a2e79337e36fba39c641e4e0c03abd9672df211075594c2bd1398e
@@ -1,5 +1,6 @@
1
1
  <% navigation = GovukPublishingComponents::Presenters::ContextualNavigation.new(content_item, request) %>
2
2
  <% prioritise_taxon_breadcrumbs ||= false %>
3
+ <% inverse ||= false %>
3
4
 
4
5
  <div class='gem-c-contextual-breadcrumbs'>
5
6
  <% if navigation.content_tagged_to_current_step_by_step? %>
@@ -8,27 +9,29 @@
8
9
  navigation.step_nav_helper.header %>
9
10
  <% elsif navigation.content_tagged_to_a_finder? %>
10
11
  <%# Rendering finder breadcrumbs because the page is tagged to a finder %>
11
- <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
12
+ <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs, inverse: inverse %>
12
13
  <% elsif navigation.content_is_tagged_to_a_live_taxon? && prioritise_taxon_breadcrumbs %>
13
14
  <%# Rendering taxonomy breadcrumbs because the page is tagged to live taxons
14
15
  and we want to prioritise them over all other breadcrumbs %>
15
16
  <%= render 'govuk_publishing_components/components/breadcrumbs',
16
17
  breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs],
17
- collapse_on_mobile: true %>
18
+ collapse_on_mobile: true,
19
+ inverse: inverse %>
18
20
  <% elsif navigation.content_tagged_to_mainstream_browse_pages? %>
19
21
  <%# Rendering parent-based breadcrumbs because the page is tagged to mainstream browse %>
20
- <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
22
+ <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs, inverse: inverse %>
21
23
  <% elsif navigation.content_has_curated_related_items? %>
22
24
  <%# Rendering parent-based breadcrumbs because the page has curated related links %>
23
- <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
25
+ <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs, inverse: inverse %>
24
26
  <% elsif navigation.content_is_tagged_to_a_live_taxon? && !navigation.content_is_a_specialist_document? %>
25
27
  <%# Rendering taxonomy breadcrumbs because the page is tagged to live taxons %>
26
28
  <%= render 'govuk_publishing_components/components/breadcrumbs',
27
29
  breadcrumbs: navigation.taxon_breadcrumbs[:breadcrumbs],
28
- collapse_on_mobile: true %>
30
+ collapse_on_mobile: true,
31
+ inverse: inverse %>
29
32
  <% elsif navigation.breadcrumbs.any? %>
30
33
  <%# Rendering parent-based breadcrumbs because no browse, no related links, no live taxons %>
31
- <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs %>
34
+ <%= render 'govuk_publishing_components/components/breadcrumbs', breadcrumbs: navigation.breadcrumbs, inverse: inverse %>
32
35
  <% else %>
33
36
  <%# Not rendering any breadcrumbs because there aren't any %>
34
37
  <% end %>
@@ -24,3 +24,11 @@ examples:
24
24
  data:
25
25
  content_item:
26
26
  title: "A content item"
27
+ inverse:
28
+ description: Passes the 'inverse' option to the breadcrumbs, if shown.
29
+ data:
30
+ content_item:
31
+ title: "Another content item"
32
+ inverse: true
33
+ context:
34
+ dark_background: true
@@ -462,6 +462,41 @@ examples:
462
462
  Expand the step by step in the querystring
463
463
 
464
464
  Show a list of the other step by steps (including other step by steps that have been marked as "hidden") under an "Also part of" heading, if the content item is part of less than 5 step by step journeys
465
+
466
+ Changes to the rules when there is a secondary step by step linked:
467
+
468
+ 1. Content item is part of one step by step
469
+
470
+ No change. Expand the step by step in the sidebar.
471
+
472
+ 2. Content item is part of multiple step by steps and no secondary step by step
473
+
474
+ No change. Will show a list of primary step by steps under the "Part of" heading. Secondary step by steps will not be shown.
475
+
476
+ 3. User is on a step by step journey (the query string is in the url)
477
+
478
+ No change. Active step by step will be expanded.
479
+
480
+ 4. Content item is part of multiple primary step by steps and a single secondary step by step
481
+
482
+ No change. Show "Part of" step by steps list. Secondary step by step won't be shown.
483
+
484
+ 5. Content item is part of multiple step by steps and multiple secondary step by steps
485
+
486
+ No change. Show "Part of" step by step list. Secondary step by step won't be shown.
487
+
488
+ 6. Step by step is marked as "hidden" for the content page
489
+
490
+ No change. "Also part of" component will only show when an active step by step is shown.
491
+
492
+ 7. Content item is part of one secondary step by step and no other step by steps are linked.
493
+
494
+ Show secondary step by step expanded.
495
+
496
+ 8. Content item is part of multiple secondary step by steps and no other step by steps are linked.
497
+
498
+ Show secondary step by step list in "Part of" component.
499
+
465
500
  data:
466
501
  tracking_id: "this-is-the-content-id"
467
502
  steps: [
@@ -21,18 +21,30 @@ module GovukPublishingComponents
21
21
  end
22
22
  end
23
23
 
24
+ def secondary_step_by_steps
25
+ @secondary_step_by_steps ||= parsed_secondary_to_step_navs.map do |step_nav|
26
+ StepByStepModel.new(step_nav)
27
+ end
28
+ end
29
+
24
30
  def show_sidebar?
25
31
  show_header? && current_step_nav.steps.present?
26
32
  end
27
33
 
28
34
  def show_header?
29
- step_navs.count == 1 || active_step_by_step?
35
+ step_navs.count == 1 || active_step_by_step? || show_secondary_step_by_step?
30
36
  end
31
37
 
32
38
  def show_related_links?
33
- return true if active_step_by_step?
34
-
35
- step_navs.any? && step_navs.count < 5
39
+ if active_step_by_step?
40
+ true
41
+ elsif step_navs.any? && step_navs.count < 5
42
+ true
43
+ elsif show_related_links_for_secondary_step_by_steps?
44
+ true
45
+ else
46
+ false
47
+ end
36
48
  end
37
49
 
38
50
  def show_also_part_of_step_nav?
@@ -40,7 +52,16 @@ module GovukPublishingComponents
40
52
  end
41
53
 
42
54
  def related_links
43
- step_by_step_navs = active_step_by_step? ? [active_step_by_step] : step_navs
55
+ step_by_step_navs = if active_step_by_step?
56
+ [active_step_by_step]
57
+ elsif step_navs.any?
58
+ step_navs
59
+ elsif show_related_links_for_secondary_step_by_steps?
60
+ secondary_step_by_steps
61
+ else
62
+ []
63
+ end
64
+
44
65
  format_related_links(step_by_step_navs)
45
66
  end
46
67
 
@@ -71,6 +92,10 @@ module GovukPublishingComponents
71
92
  end
72
93
  end
73
94
 
95
+ def primary_step_by_steps?
96
+ step_navs_combined_list.any?
97
+ end
98
+
74
99
  def active_step_by_step?
75
100
  active_step_nav_content_id.present? && active_step_by_step.present?
76
101
  end
@@ -81,14 +106,34 @@ module GovukPublishingComponents
81
106
  @active_step_navs.first
82
107
  end
83
108
 
109
+ def secondary_step_by_step?
110
+ secondary_step_by_steps.any?
111
+ end
112
+
113
+ def secondary_step_by_step
114
+ secondary_step_by_steps.first
115
+ end
116
+
117
+ def show_secondary_step_by_step?
118
+ !primary_step_by_steps? && secondary_step_by_step? && secondary_step_by_steps.count === 1
119
+ end
120
+
121
+ def show_related_links_for_secondary_step_by_steps?
122
+ !primary_step_by_steps? && secondary_step_by_step? && secondary_step_by_steps.count < 5
123
+ end
124
+
84
125
  private
85
126
 
86
127
  attr_reader :content_item, :current_path
87
128
 
88
129
  def current_step_nav
89
- return active_step_by_step if active_step_by_step?
90
-
91
- step_navs.first
130
+ if active_step_by_step?
131
+ active_step_by_step
132
+ elsif primary_step_by_steps?
133
+ step_navs.first
134
+ elsif show_secondary_step_by_step?
135
+ secondary_step_by_step
136
+ end
92
137
  end
93
138
 
94
139
  def active_step_nav_content_id
@@ -114,6 +159,10 @@ module GovukPublishingComponents
114
159
  content_item.dig("links", "related_to_step_navs").to_a
115
160
  end
116
161
 
162
+ def parsed_secondary_to_step_navs
163
+ content_item.dig("links", "secondary_to_step_navs").to_a
164
+ end
165
+
117
166
  def configure_for_sidebar(step_nav_content)
118
167
  step_nav_content[:steps].each_with_index do |step, step_index|
119
168
  step[:contents].each do |content|
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '17.3.0'.freeze
2
+ VERSION = '17.4.0'.freeze
3
3
  end
@@ -49,7 +49,7 @@
49
49
  "/"
50
50
  ],
51
51
  "_resolved": "git://github.com/alphagov/accessible-autocomplete.git#3523dd9fffc70cbd9f6f555f75863c33a709f49e",
52
- "_shasum": "bf260bba0f5f18e54c3836452236c44d88b9c40f",
52
+ "_shasum": "1f82cdc1b1cad76bb13f8388b6894d1bb2515441",
53
53
  "_shrinkwrap": null,
54
54
  "_spec": "accessible-autocomplete@git://github.com/alphagov/accessible-autocomplete.git#add-multiselect-support",
55
55
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ",
@@ -1,7 +1,9 @@
1
1
  try {
2
2
  var util = require('util');
3
+ /* istanbul ignore next */
3
4
  if (typeof util.inherits !== 'function') throw '';
4
5
  module.exports = util.inherits;
5
6
  } catch (e) {
7
+ /* istanbul ignore next */
6
8
  module.exports = require('./inherits_browser.js');
7
9
  }
@@ -1,23 +1,27 @@
1
1
  if (typeof Object.create === 'function') {
2
2
  // implementation from standard node.js 'util' module
3
3
  module.exports = function inherits(ctor, superCtor) {
4
- ctor.super_ = superCtor
5
- ctor.prototype = Object.create(superCtor.prototype, {
6
- constructor: {
7
- value: ctor,
8
- enumerable: false,
9
- writable: true,
10
- configurable: true
11
- }
12
- });
4
+ if (superCtor) {
5
+ ctor.super_ = superCtor
6
+ ctor.prototype = Object.create(superCtor.prototype, {
7
+ constructor: {
8
+ value: ctor,
9
+ enumerable: false,
10
+ writable: true,
11
+ configurable: true
12
+ }
13
+ })
14
+ }
13
15
  };
14
16
  } else {
15
17
  // old school shim for old browsers
16
18
  module.exports = function inherits(ctor, superCtor) {
17
- ctor.super_ = superCtor
18
- var TempCtor = function () {}
19
- TempCtor.prototype = superCtor.prototype
20
- ctor.prototype = new TempCtor()
21
- ctor.prototype.constructor = ctor
19
+ if (superCtor) {
20
+ ctor.super_ = superCtor
21
+ var TempCtor = function () {}
22
+ TempCtor.prototype = superCtor.prototype
23
+ ctor.prototype = new TempCtor()
24
+ ctor.prototype.constructor = ctor
25
+ }
22
26
  }
23
27
  }
@@ -14,19 +14,20 @@
14
14
  ]
15
15
  ],
16
16
  "_from": "inherits@>=2.0.3 <3.0.0",
17
- "_id": "inherits@2.0.3",
17
+ "_hasShrinkwrap": false,
18
+ "_id": "inherits@2.0.4",
18
19
  "_inCache": true,
19
20
  "_location": "/inherits",
20
- "_nodeVersion": "6.5.0",
21
+ "_nodeVersion": "12.3.1",
21
22
  "_npmOperationalInternal": {
22
- "host": "packages-16-east.internal.npmjs.com",
23
- "tmp": "tmp/inherits-2.0.3.tgz_1473295776489_0.08142363070510328"
23
+ "host": "s3://npm-registry-packages",
24
+ "tmp": "tmp/inherits_2.0.4_1560975532337_0.07791065184845936"
24
25
  },
25
26
  "_npmUser": {
26
27
  "name": "isaacs",
27
28
  "email": "i@izs.me"
28
29
  },
29
- "_npmVersion": "3.10.7",
30
+ "_npmVersion": "6.9.0",
30
31
  "_phantomChildren": {},
31
32
  "_requested": {
32
33
  "raw": "inherits@^2.0.3",
@@ -40,11 +41,10 @@
40
41
  "_requiredBy": [
41
42
  "/concat-stream",
42
43
  "/glob",
43
- "/readable-stream",
44
- "/util"
44
+ "/readable-stream"
45
45
  ],
46
- "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
47
- "_shasum": "633c2c83e3da42a502f52466022480f4208261de",
46
+ "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
47
+ "_shasum": "0fa2c64f932917c3433a0ded55363aae37416b7c",
48
48
  "_shrinkwrap": null,
49
49
  "_spec": "inherits@^2.0.3",
50
50
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ/node_modules/concat-stream",
@@ -55,18 +55,18 @@
55
55
  "dependencies": {},
56
56
  "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
57
57
  "devDependencies": {
58
- "tap": "^7.1.0"
58
+ "tap": "^14.2.4"
59
59
  },
60
60
  "directories": {},
61
61
  "dist": {
62
- "shasum": "633c2c83e3da42a502f52466022480f4208261de",
63
- "tarball": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz"
62
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
63
+ "shasum": "0fa2c64f932917c3433a0ded55363aae37416b7c",
64
+ "tarball": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
65
+ "fileCount": 5,
66
+ "unpackedSize": 3958,
67
+ "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCpisCRA9TVsSAnZWagAA34wP/R7/M+OPDguEHhSTBFwm\nyr5qskotwW0egz8MlwqkYJnKmkNMGVwH2ciD0+mzkoomD+iUf9cAI6qjAT+p\n2b+qFTikQpScNZRMKnMF+f5Jf0X6IVS03tojFm2i9BSxD0DL7fRoNLw/3seH\nO/5vYeiQUq0Ojx3AY4hf31AQTfBlZ7pohiE6BNAYWBXWpCq2c3uENGaeiwxk\nnmTL/fUs8RRubjrqW5Bwpi+PZrkmwcL+Te/juGLP1Ef52BDjaeVk1e9YlNtJ\nX++I+HyVR0Kb4pYyBO/iRE1ifanLmGm70PsBFUmwAAq21FGhFH/cfAeoRJo7\n3MuW5+W8n2BmJKwpngGIf/92SWJP9Ww1Vo1Lo11fpwGjPjF4RiFkD81+GDSI\n6LXikSQRmGS+6FIrkXDKZ45ir8K3tGw6peXr/fq1FmzicySGRd8gFpAZIxCw\nLIM7YXBonoGsG8p/LqG6rTfmC3ymOR8R+WH5NGeMXkRw08KJED5nMkSp5b4I\nIRenKnfIZgz+daoFE8p/W6KtTz+Ac1pMou9vnSa3B7YZjr1y6B6B3PLDq3kC\nyZZWvv3u78F8u8WkVS8iA8BvEO6aPcENzQcT61P4h0r8mitpLmvKN2+WViLV\nowBn8STKGeuXImHwPgY6Et6U29r9ec1Y01YNNf8Qfd03eNhroDFKBsC3rPGU\nT9HJ\r\n=18y6\r\n-----END PGP SIGNATURE-----\r\n"
64
68
  },
65
- "files": [
66
- "inherits.js",
67
- "inherits_browser.js"
68
- ],
69
- "gitHead": "e05d0fb27c61a3ec687214f0476386b765364d5f",
69
+ "gitHead": "9a2c29400c6d491e0b7beefe0c32efa3b462545d",
70
70
  "homepage": "https://github.com/isaacs/inherits#readme",
71
71
  "keywords": [
72
72
  "inheritance",
@@ -94,7 +94,7 @@
94
94
  "url": "git://github.com/isaacs/inherits.git"
95
95
  },
96
96
  "scripts": {
97
- "test": "node test"
97
+ "test": "tap"
98
98
  },
99
- "version": "2.0.3"
99
+ "version": "2.0.4"
100
100
  }
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- if (!process.version ||
3
+ if (typeof process === 'undefined' ||
4
+ !process.version ||
4
5
  process.version.indexOf('v0.') === 0 ||
5
6
  process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
6
7
  module.exports = { nextTick: nextTick };
@@ -14,19 +14,20 @@
14
14
  ]
15
15
  ],
16
16
  "_from": "process-nextick-args@>=2.0.0 <2.1.0",
17
- "_id": "process-nextick-args@2.0.0",
17
+ "_hasShrinkwrap": false,
18
+ "_id": "process-nextick-args@2.0.1",
18
19
  "_inCache": true,
19
20
  "_location": "/process-nextick-args",
20
- "_nodeVersion": "8.6.0",
21
+ "_nodeVersion": "10.15.0",
21
22
  "_npmOperationalInternal": {
22
23
  "host": "s3://npm-registry-packages",
23
- "tmp": "tmp/process-nextick-args-2.0.0.tgz_1513027423688_0.4807069287635386"
24
+ "tmp": "tmp/process-nextick-args_2.0.1_1560976479045_0.30434079670500513"
24
25
  },
25
26
  "_npmUser": {
26
27
  "name": "cwmma",
27
28
  "email": "calvin.metcalf@gmail.com"
28
29
  },
29
- "_npmVersion": "5.5.1",
30
+ "_npmVersion": "6.9.0",
30
31
  "_phantomChildren": {},
31
32
  "_requested": {
32
33
  "raw": "process-nextick-args@~2.0.0",
@@ -40,8 +41,8 @@
40
41
  "_requiredBy": [
41
42
  "/readable-stream"
42
43
  ],
43
- "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
44
- "_shasum": "a37d732f4271b4ab1ad070d35508e8290788ffaa",
44
+ "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
45
+ "_shasum": "7820d9b16120cc55ca9ae7792680ae7dba6d7fe2",
45
46
  "_shrinkwrap": null,
46
47
  "_spec": "process-nextick-args@~2.0.0",
47
48
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ/node_modules/readable-stream",
@@ -56,14 +57,14 @@
56
57
  },
57
58
  "directories": {},
58
59
  "dist": {
59
- "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
60
- "shasum": "a37d732f4271b4ab1ad070d35508e8290788ffaa",
61
- "tarball": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz"
60
+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
61
+ "shasum": "7820d9b16120cc55ca9ae7792680ae7dba6d7fe2",
62
+ "tarball": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
63
+ "fileCount": 4,
64
+ "unpackedSize": 3175,
65
+ "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCpxfCRA9TVsSAnZWagAA2wUQAJE/zQojeYBtJTNHDGq7\ntlqxR0qbiugyY02+BV/s6cTIRG7uCAwpyWelDotgFeE5IfxoLNOLuRtc5y5w\nZr/xlgT5KxchI87af3FpNTB2Y/0+lKDjbSdj0k+Mz8IjxwUtBdt/8yqH89EF\nxOE+H9WCjL94tqDrnaPAXfIo84m0FLUA5hneNrJqmhXGfC/a7ncO5x1AmBDj\nPGV0pyS4XxuUEsV2KSx2Fy2pXxsI01mxq7nAeOwNPb20XbPbGhzTU9eLOzAJ\nMggd+bKbuDdxCFdf/CQ76d9Gz2T6fxjHNsKrw7AYcfrTi6bLQQKBpeN5KE7i\nagIYpzq2HWsjhrClsm1TQNbV8SWQR2OhbgDdMKn8OkIsvQGKJpJbW6I+m1va\nTd4Gc9i1dIweSjvS2g/iaVdm2E0EWhU9tSH7SnKKmEOBCsWsGW5XJQP7W+sO\nKuxicRik6vCGyaMrZz83blayXuXGWPSP9uDt0/2MINRefJTTusWaSikZxyQn\nZ0uqV9Li6WEEWALHQf3NtlAq49U0w/NN9jRPI2iViPdf4Q/cyf/Fwp5PmVKt\nFYx9V7me9XNCxu1kBlx7ZkbZW0M0eEuLYW8J2hNMiJjuksUr0mOlXjSKwMGf\nru2wMy7dCU+zVeA65QtGPSSfMOrATVzjbRWuXkR3xAmv3bJmbMIn1IG/rtSr\nnc/W\r\n=K8U9\r\n-----END PGP SIGNATURE-----\r\n"
62
66
  },
63
- "files": [
64
- "index.js"
65
- ],
66
- "gitHead": "8407900951af3e7651fca50f127f0e4ddc01ad55",
67
+ "gitHead": "b96d59913025441b00c4fd40e6894ddfa8e1c398",
67
68
  "homepage": "https://github.com/calvinmetcalf/process-nextick-args",
68
69
  "license": "MIT",
69
70
  "main": "index.js",
@@ -83,5 +84,5 @@
83
84
  "scripts": {
84
85
  "test": "node test.js"
85
86
  },
86
- "version": "2.0.0"
87
+ "version": "2.0.1"
87
88
  }
@@ -0,0 +1,16 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+
@@ -0,0 +1,42 @@
1
+ Browser-friendly inheritance fully compatible with standard node.js
2
+ [inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
3
+
4
+ This package exports standard `inherits` from node.js `util` module in
5
+ node environment, but also provides alternative browser-friendly
6
+ implementation through [browser
7
+ field](https://gist.github.com/shtylman/4339901). Alternative
8
+ implementation is a literal copy of standard one located in standalone
9
+ module to avoid requiring of `util`. It also has a shim for old
10
+ browsers with no `Object.create` support.
11
+
12
+ While keeping you sure you are using standard `inherits`
13
+ implementation in node.js environment, it allows bundlers such as
14
+ [browserify](https://github.com/substack/node-browserify) to not
15
+ include full `util` package to your client code if all you need is
16
+ just `inherits` function. It worth, because browser shim for `util`
17
+ package is large and `inherits` is often the single function you need
18
+ from it.
19
+
20
+ It's recommended to use this package instead of
21
+ `require('util').inherits` for any code that has chances to be used
22
+ not only in node.js but in browser too.
23
+
24
+ ## usage
25
+
26
+ ```js
27
+ var inherits = require('inherits');
28
+ // then use exactly as the standard one
29
+ ```
30
+
31
+ ## note on version ~1.0
32
+
33
+ Version ~1.0 had completely different motivation and is not compatible
34
+ neither with 2.0 nor with standard node.js `inherits`.
35
+
36
+ If you are using version ~1.0 and planning to switch to ~2.0, be
37
+ careful:
38
+
39
+ * new version uses `super_` instead of `super` for referencing
40
+ superclass
41
+ * new version overwrites current prototype while old one preserves any
42
+ existing fields on it
@@ -0,0 +1,7 @@
1
+ try {
2
+ var util = require('util');
3
+ if (typeof util.inherits !== 'function') throw '';
4
+ module.exports = util.inherits;
5
+ } catch (e) {
6
+ module.exports = require('./inherits_browser.js');
7
+ }
@@ -0,0 +1,23 @@
1
+ if (typeof Object.create === 'function') {
2
+ // implementation from standard node.js 'util' module
3
+ module.exports = function inherits(ctor, superCtor) {
4
+ ctor.super_ = superCtor
5
+ ctor.prototype = Object.create(superCtor.prototype, {
6
+ constructor: {
7
+ value: ctor,
8
+ enumerable: false,
9
+ writable: true,
10
+ configurable: true
11
+ }
12
+ });
13
+ };
14
+ } else {
15
+ // old school shim for old browsers
16
+ module.exports = function inherits(ctor, superCtor) {
17
+ ctor.super_ = superCtor
18
+ var TempCtor = function () {}
19
+ TempCtor.prototype = superCtor.prototype
20
+ ctor.prototype = new TempCtor()
21
+ ctor.prototype.constructor = ctor
22
+ }
23
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "_args": [
3
+ [
4
+ {
5
+ "raw": "inherits@2.0.3",
6
+ "scope": null,
7
+ "escapedName": "inherits",
8
+ "name": "inherits",
9
+ "rawSpec": "2.0.3",
10
+ "spec": "2.0.3",
11
+ "type": "version"
12
+ },
13
+ "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ/node_modules/util"
14
+ ]
15
+ ],
16
+ "_from": "inherits@2.0.3",
17
+ "_id": "inherits@2.0.3",
18
+ "_inCache": true,
19
+ "_location": "/util/inherits",
20
+ "_nodeVersion": "6.5.0",
21
+ "_npmOperationalInternal": {
22
+ "host": "packages-16-east.internal.npmjs.com",
23
+ "tmp": "tmp/inherits-2.0.3.tgz_1473295776489_0.08142363070510328"
24
+ },
25
+ "_npmUser": {
26
+ "name": "isaacs",
27
+ "email": "i@izs.me"
28
+ },
29
+ "_npmVersion": "3.10.7",
30
+ "_phantomChildren": {},
31
+ "_requested": {
32
+ "raw": "inherits@2.0.3",
33
+ "scope": null,
34
+ "escapedName": "inherits",
35
+ "name": "inherits",
36
+ "rawSpec": "2.0.3",
37
+ "spec": "2.0.3",
38
+ "type": "version"
39
+ },
40
+ "_requiredBy": [
41
+ "/util"
42
+ ],
43
+ "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
44
+ "_shasum": "633c2c83e3da42a502f52466022480f4208261de",
45
+ "_shrinkwrap": null,
46
+ "_spec": "inherits@2.0.3",
47
+ "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ/node_modules/util",
48
+ "browser": "./inherits_browser.js",
49
+ "bugs": {
50
+ "url": "https://github.com/isaacs/inherits/issues"
51
+ },
52
+ "dependencies": {},
53
+ "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
54
+ "devDependencies": {
55
+ "tap": "^7.1.0"
56
+ },
57
+ "directories": {},
58
+ "dist": {
59
+ "shasum": "633c2c83e3da42a502f52466022480f4208261de",
60
+ "tarball": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz"
61
+ },
62
+ "files": [
63
+ "inherits.js",
64
+ "inherits_browser.js"
65
+ ],
66
+ "gitHead": "e05d0fb27c61a3ec687214f0476386b765364d5f",
67
+ "homepage": "https://github.com/isaacs/inherits#readme",
68
+ "keywords": [
69
+ "inheritance",
70
+ "class",
71
+ "klass",
72
+ "oop",
73
+ "object-oriented",
74
+ "inherits",
75
+ "browser",
76
+ "browserify"
77
+ ],
78
+ "license": "ISC",
79
+ "main": "./inherits.js",
80
+ "maintainers": [
81
+ {
82
+ "name": "isaacs",
83
+ "email": "i@izs.me"
84
+ }
85
+ ],
86
+ "name": "inherits",
87
+ "optionalDependencies": {},
88
+ "readme": "ERROR: No README data found!",
89
+ "repository": {
90
+ "type": "git",
91
+ "url": "git://github.com/isaacs/inherits.git"
92
+ },
93
+ "scripts": {
94
+ "test": "node test"
95
+ },
96
+ "version": "2.0.3"
97
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.3.0
4
+ version: 17.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters
@@ -10797,6 +10797,11 @@ files:
10797
10797
  - node_modules/util-deprecate/package.json
10798
10798
  - node_modules/util/LICENSE
10799
10799
  - node_modules/util/README.md
10800
+ - node_modules/util/node_modules/inherits/LICENSE
10801
+ - node_modules/util/node_modules/inherits/README.md
10802
+ - node_modules/util/node_modules/inherits/inherits.js
10803
+ - node_modules/util/node_modules/inherits/inherits_browser.js
10804
+ - node_modules/util/node_modules/inherits/package.json
10800
10805
  - node_modules/util/package.json
10801
10806
  - node_modules/util/support/isBuffer.js
10802
10807
  - node_modules/util/support/isBufferBrowser.js