UNPKG

auth0

Version:

Auth0 Node.js SDK for the Management API v2.

22 lines (21 loc) 538 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.encodePathParam = encodePathParam; function encodePathParam(param) { if (param === null) { return "null"; } const typeofParam = typeof param; switch (typeofParam) { case "undefined": return "undefined"; case "string": case "number": case "boolean": break; default: param = String(param); break; } return encodeURIComponent(param); }