@adobe/helix-html-pipeline 1.8.3 → 1.8.5

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.8.5](https://github.com/adobe/helix-html-pipeline/compare/v1.8.4...v1.8.5) (2022-10-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency github-slugger to v2 (1.x) ([#177](https://github.com/adobe/helix-html-pipeline/issues/177)) ([fc42ffb](https://github.com/adobe/helix-html-pipeline/commit/fc42ffbec5daea2a9547bd58cf5c7b6ba489d153))
7
+
8
+ ## [1.8.4](https://github.com/adobe/helix-html-pipeline/compare/v1.8.3...v1.8.4) (2022-10-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * trim spaces after comma ([#167](https://github.com/adobe/helix-html-pipeline/issues/167)) ([e3e579a](https://github.com/adobe/helix-html-pipeline/commit/e3e579a690c2db7068bc5eabde4e0ce0e49084a3))
14
+
1
15
  ## [1.8.3](https://github.com/adobe/helix-html-pipeline/compare/v1.8.2...v1.8.3) (2022-10-06)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -31,12 +31,12 @@
31
31
  "dependencies": {
32
32
  "@adobe/helix-markdown-support": "5.0.10",
33
33
  "@adobe/helix-shared-utils": "2.1.0",
34
- "github-slugger": "1.4.0",
34
+ "github-slugger": "2.0.0",
35
35
  "hast-util-raw": "7.2.2",
36
36
  "hast-util-select": "5.0.2",
37
37
  "hast-util-to-html": "8.0.3",
38
38
  "hast-util-to-string": "2.0.0",
39
- "hastscript": "7.0.2",
39
+ "hastscript": "7.1.0",
40
40
  "mdast-util-gfm-footnote": "1.0.1",
41
41
  "mdast-util-gfm-strikethrough": "1.0.1",
42
42
  "mdast-util-gfm-table": "1.0.6",
@@ -69,17 +69,17 @@
69
69
  "@semantic-release/git": "10.0.1",
70
70
  "@semantic-release/npm": "9.0.1",
71
71
  "c8": "7.12.0",
72
- "eslint": "8.24.0",
72
+ "eslint": "8.26.0",
73
73
  "eslint-import-resolver-exports": "1.0.0-beta.3",
74
74
  "eslint-plugin-header": "3.1.1",
75
75
  "eslint-plugin-import": "2.26.0",
76
- "esmock": "2.0.4",
76
+ "esmock": "2.0.7",
77
77
  "husky": "8.0.1",
78
78
  "js-yaml": "4.1.0",
79
- "jsdom": "20.0.0",
79
+ "jsdom": "20.0.1",
80
80
  "junit-report-builder": "3.0.1",
81
81
  "lint-staged": "13.0.3",
82
- "mocha": "10.0.0",
82
+ "mocha": "10.1.0",
83
83
  "mocha-multi-reporters": "1.5.1",
84
84
  "remark-gfm": "3.0.1",
85
85
  "semantic-release": "19.0.5"
package/src/forms-pipe.js CHANGED
@@ -130,7 +130,7 @@ export async function formsPipe(state, request) {
130
130
 
131
131
  const sourceLocation = resourceFetchResponse.headers.get('x-amz-meta-x-source-location');
132
132
  const referer = request.headers.get('referer') || 'unknown';
133
- const sheetNames = sheets.split(',');
133
+ const sheetNames = sheets.split(',').map((s) => s.trim());
134
134
 
135
135
  if (!sourceLocation || !sheetNames.includes('incoming')) {
136
136
  return error(log, `Target workbook at ${resourcePath} is not setup to intake data.`, 403, response);
@@ -9,7 +9,7 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
- import GithubSlugger from 'github-slugger';
12
+ import { slug } from 'github-slugger';
13
13
 
14
14
  export class IDSlugger {
15
15
  constructor() {
@@ -22,7 +22,7 @@ export class IDSlugger {
22
22
  * @return {string} A unique slug string
23
23
  */
24
24
  slug(value) {
25
- let id = GithubSlugger.slug(value)
25
+ let id = slug(value)
26
26
  // remove leading numbers
27
27
  .replace(/^\d+-+/, '');
28
28