{"_id":"@advanced-rest-client/request-hooks-logic","_rev":"15-bdf150ddd4b879b613579443d7233c59","name":"@advanced-rest-client/request-hooks-logic","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.0":{"name":"@advanced-rest-client/request-hooks-logic","version":"0.1.0","keywords":["api-console","builder","node"],"author":{"name":"Pawel Psztyc, Advanced Rest Client Authors"},"license":"Apache-2.0","_id":"@advanced-rest-client/request-hooks-logic@0.1.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues"},"dist":{"shasum":"14b6fe092e463cddb22e94a98fe1b01e26d06676","tarball":"https://registry.npmjs.org/@advanced-rest-client/request-hooks-logic/-/request-hooks-logic-0.1.0.tgz","fileCount":4,"integrity":"sha512-NgAozGQ1jwneUJ1kVSPezAxnBlq5y+K5DBCcUegtZA4dC6DuDgwNnvsReKfvNIgFIFCdgHYB6CmjOsD2xwGHag==","signatures":[{"sig":"MEUCIHTYgfrEWEJKaHZEIvV7cfE2zMqvF+7w/6WNMChBqCC8AiEAuwRHbovcw3v/I6dWY3FN9Ms+S2FSN+5z5Iag5c6/VaI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35501},"main":"index.js","files":["index.js"],"public":true,"engines":{"node":">=7.0.0"},"gitHead":"656ecf189422c89937f63b982ad991015bf9f5c4","scripts":{"test":"mocha test/*.test.js"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"deprecated":"This component is deprecated","repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"_npmVersion":"5.6.0","description":"Package containing a logic for creating HTTP request / response hooks","directories":{},"_nodeVersion":"9.5.0","dependencies":{"xml-parse":"^0.3.1","url-search-params":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","polymer-cli":"^1.2.0","whatwg-fetch":"github:advanced-rest-client/fetch"},"_npmOperationalInternal":{"tmp":"tmp/request-hooks-logic_0.1.0_1518129563342_0.815341931360742","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@advanced-rest-client/request-hooks-logic","version":"0.1.1","keywords":["api-console","builder","node"],"author":{"name":"Pawel Psztyc, Advanced Rest Client Authors"},"license":"Apache-2.0","_id":"@advanced-rest-client/request-hooks-logic@0.1.1","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues"},"dist":{"shasum":"62c3be060665a1f9039bfb6ea2c5cc73c48b6f5c","tarball":"https://registry.npmjs.org/@advanced-rest-client/request-hooks-logic/-/request-hooks-logic-0.1.1.tgz","fileCount":4,"integrity":"sha512-vwWfyuB7i92uENptZGqA6sDTSKTXmj5hZUPSsje9OmDebIGLLJSKC6Kpkw+FemBHfoIctxVq2SnSMufVzIAVcg==","signatures":[{"sig":"MEYCIQDc0N5nGbGZqkvuo/dfhBBfIL+z+HZbUf2sdo7UEWbUHgIhAMxhiz7epZQv832zPbWVVwM19SSndoJliIrdQVJI4sUn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35501},"main":"index.js","files":["index.js"],"public":true,"engines":{"node":">=7.0.0"},"gitHead":"57f8463961841162839e852aa885a6c69e28fd4d","scripts":{"test":"mocha test/*.test.js"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"deprecated":"This component is deprecated","repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"_npmVersion":"5.6.0","description":"Package containing a logic for creating HTTP request / response hooks","directories":{},"_nodeVersion":"9.5.0","dependencies":{"xml-parse":"^0.3.1","url-search-params":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","polymer-cli":"^1.2.0","whatwg-fetch":"github:advanced-rest-client/fetch"},"_npmOperationalInternal":{"tmp":"tmp/request-hooks-logic_0.1.1_1518163017812_0.39674058825502523","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@advanced-rest-client/request-hooks-logic","version":"0.1.2","keywords":["api-console","builder","node"],"author":{"name":"Pawel Psztyc, Advanced Rest Client Authors"},"license":"Apache-2.0","_id":"@advanced-rest-client/request-hooks-logic@0.1.2","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues"},"dist":{"shasum":"bda61548f8821eca841f1b5418d94141f2d97ef5","tarball":"https://registry.npmjs.org/@advanced-rest-client/request-hooks-logic/-/request-hooks-logic-0.1.2.tgz","fileCount":4,"integrity":"sha512-u+eFOu+0KNHghf7S/PIGKkzXTIKGtFbRomFxxdx/ywE2dFMfQAOLYzSDFFog1hrNKs6DFZdm5fE5nCxV9e6SQA==","signatures":[{"sig":"MEQCIAT/HooJvphR3TggqIbL//wxrwEBdSJJyaWE+tFAaosQAiBQAuOx85cATjHp5H61smLsU103eNvrZ5sRULUyXnIEow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35501},"main":"index.js","files":["index.js"],"public":true,"engines":{"node":">=7.0.0"},"gitHead":"7aedafc2b805779e1ded6b1d4cf33c510258d29b","scripts":{"test":"mocha test/*.test.js"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"deprecated":"This component is deprecated","repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"_npmVersion":"5.6.0","description":"Package containing a logic for creating HTTP request / response hooks","directories":{},"_nodeVersion":"9.5.0","dependencies":{"xml-parse":"^0.3.1","url-search-params":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","polymer-cli":"^1.2.0","whatwg-fetch":"github:advanced-rest-client/fetch"},"_npmOperationalInternal":{"tmp":"tmp/request-hooks-logic_0.1.2_1518193978258_0.2603890413550791","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@advanced-rest-client/request-hooks-logic","version":"0.1.3","keywords":["api-console","builder","node"],"author":{"name":"Pawel Psztyc, Advanced Rest Client Authors"},"license":"Apache-2.0","_id":"@advanced-rest-client/request-hooks-logic@0.1.3","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues"},"dist":{"shasum":"ac584ca537ad39e311cf2fec1bc14d24bb9c558e","tarball":"https://registry.npmjs.org/@advanced-rest-client/request-hooks-logic/-/request-hooks-logic-0.1.3.tgz","fileCount":4,"integrity":"sha512-otSitOReeHOFvqJ2hBpGKi7VzFKrCp47uAcm+nqZMja38Q+dFKOfKRUnsRznyi3W+iK/imOIp27dG8ZltUhkKw==","signatures":[{"sig":"MEQCIA/iwx+C1QFXC6CQ9GgvlHH0gk6OeyJLXJ2a9zmXjwkiAiBdKxwbxLkPKKk7WUYIxxPMHFt6W77Er+b3GiwEHwJfCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35842},"main":"index.js","files":["index.js"],"public":true,"engines":{"node":">=7.0.0"},"gitHead":"46bf9a115e9c84b19aca4295bc2a0e28ef7b912a","scripts":{"test":"mocha test/*.test.js"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"deprecated":"This component is deprecated","repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"_npmVersion":"5.6.0","description":"Package containing a logic for creating HTTP request / response hooks","directories":{},"_nodeVersion":"9.5.0","dependencies":{"xml-parse":"^0.3.1","url-search-params":"^0.10.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","polymer-cli":"^1.2.0","whatwg-fetch":"github:advanced-rest-client/fetch"},"_npmOperationalInternal":{"tmp":"tmp/request-hooks-logic_0.1.3_1518744853192_0.13688026960047006","host":"s3://npm-registry-packages"}},"3.0.0-preview.1":{"name":"@advanced-rest-client/request-hooks-logic","version":"3.0.0-preview.1","keywords":["api-console","builder","node"],"license":"Apache-2.0","_id":"@advanced-rest-client/request-hooks-logic@3.0.0-preview.1","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"contributors":[{"name":"Pawel Psztyc"},{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues"},"dist":{"shasum":"9f2943cd9317a9662ae6ac39cad47d94e7c683c2","tarball":"https://registry.npmjs.org/@advanced-rest-client/request-hooks-logic/-/request-hooks-logic-3.0.0-preview.1.tgz","fileCount":18,"integrity":"sha512-Sz2fFZZAKYZIaLgnww1o+vFGS+VeJoNvXcl8qnBQMhZ3orS4R5ulnqQkC3j4MmG90oQQQswJAXJy24T1raCnVw==","signatures":[{"sig":"MEQCID1YUNDqZXfVXemJ760YL0VoJIYF9iYFGNYdcjbge7eAAiAgfZohA+QI8FsFP+EBP/+5irm5xWbfNsrlyW9YtRE04Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpoGVCRA9TVsSAnZWagAA3sgQAJHuZDbVkLTs/yCQACYt\nzFWq/8tRCNqYJkCnwfcjpuf50IRzB7OKnDjBaDPo0x+ijlMMlGzLbAgZLpXp\nrICSUByewTcFmOJXgoz3NtXGSt8XLrZ9/GEtZuQwUkoZk56L9uWd1bbkH+57\nqDDYhTgvoVv5i1Ksp9vNTEoMRxaPbtiVzpn+FVh4XYDCAC81oyZMXkqP4veq\n+6oPxm9QeGo4a6pYTL8oGTZeYumxpeVX15h2xKS8f84HMYrx4M4GBQs/fRRI\nV6CgTfEbu12Mxw/b4eSt4D8JPXJOsdQ7ictuqSJA3FGWqULbGvpwy7fT7nJQ\nFE8Gcz4ZG/rTxoumg+ERd57v8zU7+2dELlImtjtqx96iHaLDej1OP5clgI2k\nnmQQig7PsayJjBRixe+4pEOnaAWK518y+Pyfo7lhiHstKKNn+AKnzXENkgP7\ngdmkCNkV9frmXYT1ont5mkcFxGbmeROb5ivx8n4frfnN9IGaRbBIudMYnbWf\nAIN4JNySurwuHlOmFkb47VX9NoVSlk+Q0OjbxNlb8ul3fsAX7QFeommWjY38\nibqrxZd7XzG2cq03T+uuC902GCrhxFNTas2o4VS5emJ51Nb4YIHbB9IFONzH\nbX33IJICnk5/VEjS692LGi8vbUfqoE1u0WKNJMpP+yGJlW/EQN0DgKKCaQsK\n9+jf\r\n=mQZN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"request-hooks-logic.js","public":true,"authors":["Pawel Psztyc","The Advanced REST client authors <arc@mulesoft.com>"],"gitHead":"602d54e8498f81414e244a7ba6f6f17302b4ebe1","scripts":{"lint":"polymer lint request-hooks-logic.html","test":"polymer test --plugin local","prepare":"node dev-lib/prepare.js","test-sauce":"polymer test --plugin sauce --job-name \"request-hooks-logic:local-test\"","update-types":"gen-typescript-declarations --deleteExisting --outDir ."},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"_npmVersion":"6.9.0","description":"Package containing a logic for creating HTTP request / response hooks","directories":{},"_nodeVersion":"10.14.0","dependencies":{"@polymer/polymer":"^3.0.0","@advanced-rest-client/variables-evaluator":"^3.0.0-preview.2","@advanced-rest-client/headers-parser-mixin":"^3.0.0-preview.3"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","jexl":"^2.1.1","mocha":"^5.2.0","sinon":"^7.2.3","fs-extra":"^7.0.1","uglify-js":"^3.5.2","wct-mocha":"^1.0.0","browserify":"^16.2.3","@babel/core":"^7.4.0","@babel/preset-env":"^7.4.2","@polymer/test-fixture":"^4.0.2","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-test-helpers":"^3.0.0","@polymer/iron-component-page":"^4.0.0","@webcomponents/webcomponentsjs":"^2.0.0","babel-plugin-minify-mangle-names":"^0.5.0","@polymer/gen-typescript-declarations":"^1.6.0","@advanced-rest-client/variables-manager":"^3.0.0-preview.1"},"_npmOperationalInternal":{"tmp":"tmp/request-hooks-logic_3.0.0-preview.1_1554416020849_0.7522701785174237","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@advanced-rest-client/request-hooks-logic","version":"3.0.0","keywords":["api-console","builder","node"],"license":"Apache-2.0","_id":"@advanced-rest-client/request-hooks-logic@3.0.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"contributors":[{"name":"Pawel Psztyc"},{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues","email":"arc@mulesoft.com"},"dist":{"shasum":"703417531120fc0df27b0facb61700032ceca01b","tarball":"https://registry.npmjs.org/@advanced-rest-client/request-hooks-logic/-/request-hooks-logic-3.0.0.tgz","fileCount":18,"integrity":"sha512-KAlKGmyIW2Ewqd1U9PWKgBcUMTwPsnxzEnikCaXRyODKi9SiMqd5puh6NCDCEKcSpGyXPchvRM9ZLyTThByBYg==","signatures":[{"sig":"MEQCID+qOs8FK4r8lHnDHA+/pesv4KXxDAk8EIAJNH+AILbjAiBd+cMJ+JpWBJ8Kvd8CVvk1mCb+U3DBgi9e5hoqWBUiBw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":244338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRbwCCRA9TVsSAnZWagAAhsgP/1zJUohsiBo3QRKUtNCt\nM78ZZy0nygbGIdROQXYvwUmHtP13ICPCjm0BGAzPpx6FeRYAtWu/8WWLTJot\nJJXiawpWjUMLN5h3pKVNyw4ioiJyeESc4KKEs44mkPoyPhZJQOgs/OTWnlEe\nYjIViRBQnJym0jfFcigTfBZhcF5v4hQr22tO5YlormlR8Xk1upXweLu7Ne1s\nxd8h+qgXQVaBXfyarhR17FEpBoqF+BBtr8C61wghmafqoK0Pk/tnxswkGIbz\nqw3PmxiijRKzCC5UH3h+y0pz/qSjkiDgn5ORxRhcF1SJDFvTfEF0UiEbOBcb\nevi2QGLPkxhREZbeO/ftUyrh5JjpSiXE8x4pGXBoy+ooRYu5+TrjOGUCW0ko\n1J32C3jvfkNYlmbY2rAXxPWFhZv5v6YoOuIkBH5E3KqyH1kXPpEhvVrxmJDm\nZu839/cXMOQg0OxKeUklxE+ZIueFbtH9ky1q2zSYOCCAqbWq5tBiRcJNiGG6\nkvTClWEEeGe5ErEg3Ihx+3ZbXHON4kZWFWegkDErZmhOVPi8eQEAeLutW47W\nIyybs2qBej+vR3IbH8spdAWfxf7UH5PNqevyfFVreatl9DbhdRCCBw5o3BvX\n6C/HKkPU5sJRQ3r/ylrC5nR3YQNMbXVxafVT1u4LbSCAmZC0oIuXyFpD+aQz\nSH7n\r\n=gKXg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"request-hooks-logic.js","authors":["Pawel Psztyc","The Advanced REST client authors <arc@mulesoft.com>"],"gitHead":"20d640557beac18f00785e4f77a73751712c1d02","scripts":{"lint":"npm run lint:eslint && npm run lint:prettier","test":"karma start --coverage","start":"es-dev-server --app-index demo/index.html --node-resolve --open --watch","format":"npm run format:eslint && npm run format:prettier","prepare":"pika-web && node dev-lib/prepare.js","test:sl":"karma start karma.sl.config.js --legacy --coverage","test:watch":"karma start --auto-watch=true --single-run=false","lint:eslint":"eslint --ext .js,.html .","test:legacy":"karma start --legacy --coverage","update-types":"gen-typescript-declarations --deleteExisting --outDir .","format:eslint":"eslint --ext .js,.html . --fix","lint:prettier":"prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)","format:prettier":"prettier \"**/*.js\" --write","test:legacy:watch":"karma start --legacy --auto-watch=true --single-run=false","start:compatibility":"es-dev-server --app-index demo/index.html --compatibility all --node-resolve --open --watch"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"@pika/web":{"webDependencies":["jexl/lib/Jexl.js"]},"deprecated":"This component is deprecated","repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"_npmVersion":"6.10.2","description":"Package containing a logic for creating HTTP request / response hooks","directories":{},"lint-staged":{"*.js":["eslint --fix","git add"]},"_nodeVersion":"10.15.3","dependencies":{"lit-element":"^2.2.1","@advanced-rest-client/variables-evaluator":"^3.0.0","@advanced-rest-client/headers-parser-mixin":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jexl":"^2.1.1","husky":"^1.0.0","karma":"^4.2.0","sinon":"^7.3.2","fs-extra":"^7.0.1","@pika/web":"^0.4.4","deepmerge":"^4.0.0","uglify-js":"^3.6.0","browserify":"^16.3.0","@babel/core":"^7.5.5","lint-staged":"^9.2.1","es-dev-server":"^1.8.3","@commitlint/cli":"^8.1.0","@open-wc/testing":"^2.2.1","@babel/preset-env":"^7.5.5","@open-wc/testing-karma":"^3.1.5","@commitlint/config-conventional":"^7.0.0","babel-plugin-minify-mangle-names":"^0.5.0","@advanced-rest-client/eslint-config":"^1.0.6","@polymer/gen-typescript-declarations":"^1.6.2","@advanced-rest-client/arc-demo-helper":"^1.0.9","@advanced-rest-client/prettier-config":"^0.1.0","@advanced-rest-client/testing-karma-sl":"^1.0.3","@advanced-rest-client/variables-manager":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/request-hooks-logic_3.0.0_1564851201451_0.09818105940169897","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-02-08T22:39:22.960Z","modified":"2026-04-07T19:30:58.019Z","0.1.0":"2018-02-08T22:39:24.162Z","0.1.1":"2018-02-09T07:56:58.520Z","0.1.2":"2018-02-09T16:32:59.116Z","0.1.3":"2018-02-16T01:34:13.273Z","3.0.0-preview.1":"2019-04-04T22:13:41.003Z","3.0.0":"2019-08-03T16:53:21.591Z"},"bugs":{"url":"https://github.com/advanced-rest-client/request-hooks-logic/issues","email":"arc@mulesoft.com"},"license":"Apache-2.0","homepage":"https://github.com/advanced-rest-client/request-hooks-logic#readme","keywords":["api-console","builder","node"],"repository":{"url":"git+ssh://git@github.com/advanced-rest-client/request-hooks-logic.git","type":"git"},"description":"Package containing a logic for creating HTTP request / response hooks","contributors":[{"name":"Pawel Psztyc"},{"name":"The Advanced REST client authors","email":"arc@mulesoft.com"}],"maintainers":[{"email":"jarrodek@gmail.com","name":"jarrodek"},{"email":"alexperez@mulesoft.com","name":"alexperez_march_2024"},{"email":"elmellidiego@gmail.com","name":"dmacias"}],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/request-hooks-logic.svg)](https://www.npmjs.com/package/@advanced-rest-client/request-hooks-logic)\n\n[![Build Status](https://travis-ci.org/advanced-rest-client/request-hooks-logic.svg?branch=stage)](https://travis-ci.org/advanced-rest-client/request-hooks-logic)\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/advanced-rest-client/request-hooks-logic)\n\n# request-hooks-logic\n\nPackage containing a logic for creating HTTP request / response hooks for Advanced REST Client.\n\nThe documentation for request actions (including data model) can be found in [ARC electron wiki page](https://github.com/advanced-rest-client/arc-electron/wiki/Request-actions).\n\n## Example:\n\n```html\n<request-hooks-logic></request-hooks-logic>\n<script>\n{\n  const actions = [{\n    source: 'response.value',\n    action: 'assign-variable',\n    destination: 'itemId',\n    hasIterator: true,\n    iterator: {\n      source: 'json.*.id',\n      operator: 'equal',\n      condition: 'id2'\n    },\n    conditions: [{\n      enabled: true,\n      source: 'response.status',\n      operator: 'equal',\n      condition: '200'\n    }]\n  }];\n  const request = {};\n  const response = {\n    url: '...',\n    headers: 'content-type: application/json',\n    payload: '{\"json\": [{\"id\": \"id1\", \"value\": \"v1\"}, {\"id\": \"id2\", \"value\": \"v2\"}]}'\n  };\n\n  const logic = document.querySelector('request-hooks-logic');\n  logic.processActions(actions, request, response)\n  .then(() => {\n    // done, variables are set, if any\n  });\n}\n</script>\n```\n\nWhen this action is executed it informs `variables-manager` to set in-memory variable called `itemId` and it's value to be set to `v2`. The logic runner iterates over the response in a path defined as `json.*.id`. When the right object is found by the iterator then the value is set from `source` property.\n\n## API components\n\nThis components is a part of [API components ecosystem](https://elements.advancedrestclient.com/)\n\n## Jexl dependency\n\nPrevious versions of this component included Jexl library. This version do not have\nJexl as a dependency but it is required to run the component.\n\nYou must install [Jexl](https://github.com/TomFrost/Jexl) on your project, and build it for browser.\nSee `dev-lib/` folder for an example of such build.\n\nFinally you have to either pass the pointer to Jexl library to `jexl` property\nor point to a pointer relative to the `window` object.\n\nSetting Jexl pointer:\n\n```javascript\nconst eval = document.querySelector('request-hooks-logic');\neval.jexl = myJexlVariable;\n```\n\nSetting path to Jexl:\n\n```html\n<request-hooks-logic jexlpath=\"ArcVariables.JexlDev\"></request-hooks-logic>\n```\n\nThis expects the Jexl library to be under `window.ArcVariables.JexlDev` variable.\n\n## Usage\n\n### Installation\n```\nnpm install --save @advanced-rest-client/request-hooks-logic\n```\n\n### In a LitElement template\n\n```javascript\nimport { LitElement, html } from 'lit-element';\nimport '@advanced-rest-client/request-hooks-logic/request-hooks-logic.js';\n\nclass SampleElement extends LitElement {\n  render() {\n    return html`\n    <request-hooks-logic jexl=\"${this.jexlRef}\"></request-hooks-logic>\n    `;\n  }\n\n  async processResponse(request, response) {\n    const node = this.shadowRoot.querySelector('request-hooks-logic');\n    const actions = await getActions();\n    await logic.processActions(actions, request, response);\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n### Development\n\n```sh\ngit clone https://github.com/advanced-rest-client/request-hooks-logic\ncd request-hooks-logic\nnpm install\n```\n\n### Running the tests\n\n```sh\nnpm test\n```\n","readmeFilename":"README.md"}