Skip to content

Commit

Permalink
Update logo and small copy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes committed Mar 16, 2019
1 parent 306ec8a commit f76ac6d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 44 deletions.
8 changes: 4 additions & 4 deletions media/swiss-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions packages/swiss-element/core/src/.eslintrc

This file was deleted.

15 changes: 0 additions & 15 deletions packages/swiss-element/hooks/src/.eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion packages/swiss-element/src/enhancers/apply-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function applyMiddleware(...middleware) {
return createElement => options => {
const element = createElement(options);
let render = () => {
throw new Error();
throw new Error('Middleware should not render in setup.');
};

const middlewareAPI = {
Expand Down
2 changes: 1 addition & 1 deletion packages/swiss-element/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export * from './swiss-element.js';
export { default as component } from './enhancers/component.js';
export { default as propsToAttrs } from './enhancers/props-to-attrs.js';

// These enhancers are optional an can be passed in the `element` function.
// These enhancers are optional and can be passed in the `element` function.
export { default as renderer } from './enhancers/renderer.js';
export { default as applyMiddleware } from './enhancers/apply-middleware.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/swiss-element/src/swiss-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function element(name, component, enhancer, options) {
}

if (!isUndefined(enhancer) && !isFunction(enhancer)) {
throw new Error('Expected the enhancer to be a function.');
throw new Error('Enhancer should be a function.');
}

// To shorten syntax if options is an array assume it's `observedAttributes`.
Expand Down
2 changes: 1 addition & 1 deletion packages/swiss-element/test/swiss-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ it('non function enhancer throws', function() {
assert.throws(
() => element('s-3', RenderButton, [], {}),
Error,
'Expected the enhancer to be a function.'
'Enhancer should be a function.'
);
});

Expand Down
2 changes: 1 addition & 1 deletion site
Submodule site updated from 12cdd9 to f4c548
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10366,11 +10366,6 @@ sw-toolbox@^3.4.0:
path-to-regexp "^1.0.1"
serviceworker-cache-polyfill "^4.0.0"

swiss-element@0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/swiss-element/-/swiss-element-0.12.0.tgz#eb76ffb2a58ac0dc2997e5dc67492a7f2d17c05d"
integrity sha512-X1ylsCPe4XqfqH3e9987Vk68X0fdcftUb7s8YP8lL7Y/414OikowxEmgo8pk7jzGUV9myLesURKiwhSyTxBYkg==

symbol-observable@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
Expand Down

0 comments on commit f76ac6d

Please sign in to comment.