Skip to content

Commit 9097306

Browse files
docs: update .pubnub.yml for PAM v3.
Updated .pubnub.yml for PAM v3 feature. test: removed grantToken uuid validation test. Removed granToken uuid validation integration test.
1 parent 88027bb commit 9097306

File tree

13 files changed

+49
-100
lines changed

13 files changed

+49
-100
lines changed

.pubnub.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,9 @@ changelog:
929929
version: v4.0.0
930930
features:
931931
access:
932-
- ACCESS-GRANT
933-
- ACCESS-SECRET-KEY-ALL-ACCESS
934-
- ACCESS-GRANT-MANAGE
935-
- ACCESS-GRANT-DELETE
936-
- ACCESS-TOKEN-MANAGEMENT
937-
- ACCESS-OBJECTS-V2-MANAGEMENT
932+
- ACCESS-GRANT-TOKEN
933+
- ACCESS-PARSE-TOKEN
934+
- ACCESS-SET-TOKEN
938935
channel-groups:
939936
- CHANNEL-GROUPS-ADD-CHANNELS
940937
- CHANNEL-GROUPS-REMOVE-CHANNELS

dist/titanium/pubnub.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! 4.33.0 / Consumer */
1+
/*! 4.32.1 / Consumer */
22
exports["PubNub"] =
33
/******/ (function(modules) { // webpackBootstrap
44
/******/ // The module cache
@@ -566,7 +566,7 @@ var _default = function () {
566566
}, {
567567
key: "getVersion",
568568
value: function getVersion() {
569-
return '4.33.0';
569+
return '4.32.1';
570570
}
571571
}, {
572572
key: "_addPnsdkSuffix",
@@ -8772,9 +8772,9 @@ var endpoint = {
87728772
},
87738773
handleResponse: function () {
87748774
var _handleResponse = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(_ref3, res, params) {
8775-
var _params$cipherKey, _res$response$name;
8775+
var _res$response$name;
87768776

8777-
var PubNubFile, config, cryptography, body, _params$cipherKey2;
8777+
var PubNubFile, config, cryptography, body, _params$cipherKey;
87788778

87798779
return _regenerator["default"].wrap(function _callee$(_context) {
87808780
while (1) {
@@ -8783,13 +8783,13 @@ var endpoint = {
87838783
PubNubFile = _ref3.PubNubFile, config = _ref3.config, cryptography = _ref3.cryptography;
87848784
body = res.response.body;
87858785

8786-
if (!(PubNubFile.supportsEncryptFile && ((_params$cipherKey = params.cipherKey) !== null && _params$cipherKey !== void 0 ? _params$cipherKey : config.cipherKey))) {
8786+
if (!(PubNubFile.supportsEncryptFile && config.cipherKey)) {
87878787
_context.next = 6;
87888788
break;
87898789
}
87908790

87918791
_context.next = 5;
8792-
return cryptography.decrypt((_params$cipherKey2 = params.cipherKey) !== null && _params$cipherKey2 !== void 0 ? _params$cipherKey2 : config.cipherKey, body);
8792+
return cryptography.decrypt((_params$cipherKey = params.cipherKey) !== null && _params$cipherKey !== void 0 ? _params$cipherKey : config.cipherKey, body);
87938793

87948794
case 5:
87958795
body = _context.sent;

dist/titanium/pubnub.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web/pubnub.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! 4.33.0 / Consumer */
1+
/*! 4.32.1 / Consumer */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -576,7 +576,7 @@ var _default = function () {
576576
}, {
577577
key: "getVersion",
578578
value: function getVersion() {
579-
return '4.33.0';
579+
return '4.32.1';
580580
}
581581
}, {
582582
key: "_addPnsdkSuffix",
@@ -10964,9 +10964,9 @@ var endpoint = {
1096410964
},
1096510965
handleResponse: function () {
1096610966
var _handleResponse = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(_ref3, res, params) {
10967-
var _params$cipherKey, _res$response$name;
10967+
var _res$response$name;
1096810968

10969-
var PubNubFile, config, cryptography, body, _params$cipherKey2;
10969+
var PubNubFile, config, cryptography, body, _params$cipherKey;
1097010970

1097110971
return _regenerator["default"].wrap(function _callee$(_context) {
1097210972
while (1) {
@@ -10975,13 +10975,13 @@ var endpoint = {
1097510975
PubNubFile = _ref3.PubNubFile, config = _ref3.config, cryptography = _ref3.cryptography;
1097610976
body = res.response.body;
1097710977

10978-
if (!(PubNubFile.supportsEncryptFile && ((_params$cipherKey = params.cipherKey) !== null && _params$cipherKey !== void 0 ? _params$cipherKey : config.cipherKey))) {
10978+
if (!(PubNubFile.supportsEncryptFile && config.cipherKey)) {
1097910979
_context.next = 6;
1098010980
break;
1098110981
}
1098210982

1098310983
_context.next = 5;
10984-
return cryptography.decrypt((_params$cipherKey2 = params.cipherKey) !== null && _params$cipherKey2 !== void 0 ? _params$cipherKey2 : config.cipherKey, body);
10984+
return cryptography.decrypt((_params$cipherKey = params.cipherKey) !== null && _params$cipherKey !== void 0 ? _params$cipherKey : config.cipherKey, body);
1098510985

1098610986
case 5:
1098710987
body = _context.sent;
@@ -18153,12 +18153,21 @@ var WebCryptography = function () {
1815318153

1815418154
case 8:
1815518155
abPlaindata = _context4.sent;
18156+
18157+
if (!(file.data instanceof ArrayBuffer)) {
18158+
_context4.next = 13;
18159+
break;
18160+
}
18161+
1815618162
return _context4.abrupt("return", File.create({
1815718163
name: file.name,
1815818164
data: abPlaindata
1815918165
}));
1816018166

18161-
case 10:
18167+
case 13:
18168+
throw new Error('Cannot decrypt this file. In browser environment file decryption supports only ArrayBuffer.');
18169+
18170+
case 14:
1816218171
case "end":
1816318172
return _context4.stop();
1816418173
}

dist/web/pubnub.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/config.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)