🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@skedulo/function-header-helper

Package Overview
Dependencies
Maintainers
72
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@skedulo/function-header-helper

Connected Function Header parser library

unpublished
latest
npmnpm
Version
0.1.0
Version published
Maintainers
72
Created
Source

Skedulo Header Parser Utilities

External development utilities for Skedulo Connected Function. This project includes utilities to parse Skedulo specific header to extract Custom Settings, User Context, and Authorization Info. This project is intended to be used only as a dev dependency in package projects because of its dependency on Node and the filesystem.

To develop both the dev public package and the Connected Function template, it's recommended that yarn link is used across projects to test changes locally. For the package, this involves running yarn link at the root and for each boilerplate running yarn link @skedulo/function-header-helper.

Package Development

  • Dependency Installation: yarn
  • Compile the package: yarn compile
  • Release package for local version to NPM: yarn release-package ${versionNumber}

How to use this package in your project

const { method, path, headers, body, querystring } = payload
const skedContext:SkedContext = createSkedContext(headers);

const token: string = skedContext.auth.apiToken;
const baseUrl: string = skedConText.auth.baseUrl;

const userName: string = skedContext.userContext.username;

FAQs

Package last updated on 01 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts