@runnerty/module-core
Advanced tools
+11
-1
@@ -21,4 +21,14 @@ { | ||
| "linebreak-style": ["error", "unix"], | ||
| "semi": ["error", "always"] | ||
| "semi": ["error", "always"], | ||
| "no-console": "error", | ||
| "no-undef": "error", | ||
| "no-var": "error", | ||
| "no-caller": "error", | ||
| "no-throw-literal": "error", | ||
| "no-unneeded-ternary": "error", | ||
| "prefer-const": "error", | ||
| "comma-spacing": ["error", { "before": false, "after": true }], | ||
| "comma-style": ["error", "last"], | ||
| "handle-callback-err": ["error", "^(err|error)$"] | ||
| } | ||
| } |
+5
-5
| { | ||
| "name": "@runnerty/module-core", | ||
| "version": "3.0.4", | ||
| "version": "3.0.5", | ||
| "description": "Runnerty module core classes", | ||
@@ -30,10 +30,10 @@ "author": "Runnerty Tech", | ||
| "dependencies": { | ||
| "@runnerty/interpreter-core": "~3.0.0", | ||
| "@runnerty/interpreter-core": "~3.0.1", | ||
| "json-stringify-safe": "~5.0.1", | ||
| "lodash": "~4.17.20", | ||
| "lodash": "~4.17.21", | ||
| "millisecond": "~0.1.2" | ||
| }, | ||
| "devDependencies": { | ||
| "eslint": "^7.19.0", | ||
| "eslint-config-prettier": "^7.2.0", | ||
| "eslint": "^7.20.0", | ||
| "eslint-config-prettier": "^8.1.0", | ||
| "eslint-plugin-prettier": "^3.3.1", | ||
@@ -40,0 +40,0 @@ "prettier": "^2.2.1" |
+8
-6
@@ -10,12 +10,13 @@ <p align="center"> | ||
| <a href="#badge"> | ||
| <img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg"> | ||
| <img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg"> | ||
| </a> | ||
| # Runnerty: Module Core | ||
| This module exposes the classes that Runnerty modules should extend from. | ||
| ### Trigger example: | ||
| ### Trigger example: | ||
| ```javascript | ||
| const Trigger = require("@runnerty/module-core").Trigger; | ||
| const Trigger = require('@runnerty/module-core').Trigger; | ||
@@ -46,4 +47,5 @@ class intervalTrigger extends Trigger { | ||
| ### Executor example: | ||
| ```javascript | ||
| const Executor = require("@runnerty/module-core").Executor; | ||
| const Executor = require('@runnerty/module-core').Executor; | ||
@@ -75,2 +77,3 @@ class greetingExecutor extends Executor { | ||
| ### Notifier example: | ||
| ```javascript | ||
@@ -95,4 +98,3 @@ const Notifier = require('@runnerty/module-core').Notifier; | ||
| [Runnerty]: http://www.runnerty.io | ||
| [runnerty]: http://www.runnerty.io | ||
| [downloads-image]: https://img.shields.io/npm/dm/@runnerty/module-core.svg | ||
@@ -99,0 +101,0 @@ [npm-url]: https://www.npmjs.com/package/@runnerty/module-core |
+2
-2
@@ -68,3 +68,3 @@ 'use strict'; | ||
| async getValues(values) { | ||
| let notifValues = this.notification; | ||
| const notifValues = this.notification; | ||
| Object.assign(notifValues, this.config); | ||
@@ -90,3 +90,3 @@ delete notifValues.config; | ||
| // QUEUE REDIS; | ||
| if (this.runtime.config.queueNotifiersExternal && runtime.config.queueNotifiersExternal === 'redis') { | ||
| if (this.runtime.config.queueNotifiersExternal && this.runtime.config.queueNotifiersExternal === 'redis') { | ||
| //REDIS QUEUE: | ||
@@ -93,0 +93,0 @@ const qnrParams = { |
Sorry, the diff of this file is not supported yet
35055
1.02%852
1.19%101
2.02%Updated