@goldfishjs/route
Advanced tools
Comparing version 1.1.4 to 1.1.5
import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _get from "@babel/runtime/helpers/get"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _get from "@babel/runtime/helpers/get"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
import { parse, stringify } from 'qs'; | ||
@@ -37,2 +42,4 @@ import BaseRouter from './BaseRouter'; | ||
var _super = _createSuper(StackedRouter); | ||
function StackedRouter() { | ||
@@ -43,3 +50,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(StackedRouter).apply(this, arguments)); | ||
_this = _super.apply(this, arguments); | ||
_this.fromuKey = 'fromu'; | ||
@@ -46,0 +53,0 @@ return _this; |
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _get from "@babel/runtime/helpers/get"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _get from "@babel/runtime/helpers/get"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
import StackedRouter, { format } from './StackedRouter'; | ||
@@ -12,2 +17,4 @@ | ||
var _super = _createSuper(TinyAppRouter); | ||
function TinyAppRouter() { | ||
@@ -18,3 +25,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(TinyAppRouter).call(this)); | ||
_this = _super.call(this); | ||
_this.removeChangeListener = _this.addChangeListener(function () { | ||
@@ -21,0 +28,0 @@ var realUrl = format(_this.getPath(), _this.getQuery()); |
@@ -5,2 +5,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
import Route from './Route'; | ||
@@ -12,2 +17,4 @@ import { default as BaseTinyappRoute } from './container-router/TinyAppRouter'; | ||
var _super = _createSuper(TinyappRoute); | ||
function TinyappRoute() { | ||
@@ -18,3 +25,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(TinyappRoute).apply(this, arguments)); | ||
_this = _super.apply(this, arguments); | ||
_this.route = new BaseTinyappRoute(); | ||
@@ -21,0 +28,0 @@ return _this; |
{ | ||
"name": "@goldfishjs/route", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "goldfish-route", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31983
918