Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
chore(deps): update @adobe (#766)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Tobias Bocanegra <[email protected]>
  • Loading branch information
3 people authored Jun 16, 2020
1 parent 2c85021 commit 404d956
Show file tree
Hide file tree
Showing 20 changed files with 401 additions and 166 deletions.
536 changes: 397 additions & 139 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@adobe/eslint-config-helix": "1.1.1",
"@adobe/helix-testutils": "0.3.1",
"@adobe/eslint-config-helix": "1.1.3",
"@adobe/helix-testutils": "0.3.2",
"@adobe/jsonschema2md": "4.1.3",
"@pollyjs/adapter-fetch": "4.3.0",
"@pollyjs/adapter-node-http": "4.3.0",
Expand Down Expand Up @@ -51,8 +51,8 @@
"unist-util-inspect": "6.0.0"
},
"dependencies": {
"@adobe/helix-epsagon": "1.3.11",
"@adobe/helix-fetch": "1.6.1",
"@adobe/helix-epsagon": "1.3.12",
"@adobe/helix-fetch": "1.6.2",
"@adobe/helix-log": "4.5.1",
"@adobe/helix-shared": "7.6.0",
"@adobe/openwhisk-action-logger": "2.2.0",
Expand Down
1 change: 0 additions & 1 deletion src/html/get-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const {
flat, obj, map, each,
} = require('ferrum');


function yaml(section) {
const yamls = selectAll('yaml', section);
section.meta = obj(flat(map(yamls, ({ payload }) => payload)));
Expand Down
1 change: 0 additions & 1 deletion src/utils/dump-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const path = require('path');
const fs = require('fs-extra');
const { setdefault } = require('ferrum');


/**
* Returns {@code true} if context dumps should never be written to disk.
* @returns {boolean} {@code true} if writing dumps is disabled.
Expand Down
1 change: 0 additions & 1 deletion src/utils/match-section-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class TypeMatcher {
.map(([_, type]) => type);
}


/**
* Turns a content expression into a matcher predicate function
* @private
Expand Down
1 change: 0 additions & 1 deletion src/utils/mdast-to-vdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class VDOMTransformer {
withMdast(mdast) {
this._root = mdast;


return this;
}

Expand Down
1 change: 0 additions & 1 deletion src/xml/set-xml-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function setStatus(context, { logger, request = {} }) {
const headers = setdefault(res, 'headers', {});
const err = context.error;


// if a status is already default, keep it.
if (res.status) {
return;
Expand Down
1 change: 0 additions & 1 deletion test/testConditionalSections.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ describe('Unit Test Section Strain Filtering', () => {
assert.equal(context.content.mdast.children.filter(nonhidden).length, 2);
});


it('Filters strain a', () => {
const context = {
content: {
Expand Down
1 change: 0 additions & 1 deletion test/testDataEmbeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const logger = logging.createTestLogger({
level: 'debug',
});


const crequest = {
extension: 'html',
url: '/test/test.html',
Expand Down
1 change: 0 additions & 1 deletion test/testDownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ describe('Test Download', () => {
forceHttp1: true,
});


await mgr.fetch({
uri: 'https://www.example.com/data',
});
Expand Down
3 changes: 0 additions & 3 deletions test/testEmbedHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const logger = logging.createTestLogger({
level: 'info',
});


const crequest = {
extension: 'html',
url: '/test/test.html',
Expand All @@ -86,7 +85,6 @@ describe('Test Embed Handler', () => {
const action = { logger };
await coerce(action);


embed(action.secrets)((_, tagname, parameters, children) => {
assert.equal(parameters.src, 'https://adobeioruntime.net/api/v1/web/helix/helix-services/embed@v1/https://www.example.com/');
assert.equal(children, undefined);
Expand All @@ -95,7 +93,6 @@ describe('Test Embed Handler', () => {
});
});


describe('Integration Test with Embeds', () => {
it('html.pipe does not blow up "embeds" from Helix Not Slides when seeing mailto links', async () => {
const result = await pipe(
Expand Down
2 changes: 0 additions & 2 deletions test/testFetchContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe('Testing fetch content', () => {
.get('/api/v1/web/helix/helix-services/content-proxy@v1?owner=adobe&repo=test-repo&path=%2Fhello.md&ref=master&REPO_RAW_ROOT=https%3A%2F%2Ffrozen.githubusercontent.com/')
.reply(() => [200, '# Hello\nfrom github.\n\n---\n\n# Bar']);


action.downloader = new Downloader(context, action, { forceHttp1: true });
action.secrets.REPO_RAW_ROOT = 'https://frozen.githubusercontent.com/';

Expand Down Expand Up @@ -152,7 +151,6 @@ describe('Testing fetch content', () => {
.get('/adobe/test-repo/master/hello.md')
.reply(() => [200, '# Hello\nfrom github.\n\n---\n\n# Bar']);


action.downloader = new Downloader(context, action, { forceHttp1: true });
action.secrets.REPO_RAW_ROOT = 'http://localhost:1234/';

Expand Down
1 change: 0 additions & 1 deletion test/testFetchMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ describe('Test requests', () => {
});
});


describe('Test misbehaved HTTP Responses', () => {
setupPolly({
recordFailedRequests: false,
Expand Down
2 changes: 0 additions & 2 deletions test/testHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ const secrets = {
REPO_RAW_ROOT: 'https://raw.githubusercontent.com/',
};


const crequest = {
extension: 'html',
url: '/test/test.html',
Expand Down Expand Up @@ -243,7 +242,6 @@ describe('Testing HTML Pipeline', () => {
</body></html>`);
});


it('html.pipe keeps double ESI tags', async () => {
const result = await pipe(
(context) => {
Expand Down
1 change: 0 additions & 1 deletion test/testHTMLOverrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const secrets = {
REPO_RAW_ROOT: 'https://raw.githubusercontent.com/',
};


const crequest = {
extension: 'html',
url: '/test/test.html',
Expand Down
2 changes: 0 additions & 2 deletions test/testHTMLProduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const secrets = {
REPO_RAW_ROOT: 'https://raw.githubusercontent.com/',
};


const crequest = {
extension: 'html',
url: '/test/test.html',
Expand All @@ -83,7 +82,6 @@ describe('Testing HTML Pipeline in Production', () => {
process.env.__OW_ACTIVATION_ID = 'fake';
});


it('html.pipe adds headers from meta and link tags', async () => {
const result = await pipe(
(context) => {
Expand Down
1 change: 0 additions & 1 deletion test/testPipeWithMarkupConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ describe('Testing HTML Pipeline with markup config', () => {
.get('/api/v1/web/helix/helix-services/content-proxy@v1?owner=adobe&repo=test-repo&path=%2Fhello.md&ref=master')
.reply(() => [200, '# Hello\nfrom github.\n']);


action.downloader = new Downloader(context, action, { forceHttp1: true });

const result = await pipe((ctx) => {
Expand Down
1 change: 0 additions & 1 deletion test/testPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ describe('Testing Pipeline', () => {
.catch(done);
});


it('When works with promises resolving true pre before when', (done) => {
const order = [];
new Pipeline({ logger })
Expand Down
1 change: 0 additions & 1 deletion test/testRewriteBlobImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const fs = require('fs-extra');
const path = require('path');
const rewriteBlobImages = require('../src/html/rewrite-blob-images');


describe('Test Blob Image Rewriting', () => {
it('Rewrites blob store image URLs', () => {
const mdast = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'fixtures', 'image-example.json')).toString('utf-8'));
Expand Down
1 change: 0 additions & 1 deletion test/testTypeMatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const path = require('path');
const assert = require('assert');
const TypeMatcher = require('../src/utils/match-section-types');


describe('Test Type Matcher Util', () => {
const sections = fs.readJSONSync(path.resolve(__dirname, 'fixtures', 'sections.json'));

Expand Down

0 comments on commit 404d956

Please sign in to comment.