monaca-lib
Advanced tools
Comparing version 2.0.8 to 2.1.0
@@ -5,2 +5,7 @@ | ||
v2.1.0 | ||
---- | ||
* monaca and localkit: Various fixes | ||
* monaca: Webpack dev server support | ||
v1.1.13 | ||
@@ -7,0 +12,0 @@ ---- |
{ | ||
"name": "monaca-lib", | ||
"version": "2.0.8", | ||
"version": "2.1.0", | ||
"description": "Monaca cloud and localkit API bindings for JavaScript", | ||
@@ -36,6 +36,7 @@ "main": "./src/main.js", | ||
"extract-zip": "^1.5.0", | ||
"fs-extra": "0.30.0", | ||
"glob": "^5.0.14", | ||
"global-npm": "^0.3.0", | ||
"lockfile": "^1.0.0", | ||
"nconf": "^0.7.1", | ||
"ncp": "^2.0.0", | ||
"padlock": "^1.1.2", | ||
@@ -51,14 +52,27 @@ "portfinder": "^0.4.0", | ||
"watch": "^0.13.0", | ||
"xml2js": "^0.4.6", | ||
"global-npm": "^0.3.0" | ||
"xml2js": "^0.4.6" | ||
}, | ||
"additionalDependencies": { | ||
"awesome-typescript-loader": "1.0.0", | ||
"autoprefixer": "6.3.7", | ||
"babel-loader": "6.2.4", | ||
"babel-preset-es2015": "6.6.0", | ||
"babel-preset-react": "6.5.0", | ||
"file-loader": "0.8.5", | ||
"babel-preset-es2015": "6.9.0", | ||
"babel-preset-react": "6.11.1", | ||
"babel-preset-stage-2": "6.11.0", | ||
"copy-webpack-plugin": "3.0.1", | ||
"css-loader": "0.23.1", | ||
"extract-text-webpack-plugin": "1.0.1", | ||
"file-loader": "0.9.0", | ||
"html-loader": "0.4.3", | ||
"html-webpack-plugin": "2.22.0", | ||
"null-loader": "0.1.1", | ||
"postcss-loader": "0.9.1", | ||
"precss": "1.4.0", | ||
"progress-bar-webpack-plugin": "1.8.0", | ||
"raw-loader": "^0.5.1", | ||
"react-hot-loader": "3.0.0-beta.1", | ||
"babel-preset-stage-2":"6.5.0", | ||
"typescript": "1.8.9", | ||
"stylus": "0.54.5", | ||
"stylus-loader": "2.1.1", | ||
"style-loader": "0.13.1", | ||
"ts-loader": "0.8.2", | ||
"typescript": "1.8.10", | ||
"webpack": "1.13.1", | ||
@@ -65,0 +79,0 @@ "webpack-dev-server": "1.14.1" |
@@ -475,3 +475,2 @@ (function() { | ||
var fileWatcher = new FileWatcher(); | ||
var fileWatcherTranspiler = new FileWatcher(); | ||
@@ -489,35 +488,2 @@ try { | ||
try { | ||
fileWatcherTranspiler.onchange(function(changeType, filePath) { | ||
this.monaca.transpile(path.resolve(projectPath)).then( | ||
function(result) { | ||
var eventContent = { | ||
type: 'success', | ||
message: result.message | ||
}; | ||
if (result.warnings) { | ||
eventContent.log = result.warnings; | ||
eventContent.logType = "warning"; | ||
} | ||
this.monaca.emitter.emit('output', eventContent); | ||
}.bind(this), | ||
function(error) { | ||
var eventContent = { | ||
type: 'error', | ||
message: error.message | ||
}; | ||
if (error.log) { | ||
eventContent.log = error.log; | ||
eventContent.logType = "error"; | ||
} | ||
this.monaca.emitter.emit('output', eventContent); | ||
}.bind(this) | ||
); | ||
}.bind(this)); | ||
fileWatcherTranspiler.run(path.join(projectPath, 'src')); | ||
} catch (error) { | ||
// project does not have source folder to transpile. | ||
} | ||
if (this.isWatching()) { | ||
@@ -524,0 +490,0 @@ fileWatcher.run(path.join(projectPath, 'www')); |
@@ -26,2 +26,4 @@ (function() { | ||
'/api/project/:project_id/file/read': this.fileReadApi.bind(this), | ||
'/api/project/:project_id/started': this.noop.bind(this), | ||
'/api/project/:project_id/stopped': this.noop.bind(this), | ||
'/api/debugger/inspect': this.inspectApi.bind(this), | ||
@@ -32,2 +34,9 @@ '/api/local/auth': this.localAuthApi.bind(this) | ||
Api.prototype.noop = function(request, response) { | ||
response.end(JSON.stringify({ | ||
status: 'ok', | ||
code: 200 | ||
})); | ||
}; | ||
Api.prototype.sendJsonResponse = function(response, code, message, result, encrypt, pairingKey) { | ||
@@ -34,0 +43,0 @@ response.writeHead(code, { |
Sorry, the diff of this file is too big to display
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance 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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
31837158
679
192070
83
+ Addedfs-extra@0.30.0
+ Addedfs-extra@0.30.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@2.4.0(transitive)
+ Addedklaw@1.3.1(transitive)
- Removedncp@^2.0.0
- Removedncp@2.0.0(transitive)