@goldfishjs/plugins
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,8 +0,8 @@ | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import _regeneratorRuntime from "@babel/runtime/regenerator/index.js"; | ||
import _bridge from "@goldfishjs/bridge/lib/bridge"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
@@ -9,0 +9,0 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) { |
@@ -1,6 +0,6 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
import Plugin from './Plugin'; | ||
@@ -27,2 +27,6 @@ | ||
value: function get(key) { | ||
if (!this.config) { | ||
throw new Error('The ConfigPlugin is not ready.'); | ||
} | ||
return this.config[key]; | ||
@@ -29,0 +33,0 @@ } |
import _observable from "@goldfishjs/reactive-connect/lib/decorators/observable"; | ||
import _state from "@goldfishjs/reactive-connect/lib/decorators/state"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
import _typeof from "@babel/runtime/helpers/typeof.js"; | ||
@@ -10,0 +10,0 @@ var __decorate = this && this.__decorate || function (decorators, target, key, desc) { |
@@ -1,9 +0,9 @@ | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import _regeneratorRuntime from "@babel/runtime/regenerator/index.js"; | ||
import _mockBridge from "@goldfishjs/bridge/lib/mock"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
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"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _get from "@babel/runtime/helpers/get.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
@@ -10,0 +10,0 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) { |
@@ -1,6 +0,6 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
import { MockRequester } from '@goldfishjs/requester'; | ||
@@ -7,0 +7,0 @@ import ConfigPlugin from './ConfigPlugin'; |
@@ -1,2 +0,2 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
@@ -3,0 +3,0 @@ var Plugin = function Plugin() { |
import _observable from "@goldfishjs/reactive-connect/lib/decorators/observable"; | ||
import _state from "@goldfishjs/reactive-connect/lib/decorators/state"; | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import _regeneratorRuntime from "@babel/runtime/regenerator/index.js"; | ||
import _watch from "@goldfishjs/reactive/lib/watch"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _typeof from "@babel/runtime/helpers/typeof.js"; | ||
@@ -9,0 +9,0 @@ var __decorate = this && this.__decorate || function (decorators, target, key, desc) { |
@@ -1,6 +0,6 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
import Plugin from './Plugin'; | ||
@@ -7,0 +7,0 @@ import { Requester } from '@goldfishjs/requester'; |
@@ -1,8 +0,8 @@ | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _regeneratorRuntime from "@babel/runtime/regenerator/index.js"; | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray.js"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn.js"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf.js"; | ||
import _inherits from "@babel/runtime/helpers/inherits.js"; | ||
@@ -9,0 +9,0 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) { |
{ | ||
"name": "@goldfishjs/plugins", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "goldfish-plugins", | ||
@@ -19,8 +19,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@goldfishjs/bridge": "^0.0.5", | ||
"@goldfishjs/reactive": "^0.0.5", | ||
"@goldfishjs/reactive-connect": "^0.0.5", | ||
"@goldfishjs/requester": "^0.0.5", | ||
"@goldfishjs/route": "^0.0.5", | ||
"@goldfishjs/utils": "^0.0.5", | ||
"@goldfishjs/bridge": "^0.0.6", | ||
"@goldfishjs/reactive": "^0.0.6", | ||
"@goldfishjs/reactive-connect": "^0.0.6", | ||
"@goldfishjs/requester": "^0.0.6", | ||
"@goldfishjs/route": "^0.0.6", | ||
"@goldfishjs/utils": "^0.0.6", | ||
"mini-types": "^0.0.4" | ||
@@ -27,0 +27,0 @@ }, |
@@ -19,4 +19,7 @@ import Plugin from './Plugin'; | ||
public get<K extends keyof C>(key: K) { | ||
return this.config![key]; | ||
public get<K extends keyof C>(key: K): C[K] { | ||
if (!this.config) { | ||
throw new Error('The ConfigPlugin is not ready.'); | ||
} | ||
return this.config[key]; | ||
} | ||
@@ -23,0 +26,0 @@ |
import { route } from '@goldfishjs/route'; | ||
import Plugin, { GetPlugin, PluginClass } from './Plugin'; | ||
import Plugin, { GetPlugin } from './Plugin'; | ||
import BridgePlugin from './BridgePlugin'; | ||
@@ -22,3 +22,3 @@ | ||
private pages: IPage[] = []; | ||
public pages: IPage[] = []; | ||
@@ -25,0 +25,0 @@ private setPages() { |
@@ -12,5 +12,5 @@ import Plugin from './Plugin'; | ||
setConfig(config: C): void; | ||
get<K extends keyof C>(key: K): NonNullable<C>[K]; | ||
get<K extends keyof C>(key: K): C[K]; | ||
init(): void; | ||
destroy(): void; | ||
} |
/// <reference types="mini-types" /> | ||
import Plugin, { GetPlugin } from './Plugin'; | ||
interface IPage { | ||
path: string; | ||
query?: Record<string, any>; | ||
referrerInfo?: any; | ||
} | ||
export default class Route extends Plugin { | ||
@@ -8,3 +13,3 @@ static type: string; | ||
destroy(): void; | ||
private pages; | ||
pages: IPage[]; | ||
private setPages; | ||
@@ -18,1 +23,2 @@ updatePages(options?: tinyapp.IAppLaunchOptions): void; | ||
} | ||
export {}; |
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
50581
1431
+ Added@goldfishjs/bridge@0.0.6(transitive)
+ Added@goldfishjs/reactive@0.0.6(transitive)
+ Added@goldfishjs/reactive-connect@0.0.6(transitive)
+ Added@goldfishjs/requester@0.0.6(transitive)
+ Added@goldfishjs/route@0.0.6(transitive)
+ Added@goldfishjs/utils@0.0.6(transitive)
- Removed@goldfishjs/bridge@0.0.5(transitive)
- Removed@goldfishjs/reactive@0.0.5(transitive)
- Removed@goldfishjs/reactive-connect@0.0.5(transitive)
- Removed@goldfishjs/requester@0.0.5(transitive)
- Removed@goldfishjs/route@0.0.5(transitive)
- Removed@goldfishjs/utils@0.0.5(transitive)
Updated@goldfishjs/bridge@^0.0.6
Updated@goldfishjs/reactive@^0.0.6
Updated@goldfishjs/requester@^0.0.6
Updated@goldfishjs/route@^0.0.6
Updated@goldfishjs/utils@^0.0.6