<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Enigma.js on Stefan&#39;s Blog</title>
    <link>https://sstoichev.eu/categories/enigma.js/</link>
    <description>Recent content in Enigma.js on Stefan&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Wed, 08 Jul 2020 09:00:00 +0000</lastBuildDate>
    <atom:link href="https://sstoichev.eu/categories/enigma.js/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>enigma.js - interceptors</title>
      <link>https://sstoichev.eu/post/enigma-js-interceptors/</link>
      <pubDate>Wed, 08 Jul 2020 09:00:00 +0000</pubDate>
      <guid>https://sstoichev.eu/post/enigma-js-interceptors/</guid>
      <description>&lt;p&gt;Another interesting feature of enigma.js are interceptors. Interceptors are similar to the mixins functions but they are executed on lower level - request/response level.&lt;/p&gt;
&lt;p&gt;Request interceptors are invoked right before the request is send to the Engine and response interceptors are invoked right after the response from the Engine is received and before the data is send to the calling function.&lt;/p&gt;
&lt;p&gt;You can think of the interceptors as &amp;ldquo;enigma.js middleware&amp;rdquo;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Custom enigma.js mixins</title>
      <link>https://sstoichev.eu/post/introducing-enigma-mixin/</link>
      <pubDate>Fri, 03 Jul 2020 09:00:00 +0000</pubDate>
      <guid>https://sstoichev.eu/post/introducing-enigma-mixin/</guid>
      <description>&lt;p&gt;In the &lt;a href=&#34;__GHOST_URL__/2020/06/23/enigma-js-mixins/&#34;&gt;previous post&lt;/a&gt; we saw what are &lt;a href=&#34;https://github.com/qlik-oss/enigma.js&#34;&gt;enigma.js&lt;/a&gt;  &lt;a href=&#34;https://github.com/qlik-oss/enigma.js/blob/master/docs/api.md#mixins&#34;&gt;mixins&lt;/a&gt;. I&amp;rsquo;ve started an repo some time ago (and &lt;em&gt;npm&lt;/em&gt; package) where I&amp;rsquo;ve been adding mixins that I&amp;rsquo;ve found useful (or mixins that I&amp;rsquo;ve found boring to write all the time). And want to introduce you to this list.&lt;/p&gt;
&lt;p&gt;At the moment the repo contains only mixins that are relevant to application/document.&lt;/p&gt;
&lt;p&gt;(to distinct the mixins methods from the default enigma.js ones all mixin methods, from this package, are having prefix &lt;code&gt;m&lt;/code&gt;)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
