Merge remote-tracking branch 'origin/master' into refactor-platforms

This commit is contained in:
Vyacheslav Matyukhin 2022-03-29 20:46:05 +03:00
commit 4a58389976
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
4 changed files with 165 additions and 176 deletions

191
package-lock.json generated
View File

@ -64,7 +64,7 @@
"devDependencies": {
"@netlify/plugin-nextjs": "^4.2.4",
"@svgr/cli": "^6.2.1",
"netlify-cli": "^9.13.4"
"netlify-cli": "^9.13.6"
}
},
"node_modules/@algolia/cache-browser-local-storage": {
@ -5928,16 +5928,15 @@
"license": "MIT"
},
"node_modules/netlify-cli": {
"version": "9.13.4",
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.4.tgz",
"integrity": "sha512-Ws9qKeeGqmHezoKVzGKCfYr+gh2LJZ1RfCjRX8US+3S1YxFyiHpbR8LN7lNDbZj34jEhZeOrwYwS5zbwJtqHCQ==",
"version": "9.13.6",
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.6.tgz",
"integrity": "sha512-6S+uWGZSroD+2Y+RQj0a5bcsjpNCPrJBt2nJHHg0SnGiSCAkf/h2aRUTrFHiyDB/CDWE9brswggxDvGqdSAEAg==",
"dev": true,
"hasInstallScript": true,
"hasShrinkwrap": true,
"license": "MIT",
"dependencies": {
"@netlify/build": "^26.5.0",
"@netlify/config": "^17.0.18",
"@netlify/build": "^26.5.1",
"@netlify/config": "^17.0.19",
"@netlify/framework-info": "^9.0.2",
"@netlify/local-functions-proxy": "^1.1.1",
"@netlify/plugin-edge-handlers": "^3.0.7",
@ -6007,7 +6006,7 @@
"memoize-one": "^6.0.0",
"minimist": "^1.2.5",
"multiparty": "^4.2.1",
"netlify": "^11.0.0",
"netlify": "^11.0.1",
"netlify-headers-parser": "^6.0.2",
"netlify-onegraph-internal": "0.0.50",
"netlify-redirect-parser": "^13.0.5",
@ -8385,9 +8384,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/build": {
"version": "26.5.0",
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
"integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
"version": "26.5.1",
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.1.tgz",
"integrity": "sha512-sqS/7zyJwp48f1nsKJ9XaZF8FSoJpdCp1EH2g5777rc0hGyYC1AFX0NaJnT3weN47VjsLkaxcfHBUvwo6lyEJw==",
"dev": true,
"dependencies": {
"@bugsnag/js": "^7.0.0",
@ -8396,7 +8395,7 @@
"@netlify/functions-utils": "^4.0.0",
"@netlify/git-utils": "^4.0.0",
"@netlify/plugin-edge-handlers": "^3.0.7",
"@netlify/plugins-list": "^6.16.0",
"@netlify/plugins-list": "^6.17.0",
"@netlify/run-utils": "^4.0.0",
"@netlify/zip-it-and-ship-it": "5.9.0",
"@sindresorhus/slugify": "^2.0.0",
@ -8762,9 +8761,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/is-unicode-supported": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
"dev": true,
"engines": {
"node": ">=12"
@ -9013,9 +9012,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/read-pkg-up/node_modules/type-fest": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
"dev": true,
"engines": {
"node": ">=12.20"
@ -9025,9 +9024,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/read-pkg/node_modules/type-fest": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
"dev": true,
"engines": {
"node": ">=12.20"
@ -9191,9 +9190,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/config": {
"version": "17.0.18",
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.18.tgz",
"integrity": "sha512-iHTCjGtqxwKHMxiN6sbh54u0Zn4VTTZmjjnkNABJ8PwtwyDFFbe2JkFLM7LkikKG0PwP8CeExy+0J+bDTD9RSw==",
"version": "17.0.19",
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.19.tgz",
"integrity": "sha512-GH2fKuqmNt+syuQrWIejB0FqkPZWo1/M1AmiZbcYMHh9oQFnBKo+OixD0BPl66HFKd4/rPKqqwaSg/xZ3Y9mKg==",
"dev": true,
"dependencies": {
"chalk": "^5.0.0",
@ -9209,7 +9208,7 @@
"is-plain-obj": "^4.0.0",
"js-yaml": "^4.0.0",
"map-obj": "^5.0.0",
"netlify": "^11.0.0",
"netlify": "^11.0.1",
"netlify-headers-parser": "^6.0.2",
"netlify-redirect-parser": "13.0.5",
"omit.js": "^2.0.2",
@ -9229,9 +9228,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/chalk": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.0.tgz",
"integrity": "sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==",
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
"integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",
"dev": true,
"engines": {
"node": "^12.17.0 || ^14.13 || >=16.0.0"
@ -9380,9 +9379,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/is-unicode-supported": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
"dev": true,
"engines": {
"node": ">=12"
@ -9524,9 +9523,9 @@
}
},
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/type-fest": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
"dev": true,
"engines": {
"node": ">=12.20"
@ -19674,9 +19673,9 @@
}
},
"node_modules/netlify-cli/node_modules/gh-release-fetch": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.1.tgz",
"integrity": "sha512-gV6V6+T0kKppzh/+YXpI/jl8ZgvjMY4oyWR3DAmPsqk9ILhk8TEneLFjBBM3kO7OfZ3dWCvuQu5M0DSh/Hz21w==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.2.tgz",
"integrity": "sha512-xcX1uaOVDvsm+io4bvJfBFpQCLfoI3DsFay2GBMUtEnNInbNFFZqxTh7X0WIorCDtOmtos5atp2BGHAGEzmlAg==",
"dev": true,
"dependencies": {
"@types/download": "^8.0.0",
@ -23705,9 +23704,9 @@
}
},
"node_modules/netlify-cli/node_modules/minimist": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
"dev": true
},
"node_modules/netlify-cli/node_modules/minimist-options": {
@ -24033,9 +24032,9 @@
"dev": true
},
"node_modules/netlify-cli/node_modules/netlify": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.0.tgz",
"integrity": "sha512-y5wVBOCRneW43AI+sODsmGW+rJR11/Dhv/c12bPxdUxfpp0xyPccQLHGb3m+XbgtkQ+XioYBm2Ys1Rnxem1vrw==",
"version": "11.0.1",
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.1.tgz",
"integrity": "sha512-TkVuTvmhlAtvAdgqb+iA5wMehEHS5QcPOrULm1t809Q6KmZIhe+7b0+jwZSsDqgX3OWK/P3xgk/AU0ZbTv7ufw==",
"dev": true,
"dependencies": {
"@netlify/open-api": "^2.8.0",
@ -24186,9 +24185,9 @@
"dev": true
},
"node_modules/netlify-cli/node_modules/netlify/node_modules/node-fetch": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.0.tgz",
"integrity": "sha512-8xeimMwMItMw8hRrOl3C9/xzU49HV/yE6ORew/l+dxWimO5A4Ra8ld2rerlJvc/O7et5Z1zrWsPX43v1QBjCxw==",
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.3.tgz",
"integrity": "sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==",
"dev": true,
"dependencies": {
"data-uri-to-buffer": "^4.0.0",
@ -30582,9 +30581,9 @@
}
},
"node_modules/netlify-cli/node_modules/typescript": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz",
"integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==",
"version": "4.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
@ -38872,13 +38871,13 @@
"dev": true
},
"netlify-cli": {
"version": "9.13.4",
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.4.tgz",
"integrity": "sha512-Ws9qKeeGqmHezoKVzGKCfYr+gh2LJZ1RfCjRX8US+3S1YxFyiHpbR8LN7lNDbZj34jEhZeOrwYwS5zbwJtqHCQ==",
"version": "9.13.6",
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.6.tgz",
"integrity": "sha512-6S+uWGZSroD+2Y+RQj0a5bcsjpNCPrJBt2nJHHg0SnGiSCAkf/h2aRUTrFHiyDB/CDWE9brswggxDvGqdSAEAg==",
"dev": true,
"requires": {
"@netlify/build": "^26.5.0",
"@netlify/config": "^17.0.18",
"@netlify/build": "^26.5.1",
"@netlify/config": "^17.0.19",
"@netlify/framework-info": "^9.0.2",
"@netlify/local-functions-proxy": "^1.1.1",
"@netlify/plugin-edge-handlers": "^3.0.7",
@ -38948,7 +38947,7 @@
"memoize-one": "^6.0.0",
"minimist": "^1.2.5",
"multiparty": "^4.2.1",
"netlify": "^11.0.0",
"netlify": "^11.0.1",
"netlify-headers-parser": "^6.0.2",
"netlify-onegraph-internal": "0.0.50",
"netlify-redirect-parser": "^13.0.5",
@ -40675,9 +40674,9 @@
}
},
"@netlify/build": {
"version": "26.5.0",
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
"integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
"version": "26.5.1",
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.1.tgz",
"integrity": "sha512-sqS/7zyJwp48f1nsKJ9XaZF8FSoJpdCp1EH2g5777rc0hGyYC1AFX0NaJnT3weN47VjsLkaxcfHBUvwo6lyEJw==",
"dev": true,
"requires": {
"@bugsnag/js": "^7.0.0",
@ -40686,7 +40685,7 @@
"@netlify/functions-utils": "^4.0.0",
"@netlify/git-utils": "^4.0.0",
"@netlify/plugin-edge-handlers": "^3.0.7",
"@netlify/plugins-list": "^6.16.0",
"@netlify/plugins-list": "^6.17.0",
"@netlify/run-utils": "^4.0.0",
"@netlify/zip-it-and-ship-it": "5.9.0",
"@sindresorhus/slugify": "^2.0.0",
@ -40934,9 +40933,9 @@
"dev": true
},
"is-unicode-supported": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
"dev": true
},
"locate-path": {
@ -41069,9 +41068,9 @@
},
"dependencies": {
"type-fest": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
"dev": true
}
}
@ -41088,9 +41087,9 @@
},
"dependencies": {
"type-fest": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
"dev": true
}
}
@ -41194,9 +41193,9 @@
}
},
"@netlify/config": {
"version": "17.0.18",
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.18.tgz",
"integrity": "sha512-iHTCjGtqxwKHMxiN6sbh54u0Zn4VTTZmjjnkNABJ8PwtwyDFFbe2JkFLM7LkikKG0PwP8CeExy+0J+bDTD9RSw==",
"version": "17.0.19",
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.19.tgz",
"integrity": "sha512-GH2fKuqmNt+syuQrWIejB0FqkPZWo1/M1AmiZbcYMHh9oQFnBKo+OixD0BPl66HFKd4/rPKqqwaSg/xZ3Y9mKg==",
"dev": true,
"requires": {
"chalk": "^5.0.0",
@ -41212,7 +41211,7 @@
"is-plain-obj": "^4.0.0",
"js-yaml": "^4.0.0",
"map-obj": "^5.0.0",
"netlify": "^11.0.0",
"netlify": "^11.0.1",
"netlify-headers-parser": "^6.0.2",
"netlify-redirect-parser": "13.0.5",
"omit.js": "^2.0.2",
@ -41226,9 +41225,9 @@
},
"dependencies": {
"chalk": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.0.tgz",
"integrity": "sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==",
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
"integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",
"dev": true
},
"dot-prop": {
@ -41314,9 +41313,9 @@
"dev": true
},
"is-unicode-supported": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
"dev": true
},
"locate-path": {
@ -41395,9 +41394,9 @@
"dev": true
},
"type-fest": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
"dev": true
},
"yocto-queue": {
@ -49167,9 +49166,9 @@
}
},
"gh-release-fetch": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.1.tgz",
"integrity": "sha512-gV6V6+T0kKppzh/+YXpI/jl8ZgvjMY4oyWR3DAmPsqk9ILhk8TEneLFjBBM3kO7OfZ3dWCvuQu5M0DSh/Hz21w==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.2.tgz",
"integrity": "sha512-xcX1uaOVDvsm+io4bvJfBFpQCLfoI3DsFay2GBMUtEnNInbNFFZqxTh7X0WIorCDtOmtos5atp2BGHAGEzmlAg==",
"dev": true,
"requires": {
"@types/download": "^8.0.0",
@ -52227,9 +52226,9 @@
}
},
"minimist": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
"dev": true
},
"minimist-options": {
@ -52479,9 +52478,9 @@
"dev": true
},
"netlify": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.0.tgz",
"integrity": "sha512-y5wVBOCRneW43AI+sODsmGW+rJR11/Dhv/c12bPxdUxfpp0xyPccQLHGb3m+XbgtkQ+XioYBm2Ys1Rnxem1vrw==",
"version": "11.0.1",
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.1.tgz",
"integrity": "sha512-TkVuTvmhlAtvAdgqb+iA5wMehEHS5QcPOrULm1t809Q6KmZIhe+7b0+jwZSsDqgX3OWK/P3xgk/AU0ZbTv7ufw==",
"dev": true,
"requires": {
"@netlify/open-api": "^2.8.0",
@ -52494,9 +52493,9 @@
},
"dependencies": {
"node-fetch": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.0.tgz",
"integrity": "sha512-8xeimMwMItMw8hRrOl3C9/xzU49HV/yE6ORew/l+dxWimO5A4Ra8ld2rerlJvc/O7et5Z1zrWsPX43v1QBjCxw==",
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.3.tgz",
"integrity": "sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==",
"dev": true,
"requires": {
"data-uri-to-buffer": "^4.0.0",
@ -57615,9 +57614,9 @@
}
},
"typescript": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz",
"integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==",
"version": "4.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
"dev": true
},
"uglify-js": {

View File

@ -82,6 +82,6 @@
"devDependencies": {
"@netlify/plugin-nextjs": "^4.2.4",
"@svgr/cli": "^6.2.1",
"netlify-cli": "^9.13.4"
"netlify-cli": "^9.13.6"
}
}

