UNPKG

json-processing

Version:

JSON Processing Tool

16 lines (15 loc) 588 B
'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const rxjs_1 = require("rxjs"); const input_1 = __importDefault(require("./input")); function default_1(stream, path) { return new rxjs_1.Observable((observer) => { input_1.default(stream, path, (node) => observer.next(node)). then(() => observer.complete()). catch((err) => observer.error(err)); }); } exports.default = default_1;