Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 377a7e7741 chore(release): 1.0.0-develop.9 [skip ci]
# [1.0.0-develop.9](https://git.lumeweb.com/LumeWeb/resolver-module-eth/compare/v1.0.0-develop.8...v1.0.0-develop.9) (2023-10-26)

### Bug Fixes

* only push a record if we have a content response ([65dffe2](65dffe202e))
2023-10-26 16:48:29 +00:00
Derrick Hammer b16e80d7a0
Merge remote-tracking branch 'origin/develop' into develop 2023-10-26 12:46:35 -04:00
Derrick Hammer 65dffe202e
fix: only push a record if we have a content response 2023-10-26 12:46:30 -04:00
4 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,10 @@
# [1.0.0-develop.9](https://git.lumeweb.com/LumeWeb/resolver-module-eth/compare/v1.0.0-develop.8...v1.0.0-develop.9) (2023-10-26)
### Bug Fixes
* only push a record if we have a content response ([65dffe2](https://git.lumeweb.com/LumeWeb/resolver-module-eth/commit/65dffe202ec82a7bcfd16e959445825ffa136938))
# [1.0.0-develop.8](https://git.lumeweb.com/LumeWeb/resolver-module-eth/compare/v1.0.0-develop.7...v1.0.0-develop.8) (2023-10-12)
# [1.0.0-develop.7](https://git.lumeweb.com/LumeWeb/resolver-module-eth/compare/v1.0.0-develop.6...v1.0.0-develop.7) (2023-09-04)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/resolver-module-eth",
"version": "1.0.0-develop.8",
"version": "1.0.0-develop.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/resolver-module-eth",
"version": "1.0.0-develop.8",
"version": "1.0.0-develop.9",
"dependencies": {
"@ensdomains/ensjs": "^3.0.0-alpha.65",
"@lumeweb/kernel-eth-client": "^0.1.0-develop.17",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/resolver-module-eth",
"version": "1.0.0-develop.8",
"version": "1.0.0-develop.9",
"main": "lib/index.js",
"type": "module",
"readme": "ERROR: No README data found!",

View File

@ -93,10 +93,12 @@ export default class Eth extends AbstractResolverModule {
return resolverError(e);
}
records.push({
type: DNS_RECORD_TYPE.CONTENT,
value: `${content.protocolType}://${content.decoded}` as string,
});
if (content) {
records.push({
type: DNS_RECORD_TYPE.CONTENT,
value: `${content.protocolType}://${content.decoded}` as string,
});
}
}
if ([DNS_RECORD_TYPE.CUSTOM].includes(options.type)) {