@rxdi/lit-html 0.7.139 → 0.7.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import { CSSResult } from '../reactive-element/css-tag';
2
2
  import { TemplateResult } from '../lit-html/lit-html';
3
- export declare const pipe: (...fns: Function[]) => (x: TemplateResult) => any;
4
3
  export interface CustomElementConfig<T> {
5
4
  selector: string;
6
5
  template?: (self: T) => TemplateResult;
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Component = exports.pipe = void 0;
3
+ exports.Component = void 0;
4
4
  const lit_html_1 = require("../lit-html/lit-html");
5
- const pipe = (...fns) => (x) => fns.reduce((v, f) => f.call(this, v), x);
6
- exports.pipe = pipe;
7
5
  const legacyCustomElement = (tagName, clazz, options) => {
8
6
  window.customElements.define(tagName, clazz, options);
9
7
  return clazz;
@@ -75,7 +73,8 @@ const customElement = (tag, config = {}) => (Base) => {
75
73
  render() {
76
74
  var _a;
77
75
  if ((_a = config.modifiers) === null || _a === void 0 ? void 0 : _a.length) {
78
- return (0, exports.pipe)(...(config.modifiers.map(v => v['modifier'])))(config.template.call(this));
76
+ const pipe = (...fns) => (x) => fns.reduce((v, f) => f.call(this, v), x);
77
+ return pipe(...(config.modifiers.map(v => v['modifier'])))(config.template.call(this));
79
78
  }
80
79
  return config.template.call(this);
81
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/lit-html",
3
- "version": "0.7.139",
3
+ "version": "0.7.140",
4
4
  "main": "./dist/index.js",
5
5
  "author": "Kristiyan Tachev",
6
6
  "license": "MIT",