Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mt-static/data-api/v7/js/mt-data-api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Movable Type DataAPI SDK for JavaScript v6
* Movable Type DataAPI SDK for JavaScript v7
* https://github.com/movabletype/mt-data-api-sdk-js
* Copyright (c) Six Apart Ltd.
* This program is distributed under the terms of the MIT license.
Expand Down Expand Up @@ -140,7 +140,7 @@ var DataAPI = function(options) {
* @private
* @type Number
*/
DataAPI.version = 6;
DataAPI.version = 7;

/**
* The key of access token of this api object.
Expand Down
2 changes: 1 addition & 1 deletion mt-static/data-api/v7/js/mt-data-api.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions node-lib/data-api/v7/node-mt-data-api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Movable Type DataAPI SDK for JavaScript v6
* Movable Type DataAPI SDK for JavaScript v7
* https://github.com/movabletype/mt-data-api-sdk-js
* Copyright (c) Six Apart Ltd.
* This program is distributed under the terms of the MIT license.
Expand Down Expand Up @@ -148,7 +148,7 @@ var DataAPI = function(options) {
* @private
* @type Number
*/
DataAPI.version = 6;
DataAPI.version = 7;

/**
* The key of access token of this api object.
Expand Down
4 changes: 2 additions & 2 deletions spec/data-api/common/core-request-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ describe("DataAPI Request", function(){
});;
api.request('GET', '/endpoint-test');

expect(url).toMatch(new RegExp(dataApiBaseUrl + '/v6/endpoint-test\\?_=\\d+'));
expect(url).toMatch(new RegExp(dataApiBaseUrl + '/v7/endpoint-test\\?_=\\d+'));
});

it("should be set timeout property if the timeout option is set", function(){
Expand Down Expand Up @@ -500,7 +500,7 @@ describe("DataAPI Request", function(){
});;
api.request('GET', '/endpoint-test');

expect(url).toEqual(dataApiBaseUrl + '/v6/endpoint-test?format=mpac');
expect(url).toEqual(dataApiBaseUrl + '/v7/endpoint-test?format=mpac');
});

it("should be set \"X-MT-Authorization\" request header if an accessToke is already set up", function(){
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/node/node-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var path = require("path"),
lib = path.join(base, "node-lib");

global.MT = {
DataAPI: require(path.join(lib, "bootstrap"))["v6"]
DataAPI: require(path.join(lib, "bootstrap"))["v7"]
};

global.sinon = require(path.join(base, "bower_components", "sinon"));
Expand Down
2 changes: 1 addition & 1 deletion src/data-api/common/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var DataAPI = function(options) {
* @private
* @type Number
*/
DataAPI.version = 6;
DataAPI.version = 7;

/**
* The key of access token of this api object.
Expand Down
2 changes: 1 addition & 1 deletion src/data-api/common/header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Movable Type DataAPI SDK for JavaScript v6
* Movable Type DataAPI SDK for JavaScript v7
* https://github.com/movabletype/mt-data-api-sdk-js
* Copyright (c) Six Apart Ltd.
* This program is distributed under the terms of the MIT license.
Expand Down
Loading