Skip to content

Commit 3110db0

Browse files
committed
Adjust the way version string is constructed
1 parent a4888ed commit 3110db0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CoreManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var config: { [key: string]: mixed } = {
9393
!!process.versions.node),
9494
REQUEST_ATTEMPT_LIMIT: 5,
9595
SERVER_URL: 'https://api.parse.com/1',
96-
VERSION: require('../package.json').version,
96+
VERSION: 'js' + require('../package.json').version,
9797
APPLICATION_ID: null,
9898
JAVASCRIPT_KEY: null,
9999
MASTER_KEY: null,

src/RESTController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ var RESTController = {
158158

159159
payload._ApplicationId = CoreManager.get('APPLICATION_ID');
160160
payload._JavaScriptKey = CoreManager.get('JAVASCRIPT_KEY');
161-
payload._ClientVersion = 'js' + CoreManager.get('VERSION');
161+
payload._ClientVersion = CoreManager.get('VERSION');
162162

163163
var useMasterKey = options.useMasterKey;
164164
if (typeof useMasterKey === 'undefined') {

src/__tests__/RESTController-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('RESTController', () => {
142142
_method: 'GET',
143143
_ApplicationId: 'A',
144144
_JavaScriptKey: 'B',
145-
_ClientVersion: 'jsV',
145+
_ClientVersion: 'V',
146146
_InstallationId: 'iid',
147147
_SessionToken: '1234',
148148
});

0 commit comments

Comments
 (0)