UNPKG

@deliverr/serverless-offline-step-functions

Version:

Serverless Offline Plugin to Support Step Functions for Local Development

11 lines (10 loc) 404 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isJsonByteLengthValid = void 0; const buffer_1 = require("buffer"); function isJsonByteLengthValid(json) { const byteLength = buffer_1.Buffer.byteLength(json); const stepFunctionByteSizeLimit = 262144; return byteLength <= stepFunctionByteSizeLimit; } exports.isJsonByteLengthValid = isJsonByteLengthValid;