UNPKG

backendless-console-sdk

Version:

Backendless Console SDK for Node.js and browser

16 lines (15 loc) 422 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.optional = exports.encodePath = void 0; var optional = function optional(path) { return path ? '/' + path : ''; }; exports.optional = optional; var encodePath = function encodePath(path) { return path.split('/').map(function (pathPart) { return encodeURIComponent(pathPart); }).join('/'); }; exports.encodePath = encodePath;