Skip to content

Commit

Permalink
better packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Renard authored and Laurent Renard committed Oct 17, 2018
1 parent 2ef0cee commit 3d07783
Show file tree
Hide file tree
Showing 14 changed files with 257 additions and 261 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -35,3 +35,6 @@ jspm_packages

# Optional REPL history
.node_repl_history

.idea
.DS_Store
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

6 changes: 2 additions & 4 deletions dist/bundle/index.js
Expand Up @@ -2,10 +2,8 @@

Object.defineProperty(exports, '__esModule', { value: true });

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var smartTableOperators = require('smart-table-operators');
var pointer = _interopDefault(require('smart-table-json-pointer'));
var smartTableJsonPointer = require('smart-table-json-pointer');

var Type;
(function (Type) {
Expand Down Expand Up @@ -81,7 +79,7 @@ const normalizeClauses = (conf) => {
const filter = (filter) => {
const normalizedClauses = normalizeClauses(filter);
const funcList = Object.keys(normalizedClauses).map(path => {
const getter = pointer(path).get;
const getter = smartTableJsonPointer.pointer(path).get;
const clauses = normalizedClauses[path].map(predicate);
return smartTableOperators.compose(getter, every(clauses));
});
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle/index.mjs
@@ -1,5 +1,5 @@
import { compose } from 'smart-table-operators';
import pointer from 'smart-table-json-pointer';
import { pointer } from 'smart-table-json-pointer';

var Type;
(function (Type) {
Expand Down
57 changes: 27 additions & 30 deletions dist/bundle/smart-table-filter.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/bundle/smart-table-filter.es.js.map

Large diffs are not rendered by default.

229 changes: 113 additions & 116 deletions dist/bundle/smart-table-filter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3d07783

Please sign in to comment.