chore: required node engine update

This commit is contained in:
ppedziwiatr
2022-02-08 10:19:45 +01:00
parent d38209e3ed
commit 227e0899d5
4 changed files with 16 additions and 13 deletions

View File

@@ -64,6 +64,7 @@ PRs are welcome! :-) Also, feel free to submit [issues](https://github.com/redst
In case of creating a PR - please use [semantic commit messages](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716). In case of creating a PR - please use [semantic commit messages](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716).
### Installation and import ### Installation and import
SDK requires node.js version 16.5+.
#### Using npm #### Using npm
`npm install redstone-smartweave` `npm install redstone-smartweave`

View File

@@ -7,7 +7,7 @@
"types": "./lib/types/index.d.ts", "types": "./lib/types/index.d.ts",
"sideEffects": false, "sideEffects": false,
"engines": { "engines": {
"node": ">=14" "node": ">=16.5"
}, },
"scripts": { "scripts": {
"build:cjs": "tsc -b tsconfig.json && tsc-alias -p tsconfig.json", "build:cjs": "tsc -b tsconfig.json && tsc-alias -p tsconfig.json",
@@ -61,7 +61,7 @@
"lodash": "^4.17.21", "lodash": "^4.17.21",
"redstone-isomorphic": "^1.0.2", "redstone-isomorphic": "^1.0.2",
"tslog": "^3.2.2", "tslog": "^3.2.2",
"undici": "^4.12.1" "undici": "^4.12.2"
}, },
"devDependencies": { "devDependencies": {
"@types/cheerio": "^0.22.30", "@types/cheerio": "^0.22.30",

View File

@@ -12,8 +12,8 @@ import { TsLogFactory } from '../src/logging/node/TsLogFactory';
const logger = LoggerFactory.INST.create('Contract'); const logger = LoggerFactory.INST.create('Contract');
LoggerFactory.use(new TsLogFactory()); //LoggerFactory.use(new TsLogFactory());
LoggerFactory.INST.logLevel('error'); //LoggerFactory.INST.logLevel('error');
LoggerFactory.INST.logLevel('info', 'Contract'); LoggerFactory.INST.logLevel('info', 'Contract');
LoggerFactory.INST.logLevel('debug', 'RedstoneGatewayInteractionsLoader'); LoggerFactory.INST.logLevel('debug', 'RedstoneGatewayInteractionsLoader');
LoggerFactory.INST.logLevel('error', 'DefaultStateEvaluator'); LoggerFactory.INST.logLevel('error', 'DefaultStateEvaluator');
@@ -30,7 +30,7 @@ async function main() {
const smartweave = SmartWeaveNodeFactory.memCachedBased(arweave) const smartweave = SmartWeaveNodeFactory.memCachedBased(arweave)
.setInteractionsLoader( .setInteractionsLoader(
new RedstoneGatewayInteractionsLoader('https://gateway.redstone.finance', { notCorrupted: true }) new RedstoneGatewayInteractionsLoader('https://gateway.redstone.finance/', { notCorrupted: true })
) )
.setDefinitionLoader( .setDefinitionLoader(
new RedstoneGatewayContractDefinitionLoader('https://gateway.redstone.finance', arweave, new MemCache()) new RedstoneGatewayContractDefinitionLoader('https://gateway.redstone.finance', arweave, new MemCache())

View File

@@ -5662,10 +5662,12 @@ rechoir@0.7.0:
dependencies: dependencies:
resolve "^1.9.0" resolve "^1.9.0"
redstone-isomorphic@^1.0.0: redstone-isomorphic@^1.0.2:
version "1.0.0" version "1.0.2"
resolved "https://registry.yarnpkg.com/redstone-isomorphic/-/redstone-isomorphic-1.0.0.tgz#1be8e5e68aaacfe19d4f87153dbc4083dcf38a4d" resolved "https://registry.yarnpkg.com/redstone-isomorphic/-/redstone-isomorphic-1.0.2.tgz#d1cfccca24c860212d3a3d8d76103da0e9445a24"
integrity sha512-F0/hDePYr0SWTzjB1+A6oI64jlsR5Z3bKvHDQ4zYaf++f/MzdgF37CmXeOINt4GJQ60hVBuQBHgpXlo/M4NcsA== integrity sha512-UK4oxxJmb4nowAM3p47CNwkiKFA0Ewn1i7LMU8ix7fdCefSNoMetar3LATyBYoCdGSNJKa8tLLvbnWfSfwwO5w==
dependencies:
undici "^4.12.2"
regexpp@^3.1.0: regexpp@^3.1.0:
version "3.2.0" version "3.2.0"
@@ -6656,10 +6658,10 @@ underscore@>=1.3.1:
resolved "https://registry.npmjs.org/underscore/-/underscore-1.13.2.tgz" resolved "https://registry.npmjs.org/underscore/-/underscore-1.13.2.tgz"
integrity sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g== integrity sha512-ekY1NhRzq0B08g4bGuX4wd2jZx5GnKz6mKSqFL4nqBlfyMGiG10gDFhDTMEfYmDL6Jy0FUIZp7wiRB+0BP7J2g==
undici@^4.12.1: undici@^4.12.2:
version "4.12.1" version "4.13.0"
resolved "https://registry.npmjs.org/undici/-/undici-4.12.1.tgz" resolved "https://registry.yarnpkg.com/undici/-/undici-4.13.0.tgz#7d10fe150c3241a6b3b0eba80eff59c9fb40f359"
integrity sha512-MSfap7YiQJqTPP12C11PFRs9raZuVicDbwsZHTjB0a8+SsCqt7KdUis54f373yf7ZFhJzAkGJLaKm0202OIxHg== integrity sha512-8lk8S/f2V0VUNGf2scU2b+KI2JSzEQLdCyRNRF3XmHu+5jectlSDaPSBCXAHFaUlt1rzngzOBVDgJS9/Gue/KA==
universalify@^0.1.2: universalify@^0.1.2:
version "0.1.2" version "0.1.2"