View File

@ -31,7 +31,8 @@ case $platform in
echo "Cookie found:"
echo "$cookie"
echo "Running: netlify env:set INFER_COOKIE '\$cookie'"
netlify env:set INFER_COOKIE "$cookie"
# netlify env:set INFER_COOKIE "$cookie"
heroku config:set INFER_COOKIE="$cookie" -a metaforecast-backend
;;
"1" )
echo "Platform: Good Judgment Open"
@ -55,7 +56,8 @@ case $platform in
echo "Cookie found:"
echo "$cookie"
echo "Running: netlify env:set GOODJUDGMENTOPENCOOKIE '\$cookie'"
netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie"
# netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie"
heroku config:set GOODJUDGMENTOPENCOOKIE="$cookie" -a metaforecast-backend
;;
* )
echo "Option not in {0,1}, exiting."

View File

@ -6,21 +6,22 @@ import { Forecast, Platform } from "./";
/* Definitions */
let graphQLendpoint =
"https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-5";
"https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-5"; // "https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-4"// "https://api.thegraph.com/subgraphs/name/tokenunion/polymarket-matic"//"https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket"//"https://subgraph-backup.poly.market/subgraphs/name/TokenUnion/polymarket"//'https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket3'
let units = 10 ** 6;
async function fetchAllContractInfo() {
// for info which the polymarket graphql API
let response = await axios
.get(
"https://strapi-matic.poly.market/markets?active=true&_sort=volume:desc&_limit=-1"
"https://strapi-matic.poly.market/markets?active=true&_sort=volume:desc&closed=false&_limit=-1"
// "https://strapi-matic.poly.market/markets?active=true&_sort=volume:desc&_limit=-1" to get all markets, including closed ones
)
.then((query) => query.data);
response = response.filter((res) => res.closed != true);
return response;
}
async function fetchAllContractData() {
async function fetchIndividualContractData(marketMakerAddress) {
let daysSinceEra = Math.round(Date.now() / (1000 * 24 * 60 * 60)) - 7; // last week
let response = await axios({
url: graphQLendpoint,
@ -31,6 +32,7 @@ async function fetchAllContractData() {
{
fixedProductMarketMakers(first: 1000
where: {
id: "${marketMakerAddress}"
lastActiveDay_gt: ${daysSinceEra}
}){
id
@ -56,91 +58,77 @@ async function fetchAllContractData() {
})
.then((res) => res.data)
.then((res) => res.data.fixedProductMarketMakers);
// console.log(response)
return response;
}
export const polymarket: Platform = {
name: "polymarket",
async fetcher() {
let allData = await fetchAllContractData();
let allInfo = await fetchAllContractInfo();
let used = process.memoryUsage().heapUsed / 1024 / 1024;
console.log(
`The script uses approximately ${Math.round(used * 100) / 100} MB`
);
let infos = {};
for (let info of allInfo) {
let address = info.marketMakerAddress;
let results: Forecast[] = [];
let webpageEndpointData = await fetchAllContractInfo();
for (let marketInfo of webpageEndpointData) {
let address = marketInfo.marketMakerAddress;
let addressLowerCase = address.toLowerCase();
if (
marketInfo.outcomes[0] != "Long" ||
marketInfo.outcomes[1] != "Long"
) {
let moreMarketAnswer = await fetchIndividualContractData(
addressLowerCase
);
if (moreMarketAnswer.length > 0) {
let moreMarketInfo = moreMarketAnswer[0];
let id = `polymarket-${addressLowerCase.slice(0, 10)}`;
// console.log(id);
let numforecasts = Number(moreMarketInfo.tradesQuantity);
let tradevolume =
(Number(moreMarketInfo.collateralBuyVolume) +
Number(moreMarketInfo.collateralSellVolume)) /
units;
let liquidity = Number(moreMarketInfo.liquidityParameter) / units;
// let isbinary = Number(moreMarketInfo.conditions[0].outcomeSlotCount) == 2
// let percentage = Number(moreMarketInfo.outcomeTokenPrices[0]) * 100
// let percentageFormatted = isbinary ? (percentage.toFixed(0) + "%") : "none"
let options = [];
for (let outcome in moreMarketInfo.outcomeTokenPrices) {
options.push({
name: marketInfo.outcomes[outcome],
probability: moreMarketInfo.outcomeTokenPrices[outcome],
type: "PROBABILITY",
});
}
if (info.outcomes[0] != "Long" || info.outcomes[1] != "Long")
infos[addressLowerCase] = {
title: info.question,
url: "https://polymarket.com/market/" + info.slug,
address: address,
description: info.description,
outcomes: info.outcomes,
options: [],
category: info.category,
};
}
let results = [];
for (let data of allData) {
let addressLowerCase = data.id;
if (infos[addressLowerCase] != undefined) {
let id = `polymarket-${addressLowerCase.slice(0, 10)}`;
let info = infos[addressLowerCase];
let numforecasts = Number(data.tradesQuantity);
let tradevolume =
(Number(data.collateralBuyVolume) +
Number(data.collateralSellVolume)) /
units;
let liquidity = Number(data.liquidityParameter) / units;
// let isbinary = Number(data.conditions[0].outcomeSlotCount) == 2
// let percentage = Number(data.outcomeTokenPrices[0]) * 100
// let percentageFormatted = isbinary ? (percentage.toFixed(0) + "%") : "none"
let options = [];
for (let outcome in data.outcomeTokenPrices) {
options.push({
name: info.outcomes[outcome],
probability: data.outcomeTokenPrices[outcome],
type: "PROBABILITY",
});
}
let result: Forecast = {
id: id,
title: info.title,
url: info.url,
platform: "PolyMarket",
description: info.description,
options: options,
timestamp: new Date().toISOString(),
qualityindicators: {
numforecasts: numforecasts.toFixed(0),
liquidity: liquidity.toFixed(2),
tradevolume: tradevolume.toFixed(2),
stars: calculateStars("Polymarket", {
liquidity,
option: options[0],
volume: tradevolume,
}),
},
extra: {
address: info.address,
},
};
if (info.category != "Sports") {
results.push(result);
let result: Forecast = {
id: id,
title: marketInfo.question,
url: "https://polymarket.com/market/" + marketInfo.slug,
platform: "PolyMarket",
description: marketInfo.description,
options: options,
timestamp: new Date().toISOString(),
qualityindicators: {
numforecasts: numforecasts.toFixed(0),
liquidity: liquidity.toFixed(2),
tradevolume: tradevolume.toFixed(2),
stars: calculateStars("Polymarket", {
liquidity,
option: options[0],
volume: tradevolume,
}),
},
extra: {
address: marketInfo.address,
},
/*
*/
};
if (marketInfo.category !== "Sports") {
results.push(result);
}
}
}
}
return results;
},
};