@twilio/notifications
Advanced tools
Comparing version 2.0.0-rc.1 to 2.0.0-rc.3
@@ -1093,15 +1093,10 @@ /* | ||
case 10: | ||
if (registrationId === this.registrationId) { | ||
this.registrationId = null; | ||
this.currentState.notificationId = ""; | ||
logInstance.debug("Current registration removed for ".concat(this.channelType)); | ||
} else { | ||
logInstance.debug("Registration removed for ".concat(this.channelType)); | ||
} | ||
_context3.next = 17; | ||
this.registrationId = null; | ||
this.currentState.notificationId = ""; | ||
logInstance.debug("Registration removed for ".concat(this.channelType)); | ||
_context3.next = 19; | ||
break; | ||
case 13: | ||
_context3.prev = 13; | ||
case 15: | ||
_context3.prev = 15; | ||
_context3.t0 = _context3["catch"](6); | ||
@@ -1111,3 +1106,3 @@ logInstance.error("Failed to remove registration ", this.channelType, _context3.t0); | ||
case 17: | ||
case 19: | ||
case "end": | ||
@@ -1117,3 +1112,3 @@ return _context3.stop(); | ||
} | ||
}, _callee3, this, [[6, 13]]); | ||
}, _callee3, this, [[6, 15]]); | ||
})); | ||
@@ -1120,0 +1115,0 @@ |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { EventEmitter } from "events"; | ||
@@ -2,0 +3,0 @@ import { TwilsockClient, ConnectionState } from "twilsock"; |
@@ -622,15 +622,10 @@ /* | ||
case 10: | ||
if (registrationId === this.registrationId) { | ||
this.registrationId = null; | ||
this.currentState.notificationId = ""; | ||
logInstance.debug("Current registration removed for ".concat(this.channelType)); | ||
} else { | ||
logInstance.debug("Registration removed for ".concat(this.channelType)); | ||
} | ||
_context3.next = 17; | ||
this.registrationId = null; | ||
this.currentState.notificationId = ""; | ||
logInstance.debug("Registration removed for ".concat(this.channelType)); | ||
_context3.next = 19; | ||
break; | ||
case 13: | ||
_context3.prev = 13; | ||
case 15: | ||
_context3.prev = 15; | ||
_context3.t0 = _context3["catch"](6); | ||
@@ -640,3 +635,3 @@ logInstance.error("Failed to remove registration ", this.channelType, _context3.t0); | ||
case 17: | ||
case 19: | ||
case "end": | ||
@@ -646,3 +641,3 @@ return _context3.stop(); | ||
} | ||
}, _callee3, this, [[6, 13]]); | ||
}, _callee3, this, [[6, 15]]); | ||
})); | ||
@@ -649,0 +644,0 @@ |
@@ -6,2 +6,20 @@ # Change Log | ||
## [2.0.0-rc.3](https://github.com/twilio/twilio-notifications.js/compare/@twilio/notifications@2.0.0-rc.2...@twilio/notifications@2.0.0-rc.3) (2022-07-25) | ||
**Note:** Version bump only for package @twilio/notifications | ||
## [2.0.0-rc.2](https://github.com/twilio/twilio-notifications.js/compare/@twilio/notifications@2.0.0-rc.1...@twilio/notifications@2.0.0-rc.2) (2022-07-20) | ||
### Bug Fixes | ||
* Revert "Handle registration removal with other token" ([0750b24](https://github.com/twilio/twilio-notifications.js/commit/0750b246a10bd3b9c5c6225d6fe9799795f9b09b)) | ||
* Rollback twilsock type, update loglevel version ([b8c4b2c](https://github.com/twilio/twilio-notifications.js/commit/b8c4b2c174a8a2cf413b0ef6c719fd45e0cfce6d)) | ||
## [2.0.0-rc.1](https://github.com/twilio/twilio-notifications.js/compare/@twilio/notifications@2.0.0-rc.0...@twilio/notifications@2.0.0-rc.1) (2022-07-05) | ||
@@ -8,0 +26,0 @@ |
@@ -137,10 +137,5 @@ /* | ||
await new operationRetrier.AsyncRetrier(Object.assign(retrierConfig, { maxAttemptsCount: 3 })).run(() => this.twilsock.delete(url, headers, payload, productId)); | ||
if (registrationId === this.registrationId) { | ||
this.registrationId = null; | ||
this.currentState.notificationId = ""; | ||
logger.log.debug(`Current registration removed for ${this.channelType}`); | ||
} | ||
else { | ||
logger.log.debug(`Registration removed for ${this.channelType}`); | ||
} | ||
this.registrationId = null; | ||
this.currentState.notificationId = ""; | ||
logger.log.debug(`Registration removed for ${this.channelType}`); | ||
} | ||
@@ -147,0 +142,0 @@ catch (err) { |
{ | ||
"name": "@twilio/notifications", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.3", | ||
"description": "Client library for Twilio Notifications service", | ||
@@ -42,7 +42,7 @@ "author": "Twilio", | ||
"@babel/runtime": "^7.17.0", | ||
"@twilio/declarative-type-validator": "^0.2.0-rc.2", | ||
"@twilio/operation-retrier": "^4.0.8-rc.3", | ||
"@twilio/declarative-type-validator": "^0.2.0-rc.3", | ||
"@twilio/operation-retrier": "^4.0.8-rc.4", | ||
"core-js": "^3.17.3", | ||
"loglevel": "^1.6.3", | ||
"twilsock": "^0.13.0-rc.4", | ||
"loglevel": "^1.8.0", | ||
"twilsock": "~0.12.2", | ||
"uuid": "^3.4.0" | ||
@@ -49,0 +49,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1542925
21985
+ Added@twilio/declarative-type-validator@0.1.11(transitive)
+ Addedtwilsock@0.12.2(transitive)
- Removedtwilsock@0.13.7(transitive)
Updatedloglevel@^1.8.0
Updatedtwilsock@~0.12.2