UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

20 lines (19 loc) 718 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PathParser = void 0; const index_js_1 = require("../../../schema/index.js"); const expressPaths_js_1 = require("./expressPaths.js"); const transformPaths_js_1 = require("./transformPaths.js"); class PathParser extends index_js_1.SchemaAction { static express(paths) { return (0, expressPaths_js_1.expressPaths)(paths); } transform(paths, options) { return (0, transformPaths_js_1.transformPaths)(this.schema, paths, options); } parse(paths, options) { return PathParser.express(this.transform(paths, options)); } } exports.PathParser = PathParser; PathParser.actionName = 'parsePath';