Module

x/deno_slack_hooks/utilities.ts

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Latest
import * as mod from "https://dotland.deno.dev/x/deno_slack_hooks@1.3.1/utilities.ts";

Variables

isNewSemverRelease takes two semver formatted strings and compares them to see if the second argument is a newer version than the first argument. If it's newer it returns true, otherwise returns false.

Functions

Imports the provided file path and returns its default export. Throws an exception if the module has no default export.

getJSON attempts to read the given file. If successful, it returns the contents of the file. If the extraction fails, it returns an empty object.

Performs basic validation on all function definitions in a manifest; if any definition fails validation, an exception will be thrown.