Version: 1.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.1.01.1.11.1.21.1.31.1.41.1.51.1.61.1.71.1.81.1.91.1.101.2.01.2.11.2.21.2.31.2.41.2.51.2.61.2.71.2.81.2.91.2.101.2.111.2.121.2.131.2.141.2.151.2.161.2.181.2.191.2.201.2.211.2.221.2.231.2.241.2.251.2.261.2.271.2.291.2.301.2.311.2.321.2.332.0.02.0.12.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.92.0.102.0.112.0.122.0.132.0.142.0.152.0.162.0.172.0.182.0.192.0.202.0.212.1.02.1.12.1.22.1.32.1.42.1.52.1.62.1.72.1.82.1.92.1.10-cross-12.1.10-cross-1.12.1.10-cross-1.22.1.10-cross-1.32.1.10-cross-1.42.1.10-cross-1.52.1.10-cross-1.62.1.10-cross-1.72.1.10-cross-1.82.1.10-cross-1.92.1.10-cross-1.102.1.10-cross-1.112.1.10-cross-1.122.1.10-cross-1.132.1.10-cross-1.142.1.10-cross-1.152.1.10-cross-1.162.1.10-cross-1.172.1.10-cross-1.182.1.10-cross-1.192.1.10-cross-1.202.1.10-cross-1.212.1.10-cross-1.222.1.10-cross-1.232.1.10-cross-1.242.1.10-cross-1.252.1.10-cross-1.262.1.10-cross-1.272.1.10-cross-1.282.1.10-cross-1.292.1.10-cross-1.302.1.10-cross-1.312.1.10-cross-1.322.1.10-cross-1.332.1.10-cross-1.342.1.10-cross-1.352.1.10-cross-1.362.1.10-cross-1.372.1.10-cross-1.382.1.10-cross-1.392.1.10-cross-1.402.1.10-cross-1.412.1.10-cross-1.422.1.10-cross-1.432.1.10-cross-1.442.1.10-cross-1.452.1.10-cross-1.462.1.10-cross-1.472.1.10-cross-1.482.1.10-cross-1.492.1.10-cross-1.502.1.10-cross-1.512.1.102.5.33.0.13.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.93.0.103.0.113.0.123.0.133.0.143.0.153.0.163.0.173.0.183.0.193.0.203.0.213.0.223.0.233.1.03.1.13.1.23.1.33.2.1-https3.2.13.2.2-https3.2.3-https3.2.4-https3.2.5-https3.2.6-https3.2.7-https3.2.8-https3.2.9-https3.2.10-https3.2.11-https3.2.12-https3.3.03.3.13.3.23.3.33.4.13.4.23.4.33.4.43.4.53.4.63.4.73.4.83.5.03.5.13.5.2
const logger = require('../app/Logger')
module.exports = (str) => {
try {
const script = ` "use strict"; return (${str})`
return Function(script)()
}catch(e) {
logger.error(`Fail of transforming string into javascript: ${e.message}\r\n${e.stack}`)
throw e
}