Skip to content

Commit

Permalink
Exported comparison function
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Charugin committed Feb 22, 2019
1 parent b38cb67 commit 814aef8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ deploy:
provider: npm
email: i@charugin.ru
api_key:
secure: P+6gr4NWQG2YcNV5XYq9aUFKMICmYMi51+1pNvJOzHuKbij/tIn874N2ETLO/XFJe5NxCzWRgJrShBdf+1mllYX5XqHepmD5GdtcWMz3+tN0BFLOIDSxZfhdMHvrmw1XLjcVyKvkO9uT/X/mXWPVJ8jMA8jQ5IHBCHGeU0LlUqONQMqtUQrUzXGeXdy/a2BgglpmqlCqnBDfBNqJx0dlUNFBns0f4HpON0fc0Jxz5bL9zy4gRF1AwP4wfS0FXnywBUUHKEvscQvhbcy1Cs7Ho8zUfhd44Zr+vTLbFqz64EaShP7ZR0y7FBPSF5Qek00O8LQyHNrR1cLE9JXNE8jxewXFVHPcznujUUJUsVbmH80iV4x4ZdZy6A7jPQyMcVKe72hZGYXUETpOZMVRDZU4cjDdvrVuQQb7dPm7W5Q3KR8ECmxn/x87hH5aGLjgQgePyzKKGhTdUj3wOhmxNhC98Xg4UpSYIRWAbE+TxwKgrpqZA4Rp60tasjpHbf/so8nHFEMW2kyPufTYvlpdPsLMu8RjPigWkXXIVA2NCck2Bg2Ml20GpLVgniBEeatwxVgvHAACpapCvNIakxeBjPSTmpMvPJfeJMdhR7SHdI1inpVO4dj8lj+F44ZlWsDG5JD2yLFmnUhilJuvJpKUOPpDUyYQnz/KkW7/qldTp0pwQ1s=
secure: '09qTqSi8r1piQzogoDAoDvAPlwr7hMbb+MkT5HzsfNGTQc1qH2y2Xmvuaub1QGmqRermAYESCcScVHPhcE0rn4s70Wp8xDHis9B3s2W42g1CDbH6L9YkIW3cCIyu0V/gPiGXiOFP7f02LPSphqnougiUrVtetlKlQBbaXhK+YdGP7z/dbXJYgtz1GsBDfncimd5Vk34oO+5d+3Ee42aGDLyVNZMd5N8GKup3YK+Unv2s/d/c08YFnHA67rH+fRiW1YQH1cUa8qxksDs0yxvsUsgJkycgYSiJ1zxUNR+FcgQgj2gytEHd/+tcNIe9uLIfnkbiynbBjuN+3LEgo9vek3AY3wjhSCAYuMwv1T2kEXTSNoIzC9Xp3H0TcBpeOLfi4qaNI7tIUCQ4K9ZtPEaJ8KbfS2Con4fsc01XdKXaV0MCW+jJgfG4kLuhfaHWIRu9TMdwfH+HvmXg9L8vvCpS6MXpy3d+zG9kV8EsCvAVDyZ4aTw48Uopal+TYzIbqgtImt+qHNpo5unB7lF05/4jC5arXwSEgOSEowhmLSZ/dk1fHMgLCclCLW+2UjDNfVi2q4gTY5NBKW6UnJ7/hGLWQNXl4GpGW1vHhbEBB/M1Oium/Pt+vqID49ZCl043j4tec1bPfkmORymGbgekcSdQcqSs7SWTG2XpH8J1R8TGZcM='
on:
tags: true
repo: RomiC/rsql-builder
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rsql-builder",
"version": "1.0.2",
"version": "1.0.2-hotfix.1",
"description": "RSQL query builder",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as and } from './and';
export { default as comparison } from './comparison';
export { default as eq } from './eq';
export { default as ge } from './ge';
export { default as gt } from './gt';
Expand Down
16 changes: 14 additions & 2 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import { and, eq, ge, gt, inList, le, lt, ne, or, outList } from '../src';
import comparison from '../src/comparison';
import {
and,
comparison,
eq,
ge,
gt,
inList,
le,
lt,
ne,
or,
outList
} from '../src';

describe('Functional tests', () => {
it('should export public functions', () => {
expect(typeof and).toBe('function');
expect(typeof comparison).toBe('function');
expect(typeof eq).toBe('function');
expect(typeof ge).toBe('function');
expect(typeof gt).toBe('function');
Expand Down

0 comments on commit 814aef8

Please sign in to comment.