From d3fa33f0cc70dbb64052d2df97426bc2aedbd560 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 3 Jun 2020 10:34:09 +0000 Subject: [PATCH] fix(core): update --- package-lock.json | 13 +++++++++++++ package.json | 1 + ts/domtools.classes.domtools.ts | 3 +-- ts/domtools.plugins.ts | 3 ++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1efe808..db1f12b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1337,6 +1337,14 @@ "form-data": "^2.5.1" } }, + "@pushrocks/smartrouter": { + "version": "1.0.2", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrouter/-/smartrouter-1.0.2.tgz", + "integrity": "sha512-G7/Mb03TLOyarpDngfTOeWZqQv3GxMoG2JtoPH4mQ0y7SosQdaminnx++oopmP/CTzyj5mtAPCnWv/qcDBkv7Q==", + "requires": { + "path-to-regexp": "^6.1.0" + } + }, "@pushrocks/smartrx": { "version": "2.0.5", "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.5.tgz", @@ -2771,6 +2779,11 @@ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, + "path-to-regexp": { + "version": "6.1.0", + "resolved": "https://verdaccio.lossless.one/path-to-regexp/-/path-to-regexp-6.1.0.tgz", + "integrity": "sha512-h9DqehX3zZZDCEm+xbfU0ZmwCGFCAAraPJWMXJ4+v32NjZJilVg3k1TcKsRgIb8IQ/izZSaydDc1OhJCZvs2Dw==" + }, "pathval": { "version": "1.1.0", "resolved": "https://verdaccio.lossless.one/pathval/-/pathval-1.1.0.tgz", diff --git a/package.json b/package.json index d00c79c..27256c2 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "dependencies": { "@pushrocks/lik": "^4.0.13", "@pushrocks/smartpromise": "^3.0.6", + "@pushrocks/smartrouter": "^1.0.2", "@pushrocks/smartstate": "^1.0.16", "lit-element": "^2.3.1", "sweet-scroll": "^4.0.0" diff --git a/ts/domtools.classes.domtools.ts b/ts/domtools.classes.domtools.ts index d4ec40b..865d4f1 100644 --- a/ts/domtools.classes.domtools.ts +++ b/ts/domtools.classes.domtools.ts @@ -2,7 +2,6 @@ import * as plugins from './domtools.plugins'; import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap'; import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap'; import { TViewport } from './domtools.breakpoints'; -import { DomToolsRouter } from './domtools.classes.router'; export interface IDomToolsState { virtualViewport: TViewport; @@ -45,7 +44,7 @@ export class DomTools { virtualViewport: 'native', }); - public router = new DomToolsRouter({ + public router = new plugins.smartrouter.SmartRouter({ debug: false }); diff --git a/ts/domtools.plugins.ts b/ts/domtools.plugins.ts index 66d42d1..5cd9779 100644 --- a/ts/domtools.plugins.ts +++ b/ts/domtools.plugins.ts @@ -1,5 +1,6 @@ // pushrocks scope import * as smartpromise from '@pushrocks/smartpromise'; +import * as smartrouter from '@pushrocks/smartrouter'; import * as smartstate from '@pushrocks/smartstate'; -export { smartpromise, smartstate }; +export { smartpromise, smartrouter, smartstate };