breezets-cli
Advanced tools
Comparing version 0.1.17 to 0.2.8
@@ -34,11 +34,17 @@ #!/usr/bin/env node | ||
function callGenerate(metadataurl, serviceurl, proxyname) { | ||
var metadata = getMetadata(metadataurl); | ||
var files = breezeref.generateTypescript(metadata, serviceurl, proxyname, [{ key: "flavor", value: "mmm...chocolate" }]); | ||
for (var n = 0; n < files.length; n++) { | ||
var filename = files[n].filename; | ||
var contents = files[n].contents; | ||
console.log(filename + ":"); | ||
console.log("============================="); | ||
fs.writeFileSync(filename, contents); | ||
} | ||
//var metadata = getMetadata(metadataurl); | ||
//var files = breezeref.generateTypescript(metadata, serviceurl, proxyname, [{ key: "flavor", value: "mmm...chocolate" }]); | ||
//for (var n = 0; n < files.length; n++) | ||
//{ | ||
// var filename = files[n].filename; | ||
// var contents = files[n].contents; | ||
// console.log(filename + ":"); | ||
// console.log("============================="); | ||
// fs.writeFileSync(filename, contents); | ||
//} | ||
var options = new breezeref.IBreezetsOptions(); | ||
options.metadataurlValue = metadataurl; | ||
options.serviceurl = serviceurl; | ||
options.proxyname = proxyname; | ||
breezeref.generateTypescript(options); | ||
} | ||
@@ -45,0 +51,0 @@ function getMetadata(urlstr) { |
C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\bin\Microsoft.NodejsTools.WebRole.dll | ||
C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\obj\Debug\breezets-cli.njsprojResolveAssemblyReference.cache |
@@ -187,1 +187,4 @@ C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\dist\app.js | ||
C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\dist\app.d.ts | ||
C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\dist\app.js | ||
C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\dist\app.js.map | ||
C:\Users\Thomas\Source\Repos\BreezeTypedefExtractor\node\breezets-cli\dist\app.d.ts |
{ | ||
"name": "breezets-cli", | ||
"version": "0.1.17", | ||
"version": "0.2.8", | ||
"description": "Command generating a strongly type client-side Typescript API for a Breeze data service", | ||
@@ -19,3 +19,3 @@ "main": "app.js", | ||
"breeze-client": "^1.6.3", | ||
"breezets": "^0.1.17", | ||
"breezets": "^0.2.8", | ||
"commander": "^2.9.0", | ||
@@ -22,0 +22,0 @@ "sync-request": "^3.0.1", |
@@ -45,13 +45,19 @@ #!/usr/bin/env node | ||
{ | ||
var metadata = getMetadata(metadataurl); | ||
var files = breezeref.generateTypescript(metadata, serviceurl, proxyname, [{ key: "flavor", value: "mmm...chocolate" }]); | ||
//var metadata = getMetadata(metadataurl); | ||
//var files = breezeref.generateTypescript(metadata, serviceurl, proxyname, [{ key: "flavor", value: "mmm...chocolate" }]); | ||
//for (var n = 0; n < files.length; n++) | ||
//{ | ||
// var filename = files[n].filename; | ||
// var contents = files[n].contents; | ||
// console.log(filename + ":"); | ||
// console.log("============================="); | ||
// fs.writeFileSync(filename, contents); | ||
//} | ||
var options = new breezeref.IBreezetsOptions(); | ||
options.metadataurlValue = metadataurl; | ||
options.serviceurl = serviceurl; | ||
options.proxyname = proxyname; | ||
breezeref.generateTypescript(options); | ||
for (var n = 0; n < files.length; n++) | ||
{ | ||
var filename = files[n].filename; | ||
var contents = files[n].contents; | ||
console.log(filename + ":"); | ||
console.log("============================="); | ||
fs.writeFileSync(filename, contents); | ||
} | ||
} | ||
@@ -58,0 +64,0 @@ |
Sorry, the diff of this file is not supported yet
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 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
753771
36
667
4
+ Addedbreezets@0.2.12(transitive)
+ Addednode-fs@0.1.7(transitive)
- Removedbreezets@0.1.17(transitive)
Updatedbreezets@^0.2.8