Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 6e2875a

Browse files
Updated dependencies (#548)
1 parent 6461b8a commit 6e2875a

14 files changed

+1743
-1309
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

bin/www/codePushUtil.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var CodePushUtil = (function () {
3636
};
3737
CodePushUtil.logError = function (message, error) {
3838
var errorMessage = (message || "") + " " + CodePushUtil.getErrorMessage(error);
39-
var stackTrace = error && error.stack ? ". StackTrace: " + error.stack : '';
39+
var stackTrace = error && error.stack ? ". StackTrace: " + error.stack : "";
4040
console.error(CodePushUtil.TAG + " " + errorMessage + stackTrace);
4141
};
4242
CodePushUtil.TAG = "[CodePush]";

bin/www/localPackage.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
"use strict";
1111
var __extends = (this && this.__extends) || (function () {
12-
var extendStatics = Object.setPrototypeOf ||
13-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12+
var extendStatics = function (d, b) {
13+
extendStatics = Object.setPrototypeOf ||
14+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16+
return extendStatics(d, b);
17+
};
1518
return function (d, b) {
1619
extendStatics(d, b);
1720
function __() { this.constructor = d; }
@@ -159,8 +162,8 @@ var LocalPackage = (function (_super) {
159162
};
160163
LocalPackage.prototype.getSignatureFromUpdate = function (deployDir, callback) {
161164
var rootUri = cordova.file.dataDirectory;
162-
var path = deployDir.fullPath + '/www';
163-
var fileName = '.codepushrelease';
165+
var path = deployDir.fullPath + "/www";
166+
var fileName = ".codepushrelease";
164167
FileUtil.fileExists(rootUri, path, fileName, function (error, result) {
165168
if (!result) {
166169
callback(null, null);

bin/www/remotePackage.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
"use strict";
1111
var __extends = (this && this.__extends) || (function () {
12-
var extendStatics = Object.setPrototypeOf ||
13-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12+
var extendStatics = function (d, b) {
13+
extendStatics = Object.setPrototypeOf ||
14+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16+
return extendStatics(d, b);
17+
};
1518
return function (d, b) {
1619
extendStatics(d, b);
1720
function __() { this.constructor = d; }

gulpfile.js

+1-45
Original file line numberDiff line numberDiff line change
@@ -171,52 +171,8 @@ gulp.task("tslint", function () {
171171
// Configuration options adapted from TypeScript project:
172172
// https://github.com/Microsoft/TypeScript/blob/master/tslint.json
173173

174-
var config = {
175-
"rules": {
176-
"class-name": true,
177-
"comment-format": [true,
178-
"check-space"
179-
],
180-
"indent": [true,
181-
"spaces"
182-
],
183-
"one-line": [true,
184-
"check-open-brace"
185-
],
186-
"no-unused-variable": true,
187-
"no-use-before-declare": true,
188-
"quotemark": [true,
189-
"double"
190-
],
191-
"semicolon": true,
192-
"whitespace": [true,
193-
"check-branch",
194-
"check-operator",
195-
"check-separator",
196-
"check-type"
197-
],
198-
"typedef-whitespace": [
199-
true,
200-
{
201-
"call-signature": "nospace",
202-
"index-signature": "nospace",
203-
"parameter": "nospace",
204-
"property-declaration": "nospace",
205-
"variable-declaration": "nospace"
206-
},
207-
{
208-
"call-signature": "onespace",
209-
"index-signature": "onespace",
210-
"parameter": "onespace",
211-
"property-declaration": "onespace",
212-
"variable-declaration": "onespace"
213-
}
214-
],
215-
}
216-
}
217-
218174
return gulp.src([sourcePath + tsFiles, testPath + tsFiles])
219-
.pipe(tslint({ configuration: config, formatter: "verbose" }))
175+
.pipe(tslint({ configuration: "./tslint.json", formatter: "verbose" }))
220176
.pipe(tslint.report());
221177
});
222178

0 commit comments

Comments
 (0)