@teleporthq/teleport-uidl-resolver
Advanced tools
Comparing version 0.32.3 to 0.32.4
@@ -68,3 +68,3 @@ "use strict"; | ||
Resolver.prototype.resolveUIDL = function (input, options) { | ||
if (options === void 0) { options = {}; } | ||
if (options === void 0) { options = { extractedResources: {} }; } | ||
var mapping = utils.mergeMappings(this.mapping, options.mapping); | ||
@@ -94,3 +94,3 @@ var newOptions = __assign(__assign({}, options), { mapping: mapping }); | ||
Resolver.prototype.resolveElement = function (element, options) { | ||
if (options === void 0) { options = {}; } | ||
if (options === void 0) { options = { extractedResources: {} }; } | ||
var mapping = utils.mergeMappings(this.mapping, options.mapping); | ||
@@ -97,0 +97,0 @@ var newOptions = __assign(__assign({}, options), { mapping: mapping }); |
@@ -43,3 +43,3 @@ var __assign = (this && this.__assign) || function () { | ||
Resolver.prototype.resolveUIDL = function (input, options) { | ||
if (options === void 0) { options = {}; } | ||
if (options === void 0) { options = { extractedResources: {} }; } | ||
var mapping = utils.mergeMappings(this.mapping, options.mapping); | ||
@@ -69,3 +69,3 @@ var newOptions = __assign(__assign({}, options), { mapping: mapping }); | ||
Resolver.prototype.resolveElement = function (element, options) { | ||
if (options === void 0) { options = {}; } | ||
if (options === void 0) { options = { extractedResources: {} }; } | ||
var mapping = utils.mergeMappings(this.mapping, options.mapping); | ||
@@ -72,0 +72,0 @@ var newOptions = __assign(__assign({}, options), { mapping: mapping }); |
{ | ||
"name": "@teleporthq/teleport-uidl-resolver", | ||
"version": "0.32.3", | ||
"version": "0.32.4", | ||
"description": "A small package that handles the transition from UIDL to HTML elements and has support for custom mappings.", | ||
@@ -27,8 +27,8 @@ "author": "teleportHQ", | ||
"dependencies": { | ||
"@teleporthq/teleport-shared": "^0.32.3", | ||
"@teleporthq/teleport-types": "^0.32.3", | ||
"@teleporthq/teleport-uidl-builders": "^0.32.3", | ||
"@teleporthq/teleport-shared": "^0.32.4", | ||
"@teleporthq/teleport-types": "^0.32.4", | ||
"@teleporthq/teleport-uidl-builders": "^0.32.4", | ||
"deepmerge": "^4.0.0" | ||
}, | ||
"gitHead": "891708b576d816bfd3d47c8d894f64f654ccc903" | ||
"gitHead": "3cd81f19b5358e1b5f71e7c9ef610258fc3f0210" | ||
} |
@@ -34,3 +34,3 @@ import * as utils from './utils' | ||
public resolveUIDL(input: ComponentUIDL, options: GeneratorOptions = {}) { | ||
public resolveUIDL(input: ComponentUIDL, options: GeneratorOptions = { extractedResources: {} }) { | ||
const mapping = utils.mergeMappings(this.mapping, options.mapping) | ||
@@ -76,3 +76,6 @@ const newOptions = { | ||
public resolveElement(element: UIDLElement, options: GeneratorOptions = {}) { | ||
public resolveElement( | ||
element: UIDLElement, | ||
options: GeneratorOptions = { extractedResources: {} } | ||
) { | ||
const mapping = utils.mergeMappings(this.mapping, options.mapping) | ||
@@ -79,0 +82,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
343995
5013