@yuants/agent
Advanced tools
Comparing version 0.7.12 to 0.7.13
@@ -65,3 +65,6 @@ import { UUID, formatTime, getProfit } from '@yuants/data-model'; | ||
// Issue: block access to globalThis and its properties for security | ||
globalThis: {} }, Object.fromEntries(Object.keys(globalThis).map((key) => [key, undefined]))), { | ||
globalThis: {} }, Object.fromEntries(Object.keys(globalThis) | ||
// Issue: Must be identifier, may throw Error: unexpected number | ||
.filter((key) => key.match(/^[_A-Za-z][_A-Za-z0-9]+$/)) | ||
.map((key) => [key, undefined]))), { | ||
// Supply some global variables | ||
@@ -68,0 +71,0 @@ PositionVariant, |
@@ -69,3 +69,6 @@ "use strict"; | ||
// Issue: block access to globalThis and its properties for security | ||
globalThis: {} }, Object.fromEntries(Object.keys(globalThis).map((key) => [key, undefined]))), { | ||
globalThis: {} }, Object.fromEntries(Object.keys(globalThis) | ||
// Issue: Must be identifier, may throw Error: unexpected number | ||
.filter((key) => key.match(/^[_A-Za-z][_A-Za-z0-9]+$/)) | ||
.map((key) => [key, undefined]))), { | ||
// Supply some global variables | ||
@@ -72,0 +75,0 @@ PositionVariant: protocol_1.PositionVariant, |
{ | ||
"name": "@yuants/agent", | ||
"version": "0.7.12", | ||
"version": "0.7.13", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
{ | ||
"libraries/agent/CHANGELOG.json": "f4f5a0a9e2407f88daa2764f172f923b1af62e85", | ||
"libraries/agent/CHANGELOG.md": "04f15efabc6642f60cc0b48a22c10ec11a890a4f", | ||
"libraries/agent/CHANGELOG.json": "3f39b9afd6eb08959fbb5150fb157a61b4396e24", | ||
"libraries/agent/CHANGELOG.md": "bc7964ad53cfb09f17d1e4d0944e8aef63ae4150", | ||
"libraries/agent/api-extractor.json": "62f4fd324425b9a235f0c117975967aab09ced0c", | ||
@@ -9,5 +9,5 @@ "libraries/agent/config/jest.config.json": "4bb17bde3ee911163a3edb36a6eb71491d80b1bd", | ||
"libraries/agent/etc/agent.api.md": "81ef52627777259d45237bdb4bd114e760675c9f", | ||
"libraries/agent/package.json": "dfa0b3255aa3eace95efbb5b4a4d7df22972d357", | ||
"libraries/agent/package.json": "2238ee5e6d51caa3cb570844e50453c6a5e01e9c", | ||
"libraries/agent/src/AgentScene.ts": "0deb6a8244523b8ef721c492b1539fe087f9c3eb", | ||
"libraries/agent/src/AgentUnit.ts": "91b2d37b2246965b6dab625eb8d947f250b42736", | ||
"libraries/agent/src/AgentUnit.ts": "61a10ee6c1cbf99a7007859126206d65baae4806", | ||
"libraries/agent/src/hooks/basic-set.ts": "fc1f93dcb4b856bf0b4e43c4317f4afb5e58899c", | ||
@@ -14,0 +14,0 @@ "libraries/agent/src/hooks/index.ts": "f5e72a407ba4e6786afd89ba870454778bc5da05", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
272169
4269