Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@4is-cronicle/plugin-tools

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4is-cronicle/plugin-tools - npm Package Compare versions

Comparing version 0.1.5 to 0.1.7

.drone.template.yml

1

dist/index.d.ts
import { IJobInput, IJobOutput } from './interfaces';
export * from '@4lch4/logger';
export { IJobInput, IJobOutput };
export declare function initJob<P>(): Promise<IJobInput<P>>;
export declare function endJob(output: IJobOutput): Promise<void>;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.endJob = exports.initJob = void 0;
const utils_1 = require("./utils");
__exportStar(require("@4lch4/logger"), exports);
async function initJob() {

@@ -6,0 +21,0 @@ const ioUtil = new utils_1.IOUtil();

11

package.json
{
"name": "@4is-cronicle/plugin-tools",
"displayName": "Cronicle Plugin Tools",
"version": "0.1.5",
"version": "0.1.7",
"description": "A library of helper functions for new Cronicle Plugins.",

@@ -10,7 +10,8 @@ "main": "dist/index.js",

"scripts": {
"scan": "snyk monitor && snyk code test",
"build": "tsc",
"lint": "prettier -c .",
"lint": "npm run pretty && prettier -c .",
"pretty": "prettier --write .",
"prepublishOnly": "npm run lint && npm run build",
"test": "echo \"No tests currently available.\""
"prepublishOnly": "npm run test && npm run build",
"test": "npm run lint && echo 'No actual test files available, previous tasks completed successfully.'"
},

@@ -35,2 +36,3 @@ "keywords": ["cronicle", "cronicle-tools", "cronicle-plugin"],

"prettier": "^2.7.1",
"snyk": "^1.981.0",
"ts-node": "^10.9.1",

@@ -40,4 +42,5 @@ "typescript": "^4.7.4"

"dependencies": {
"@4lch4/logger": "^1.9.2",
"dotenv": "^16.0.1"
}
}

@@ -1,7 +0,53 @@

![Drone (self-hosted) with branch](https://img.shields.io/drone/build/4lch4/Cronicle-Plugin-Tools/main?server=https%3A%2F%2Fdrone.4lch4.io&style=flat-square) ![NPM](https://img.shields.io/npm/l/@4lch4/cronicle-plugin-tools?style=flat-square) [![Standard-Js](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](https://standardjs.com/)
[![Drone Build Status][0]][1] [![NPM License][2]][3] [![NPM Version][4]][5] [![Monthly Downloads (NPM)][6]][7] [![Snyk Vulnerabilities for npm package][8]][9]
# Cronicle Tools
[![code style: prettier][10]][11] [![Discord][12]][13] [![Twitter-Profile][14]][15]
This project is to provide some helper functions to a new NodeJS module that wishes to be a [Cronicle Plugin][0].
# Cronicle Plugin Tools
[0]: https://github.com/jhuckaby/Cronicle#plugins
This project is to provide some helper functions to a new NodeJS module that wishes to be a [Cronicle Plugin][16].
## Exported Members
The following list defines/describes the members that are exported by the [@4is-cronicle/plugin-tools][17] package:
- [@4lch4/logger][18]
- All exported members of the `@4lch4/logger` library are also exported by `@4is-cronicle/plugin-tools`.
- Interfaces
- [IJobInput][20]
- [IJobOutput][21]
- Top-Level Functions
- `initJob`
- Initialize a Cronicle job. Returns the job input object read from STDIN.
- Returns an object of type [IJobInput][20].
- `endJob`
- Ends the execution of the job by writing the output to STDOUT using `JSON.stringify()` and then exiting the process using the code provided in `output.code`. The exit code defaults to **0** unless otherwise specified.
- Requires a parameter object of type [IJobOutput][21].
[0]: https://img.shields.io/drone/build/4IS-Cronicle/Plugin-Tools/main?server=https%3A%2F%2Fdrone.4lch4.io&style=flat-square
[1]: https://drone.4lch4.io/4IS-Cronicle/Plugin-Tools
[2]: https://flat.badgen.net/npm/license/@4is-cronicle/plugin-tools
[3]: https://npmjs.com/package/@4is-cronicle/plugin-tools
[4]: https://flat.badgen.net/npm/v/@4is-cronicle/plugin-tools
[5]: https://npmjs.com/package/@4is-cronicle/plugin-tools
[6]: https://flat.badgen.net/npm/@4is-cronicle/plugin-tools
[7]: https://npmjs.com/package/@4is-cronicle/plugin-tools
[8]: https://img.shields.io/snyk/vulnerabilities/npm/@4is-cronicle/plugin-tools?style=flat-square
[9]: https://app.snyk.io/org/alcha/project/b6b04336-9e6f-4207-bbd1-7b95e11232ff
[10]: https://flat.badgen.net/badge/code%20style/prettier/ff69b4
[11]: https://github.com/prettier/prettier
[12]: https://flat.badgen.net/discord/online-members/W72x4Ks
[13]: https://discord.gg/W72x4Ks
[14]: https://flat.badgen.net/twitter/follow/4lch4
[15]: https://twitter.com/4lch4
[16]: https://github.com/jhuckaby/Cronicle#plugins
[17]: https://npmjs.com/package/@4is-cronicle/plugin-tools
[18]: https://npmjs.com/package/@4lch4/logger
[19]:
<!-- [0]: https://github.com/jhuckaby/Cronicle#plugins
[1]: https://npmjs.com/package/@4is-cronicle/plugin-tools
[2]: https://npmjs.com/package/@4lch4/logger -->
[20]: ./src/interfaces/IJobInput.ts
[21]: ./src/interfaces/IJobOutput.ts

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc