Package Exports
- hlambda
- hlambda/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hlambda) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hlambda 
hlambda - Library containing functions and helpers used in hlambda apps.
Installation
npm
$ npm i hlambda --save
yarn
$ yarn add hlambda
Example
import { executeWithAdminRights, createErrorDescriptor, createConstantsDescriptor, getEnvValue, isEnvTrue } from 'hlambda';
import { createErrorDescriptor } from 'hlambda';
// --- START SAFE TO EDIT ---
export const errorsGroupName = 'example-hasura-app';
export const errors = {
FUNCTIONALITY_NOT_IMPLEMENTED: {
message:
'Specific functionality is still in development. (It should be available soon, thank you for understanding.)',
},
SOMETHING_WENT_TERRIBLY_WRONG: {
message: 'Description of an error message...',
},
};
// --- STOP SAFE TO EDIT ---
export const ed = createErrorDescriptor(errors, errorsGroupName);
export default errors;