UNPKG

@yucom/rest-server

Version:
19 lines 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function createProxy(paths, onExcecute) { return new Proxy(new Function(), { get(target, property) { if (property in target) return target[property]; return createProxy(paths.concat([property.toString()]), onExcecute); }, apply(_, __, argArray) { return onExcecute(paths, argArray[0]); } }); } const ProxyPathHandler = { create: createProxy }; exports.ProxyPathHandler = ProxyPathHandler; //# sourceMappingURL=path-proxy.js.map