Skip to content

Commit

Permalink
fix(deps): update dependency @adobe/helix-log to v6 (#363)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency @adobe/helix-log to v6

* chore: fix upgrade

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Tobias Bocanegra <[email protected]>
  • Loading branch information
3 people authored Oct 21, 2021
1 parent 2aa943a commit 6298ed2
Show file tree
Hide file tree
Showing 4 changed files with 13,251 additions and 1,950 deletions.
16 changes: 1 addition & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
plugins: [
'header',
],
extends: 'airbnb',
extends: '@adobe/helix',
rules: {
strict: 0,

Expand All @@ -47,19 +47,5 @@ module.exports = {
argsIgnorePattern: '^_.*$',
caughtErrorsIgnorePattern: '^_.*$',
}],

// enforce license header (todo: improve plugin to support patterns for multi-lines)
'header/header': [2, 'block', ['',
{ pattern: ' * Copyright \\d{4} Adobe\\. All rights reserved\\.', template: ' * Copyright 2021 Adobe. All rights reserved.' },
' * This file is licensed to you under the Apache License, Version 2.0 (the "License");',
' * you may not use this file except in compliance with the License. You may obtain a copy',
' * of the License at http://www.apache.org/licenses/LICENSE-2.0',
' *',
' * Unless required by applicable law or agreed to in writing, software distributed under',
' * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS',
' * OF ANY KIND, either express or implied. See the License for the specific language',
' * governing permissions and limitations under the License.',
' ',
]],
},
};
9 changes: 7 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const yargs = require('yargs');
const fs = require('fs');
const readdirp = require('readdirp');
const logger = require('@adobe/helix-log');
const { createDefaultLogger, SimpleInterface } = require('@adobe/helix-log');
const {
iter, pipe, filter, map, obj,
} = require('ferrum');
Expand All @@ -26,7 +26,12 @@ const readme = require('./readmeBuilder');
const { loader } = require('./schemaProxy');
const { writeSchema } = require('./writeSchema');

const { info, error, debug } = logger;
const logger = new SimpleInterface({
logger: createDefaultLogger(),
});
const debug = logger.debug.bind(logger);
const info = logger.info.bind(logger);
const error = logger.error.bind(logger);

/**
* @typedef {import("../types/api").JsonSchema} JsonSchema
Expand Down
Loading

0 comments on commit 6298ed2

Please sign in to comment.