avoscloud-sdk
Advanced tools
Comparing version 1.0.0-rc5 to 1.0.0-rc6
{ | ||
"name": "avoscloud-sdk", | ||
"version": "1.0.0-rc5", | ||
"version": "1.0.0-rc6", | ||
"homepage": "https://github.com/leancloud/javascript-sdk", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -0,1 +1,6 @@ | ||
# 1.0.0-rc6 日期:2016 年 2 月 1 日 | ||
* 修复了云引擎中文件上传到 AWS 的问题。 | ||
* 修复了 `AV.User#fetch` 不支持 fetch options 的问题。 | ||
* 修复了使用 Pointer 时可能出现类型错误的问题。 | ||
# 1.0.0-rc5 日期:2015 年 11 月 24 日 | ||
@@ -2,0 +7,0 @@ * AV.File 新增 fetch 方法。 |
@@ -8,4 +8,5 @@ var path = require('path'); | ||
var gzip = require('gulp-gzip'); | ||
var istanbul = require('gulp-istanbul'); | ||
var mocha = require('gulp-mocha'); | ||
var jsdoc = require("gulp-jsdoc"); | ||
// var jsdoc = require("gulp-jsdoc"); | ||
var order = require("gulp-order"); | ||
@@ -105,3 +106,9 @@ var rename = require('gulp-rename'); | ||
gulp.task('test', function() { | ||
gulp.task('instrument', function () { | ||
return gulp.src(['lib/**/*.js']) | ||
.pipe(istanbul()) | ||
.pipe(istanbul.hookRequire()); | ||
}); | ||
gulp.task('test', ['instrument'], function() { | ||
return gulp.src('test/*.js', {read: false}) | ||
@@ -125,3 +132,4 @@ .pipe(order([ | ||
timeout: 300000, | ||
})); | ||
})) | ||
.pipe(istanbul.writeReports()); | ||
}); | ||
@@ -128,0 +136,0 @@ |
@@ -15,3 +15,2 @@ /*! | ||
AV.Promise = require('./promise'); | ||
AV.XMLHttpRequest = require('./browserify-wrapper/xmlhttprequest').XMLHttpRequest; | ||
AV.localStorage = require('./localstorage'); | ||
@@ -18,0 +17,0 @@ |
@@ -25,3 +25,3 @@ 'use strict'; | ||
var xhr = new AV.XMLHttpRequest(); | ||
var xhr = new XMLHttpRequest(); | ||
@@ -28,0 +28,0 @@ if (xhr.upload) { |
@@ -53,2 +53,3 @@ 'use strict'; | ||
// 取出 dataURL 中 base64 的部分 | ||
var dataURLToBase64 = function(base64) { | ||
@@ -61,2 +62,9 @@ if (base64.split(',')[0] && base64.split(',')[0].indexOf('base64') >= 0) { | ||
// 判断是否是国内节点 | ||
var isCnNode = function() { | ||
var serverHost = AV.serverURL.match(/\/\/(.*)/, 'g')[1]; | ||
var cnApiHost = AV._config.cnApiUrl.match(/\/\/(.*)/, 'g')[1]; | ||
return serverHost === cnApiHost; | ||
} | ||
// A list of file extensions to mime types as found here: | ||
@@ -590,3 +598,4 @@ // http://stackoverflow.com/questions/58510/using-net-how-can-you-find-the- | ||
// 如果是国内节点 | ||
if(self._source && AV.serverURL === AV._config.cnApiUrl) { | ||
var isCnNodeFlag = isCnNode(); | ||
if(self._source && isCnNodeFlag) { | ||
// 通过国内 CDN 服务商上传 | ||
@@ -613,3 +622,3 @@ var upload = require('./browserify-wrapper/upload'); | ||
}); | ||
} else if (AV.serverURL !== AV._config.cnApiUrl) { | ||
} else if (!isCnNodeFlag) { | ||
// 海外节点,通过 LeanCloud 服务器中转 | ||
@@ -616,0 +625,0 @@ self._previousSave = self._source.then(function(file, type) { |
@@ -455,4 +455,4 @@ 'use strict'; | ||
*/ | ||
fetch: function(options) { | ||
return AV.Object.prototype.fetch.call(this, filterOutCallbacks(options)) | ||
fetch: function(fetchOptions, options) { | ||
return AV.Object.prototype.fetch.call(this, fetchOptions, {}) | ||
.then(function(model) { | ||
@@ -459,0 +459,0 @@ return model._handleSaveResult(false).then(function() { |
@@ -249,92 +249,4 @@ 'use strict'; | ||
AV._ajaxIE8 = function(method, url, data) { | ||
var promise = new AV.Promise(); | ||
var xdr = new XDomainRequest(); | ||
xdr.onload = function() { | ||
var response; | ||
try { | ||
response = JSON.parse(xdr.responseText); | ||
} catch (e) { | ||
promise.reject(e); | ||
} | ||
if (response) { | ||
promise.resolve(response); | ||
} | ||
}; | ||
xdr.onerror = xdr.ontimeout = function() { | ||
// Let's fake a real error message. | ||
var fakeResponse = { | ||
responseText: JSON.stringify({ | ||
code: AV.Error.X_DOMAIN_REQUEST, | ||
error: "IE's XDomainRequest does not supply error info." | ||
}) | ||
}; | ||
promise.reject(xdr); | ||
}; | ||
xdr.onprogress = function() {}; | ||
xdr.open(method, url); | ||
xdr.send(data); | ||
return promise; | ||
}; | ||
AV._ajax = require('./browserify-wrapper/ajax'); | ||
AV._useXDomainRequest = function() { | ||
if (typeof(XDomainRequest) !== "undefined") { | ||
// We're in IE 8+. | ||
if ('withCredentials' in new XMLHttpRequest()) { | ||
// We're in IE 10+. | ||
return false; | ||
} | ||
return true; | ||
} | ||
return false; | ||
}; | ||
AV._ajax = function(method, url, data, success, error) { | ||
var options = { | ||
success: success, | ||
error: error | ||
}; | ||
if (AV._useXDomainRequest()) { | ||
return AV._ajaxIE8(method, url, data)._thenRunCallbacks(options); | ||
} | ||
var promise = new AV.Promise(); | ||
var handled = false; | ||
var xhr = new AV.XMLHttpRequest(); | ||
xhr.onreadystatechange = function() { | ||
if (xhr.readyState === 4) { | ||
if (handled) { | ||
return; | ||
} | ||
handled = true; | ||
if (xhr.status >= 200 && xhr.status < 300) { | ||
var response; | ||
try { | ||
response = JSON.parse(xhr.responseText); | ||
} catch (e) { | ||
promise.reject(e); | ||
} | ||
if (response) { | ||
promise.resolve(response, xhr.status, xhr); | ||
} | ||
} else { | ||
promise.reject(xhr); | ||
} | ||
} | ||
}; | ||
xhr.open(method, url, true); | ||
xhr.setRequestHeader("Content-Type", "text/plain"); // avoid pre-flight. | ||
if (AV._isNode) { | ||
// Add a special user agent just for request from node.js. | ||
xhr.setRequestHeader("User-Agent", | ||
"AV/" + AV.VERSION + | ||
" (NodeJS " + process.versions.node + ")"); | ||
} | ||
xhr.send(data); | ||
return promise._thenRunCallbacks(options); | ||
}; | ||
// A self-propagating extend function. | ||
@@ -568,3 +480,3 @@ AV._extend = function(protoProps, classProps) { | ||
var pointer = AV.Object._create(className); | ||
if(value.createdAt){ | ||
if(Object.keys(value).length > 3) { | ||
delete value.__type; | ||
@@ -571,0 +483,0 @@ delete value.className; |
'use strict'; | ||
module.exports = "js1.0.0-rc5"; | ||
module.exports = "js1.0.0-rc6"; |
{ | ||
"name": "avoscloud-sdk", | ||
"version": "1.0.0-rc5", | ||
"version": "1.0.0-rc6", | ||
"main": "./lib/av.js", | ||
@@ -16,4 +16,3 @@ "description": "AVOSCloud JavaScript SDK.", | ||
"qiniu": "6.1.3", | ||
"underscore": "^1.8.3", | ||
"leancloud-xmlhttprequest": "^1.8.0" | ||
"underscore": "^1.8.3" | ||
}, | ||
@@ -23,3 +22,3 @@ "devDependencies": { | ||
"debug": "^2.1.1", | ||
"expect.js ": "0.2.0", | ||
"expect.js": "0.2.0", | ||
"gulp": "^3.8.10", | ||
@@ -29,2 +28,3 @@ "gulp-clean": "^0.3.1", | ||
"gulp-gzip": "0.0.8", | ||
"gulp-istanbul": "^0.10.3", | ||
"gulp-jsdoc": "^0.1.4", | ||
@@ -37,4 +37,4 @@ "gulp-mocha": "^2.0.0", | ||
"gulp-uglify": "^1.0.2", | ||
"vinyl-source-stream": "^1.1.0", | ||
"mocha": "1.9.0" | ||
"mocha": "1.9.0", | ||
"vinyl-source-stream": "^1.1.0" | ||
}, | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
"react-native": false, | ||
"./lib/browserify-wrapper/ajax.js": "./lib/browserify-wrapper/ajax-browser.js", | ||
"./lib/browserify-wrapper/upload.js": "./lib/browserify-wrapper/upload-browser.js", | ||
"./lib/browserify-wrapper/xmlhttprequest.js": "./lib/browserify-wrapper/xmlhttprequest-browser.js", | ||
"./lib/browserify-wrapper/localStorage.js": "./lib/browserify-wrapper/localstorage-browser.js", | ||
@@ -52,0 +52,0 @@ "./lib/browserify-wrapper/parse-base64.js": "./lib/browserify-wrapper/parse-base64-browser.js" |
@@ -1,2 +0,2 @@ | ||
# LeanCloud JavaScript SDK [![Build Status](https://travis-ci.org/leancloud/javascript-sdk.svg)](https://travis-ci.org/leancloud/javascript-sdk) | ||
# LeanCloud JavaScript SDK [![Build Status](https://travis-ci.org/leancloud/javascript-sdk.svg)](https://travis-ci.org/leancloud/javascript-sdk) [![codecov.io](https://codecov.io/github/leancloud/javascript-sdk/coverage.svg?branch=master)](https://codecov.io/github/leancloud/javascript-sdk?branch=master) | ||
@@ -18,4 +18,5 @@ JavaScript SDK for [LeanCloud](http://leancloud.cn/). | ||
* 执行 `gulp release` 会生成全部版本的 SDK | ||
* 服务环境可以通过单元测试调试 `gulp test`,浏览器环境打开 test/test.html | ||
* 确保测试全部通过 | ||
* 服务环境通过 mocha 调试单个文件,如调试 file.js `mocha test file` | ||
* 浏览器环境打开 test/test.html | ||
* 确保测试全部通过 `gulp test` | ||
* 提交并发起 Pull Request | ||
@@ -22,0 +23,0 @@ |
@@ -28,3 +28,3 @@ describe("files", function() { | ||
it("should be saved", function(done){ | ||
it.skip("should be saved", function(done){ | ||
var base64 = 'R0lGODlhGAAYAPf/AFuktf7bPEeVu8G9kHxvRfTYmEKe0Ku5cluZqdLDqv/9w//1dHOhm6aoZpvL5Y19WER+l//4mG2Wpf/sYoipieq8W/K1ItarcGBYPZeNUPXLX+bbzsnj88G+s/zRM+mrJ0CGp+3XtP79+vbObbeFS1qlxcKoOzuMtoW1moikfJuWZVqDknOVh8K4XoOppUmh06mxatfOxmylomWLmD2d06zAeYSKc//8ufa+MjmWyVd6fP/1hmmcmrPZ71KbtGqkt7LNt3CspP/+/v3MK4VwN/q+HrqXNuvm4qaYTO3jcfzDIv7jSNGykf7dQXl1Yuy1N/z59HO54YeddPXCMnOReqS0ijSZ0//pU//lSXOWlfzVPLN3K3GLdpvAtVep2P/vXvrKM//+/IyzuuulF0+gxf/hRq3FgIa7poKrkfOtFpiMa//QLYiwwqrLmsSLOZmVhonE5XGwqqKsdv/lTczh12mryLaxo/Xz8f/mUtXq9Za3rP/wb4ivrvXAPPa1Ga3MjP/+0oCZhPn5+DSa1Jejc//qWZuBM2az33yAbXi0wzOY0nOMh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/qAWlKbDBMhsMrfwgxH6mwGo03YTTMk7AYsBSAgVySgMwwCCQgA3C0EAGrqCXXw6unLIMg/9I0mAD5bHjCoL56QOADacQ8s8yLKqQASI/GJDeZf9YQYYsriDihBOIuALLCyTSKFBBL5RAAw32zCjkQYM0ueRBAQEAOw=='; | ||
@@ -31,0 +31,0 @@ var file = new AV.File("myfile.gif", { |
@@ -85,3 +85,3 @@ // queries | ||
describe("#save&query()", function () { | ||
it("should length + 1", function (done) { | ||
it.skip("should length + 1", function (done) { | ||
@@ -88,0 +88,0 @@ query = new AV.Query(GameScore); |
@@ -1,4 +0,1 @@ | ||
function errorProcessor(err){ | ||
throw err; | ||
} | ||
describe("AV.Status",function(){ | ||
@@ -12,3 +9,3 @@ | ||
done(); | ||
}, errorProcessor); | ||
}, done); | ||
}); | ||
@@ -21,3 +18,3 @@ | ||
done(); | ||
}, errorProcessor); | ||
}, done); | ||
}); | ||
@@ -32,3 +29,3 @@ | ||
done(); | ||
}, errorProcessor); | ||
}, done); | ||
}); | ||
@@ -60,3 +57,3 @@ }); | ||
done(); | ||
}, errorProcessor); | ||
}, done); | ||
}); | ||
@@ -68,3 +65,3 @@ it("should return published statuses.", function(done){ | ||
done(); | ||
}, errorProcessor); | ||
}, done); | ||
}); | ||
@@ -93,9 +90,9 @@ }); | ||
done(); | ||
}, errorProcessor); | ||
}, errorProcessor); | ||
}, errorProcessor); | ||
}, errorProcessor); | ||
}, errorProcessor); | ||
}, done); | ||
}, done); | ||
}, done); | ||
}, done); | ||
}); | ||
var targetUserObject = AV.Object.createWithoutData('_User', targetUser); | ||
it("should send statuses.", function(done){ | ||
it.skip("should send statuses.", function(done){ | ||
//send private status to targetUser | ||
@@ -123,10 +120,10 @@ AV.Status.countUnreadStatuses(targetUserObject, 'private').then(function(result){ | ||
done(); | ||
},errorProcessor); | ||
}, errorProcessor); | ||
}, errorProcessor); | ||
},done); | ||
}, done); | ||
}, done); | ||
},3000); | ||
}, errorProcessor); | ||
}, errorProcessor); | ||
}, done); | ||
}, done); | ||
}); | ||
}); | ||
}); |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances 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
6583703
3
177
21491
61
17
13
- Removedleancloud-xmlhttprequest@^1.8.0
- Removedforever-agent@0.6.1(transitive)
- Removedleancloud-xmlhttprequest@1.8.1(transitive)