Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: lock file maintenance (release-bot/next-v14.x) #1774

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: please Prettier
  • Loading branch information
Emanuel Kluge committed Jun 7, 2021
commit 32c8a6a3e9665cea7eda94ea5720d65839b8cbeb
10 changes: 4 additions & 6 deletions packages/apollo-mock-server/mixin.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ class GraphQLMixin extends Mixin {
}

if (exists(this.config.graphqlMockSchemaFile)) {
webpackConfig.resolve.alias[
'hops-apollo-mock-server/schema'
] = require.resolve(this.config.graphqlMockSchemaFile);
webpackConfig.resolve.alias['hops-apollo-mock-server/schema'] =
require.resolve(this.config.graphqlMockSchemaFile);
}

if (exists(this.config.graphqlMockContextExtenderFile)) {
webpackConfig.resolve.alias[
'hops-apollo-mock-server/context-extender'
] = require.resolve(this.config.graphqlMockContextExtenderFile);
webpackConfig.resolve.alias['hops-apollo-mock-server/context-extender'] =
require.resolve(this.config.graphqlMockContextExtenderFile);
}

if (target === 'graphql-mock-server') {
Expand Down
4 changes: 2 additions & 2 deletions packages/hops/mixins/analyzer/mixin.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ module.exports = class AnalyzerCoreMixin extends Mixin {
) {
return;
}
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
const BundleAnalyzerPlugin =
require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

webpackConfig.plugins.push(
new BundleAnalyzerPlugin({
Expand Down
8 changes: 2 additions & 6 deletions packages/jest-environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,8 @@ await stopServer();
Convenience function for creating a new `Puppeteer.Page`-instance, which resolves to an object, that holds the `page`-instance and three helper functions.

```js
const {
page,
getProperty,
getInnerText,
getElementByText,
} = await createPage();
const { page, getProperty, getInnerText, getElementByText } =
await createPage();
await page.goto('https://localhost:8080/');

const headingClass = await getProperty('className', '.heading');
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-preset/helpers/babel-plugin-import-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ module.exports = ({ types: t }) => ({
t.assertCallExpression(importCallExpression);
t.assertImport(importCallExpression.get('callee'));

const importedComponent = importCallExpression.get('arguments.0').node
.value;
const importedComponent =
importCallExpression.get('arguments.0').node.value;

pathReplacement(argument, importedComponent);
});
Expand Down
5 changes: 2 additions & 3 deletions packages/jest-preset/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ module.exports = {
},
},
moduleNameMapper: {
'^.+\\.(png|gif|jpe?g|webp|html|svg|((o|t)tf)|woff2?|ico)$': require.resolve(
'./mocks/file.js'
),
'^.+\\.(png|gif|jpe?g|webp|html|svg|((o|t)tf)|woff2?|ico)$':
require.resolve('./mocks/file.js'),
'^.+\\.tpl$': require.resolve('./mocks/tpl.js'),
'^.+\\.css(\\?global)?$': require.resolve('identity-obj-proxy'),
'^hops$': require.resolve('./mocks/hops.js'),
Expand Down
3 changes: 2 additions & 1 deletion packages/react/import-component/import-component-loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const regex = /importComponent\s*\(\s*\(\)\s+=>\s+import\(\s*'([^']+)'\s*\)\s*\)/g;
const regex =
/importComponent\s*\(\s*\(\)\s+=>\s+import\(\s*'([^']+)'\s*\)\s*\)/g;

function importComponentLoader(source) {
return source.replace(
Expand Down
28 changes: 15 additions & 13 deletions packages/react/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ import isPlainObject from 'is-plain-obj';
import { initialize, internal } from 'hops-bootstrap';
const { invariant } = internal;

export const render = (element, options) => (...args) => {
invariant(
isValidElement(element),
'render(): Received invalid React element'
);
export const render =
(element, options) =>
(...args) => {
invariant(
isValidElement(element),
'render(): Received invalid React element'
);

invariant(
options === undefined || isPlainObject(options),
'render(): Received invalid options'
);
invariant(
options === undefined || isPlainObject(options),
'render(): Received invalid options'
);

const { render } = initialize({}, element, options);
invariant(render, "Can't use hops-react mixin");
const { render } = initialize({}, element, options);
invariant(render, "Can't use hops-react mixin");

return render(...args);
};
return render(...args);
};
16 changes: 9 additions & 7 deletions packages/redux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,15 @@ Beware that middlewares passed as render option take precedence.

```javascript
// Object with fetch is passed as third parameter to thunks
const incrementFetch = () => (dispatch, getState, { fetch }) => {
return fetch('/api')
.then((r) => r.json())
.then(({ value }) => {
dispatch({ type: 'INCREMENT', payload: value });
});
};
const incrementFetch =
() =>
(dispatch, getState, { fetch }) => {
return fetch('/api')
.then((r) => r.json())
.then(({ value }) => {
dispatch({ type: 'INCREMENT', payload: value });
});
};
```

#### `canPrefetchOnServer(): boolean` ([sequence](https://github.com/untool/mixinable/blob/master/README.md#defineparallel)) **server**
Expand Down
5 changes: 2 additions & 3 deletions packages/webpack/lib/plugins/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ exports.LoggerPlugin = class LoggerPlugin {
errors
.concat(...children.map((c) => c.errors))
.reduce((acc, error) => {
const coreJsResolutionErrorCulprit = getCoreJsResolutionErrorCulprit(
error
);
const coreJsResolutionErrorCulprit =
getCoreJsResolutionErrorCulprit(error);
if (coreJsResolutionErrorCulprit) {
const isFirstOccurrence = !acc.some(
(e) =>
Expand Down
8 changes: 2 additions & 6 deletions packages/yargs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ const configure = (config, options) => ({
if (argv.production || argv.p) {
process.env.NODE_ENV = 'production';
}
const {
bootstrap,
registerCommands,
handleArguments,
handleError,
} = initialize(config, options);
const { bootstrap, registerCommands, handleArguments, handleError } =
initialize(config, options);
invariant(
bootstrap && registerCommands && handleArguments && handleError,
"Can't use hops-yargs mixin"
Expand Down