wandbox-api-updated
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -12,3 +12,3 @@ 'use strict'; | ||
return new Promise((resolve, reject) => { | ||
if (!opts.code) { | ||
if (!opts.code || opts.code.length() == 0) { | ||
reject("No source provided."); | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "wandbox-api-updated", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node.js bindings to the Wandbox API.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -8,2 +8,8 @@ var { fromString, fromFile, getCompilers } = require('../lib/index'); | ||
//No source provided. | ||
fromString({ | ||
code: "", | ||
compiler: "lua-5.4.0", | ||
}).then(console.log).catch(console.error); | ||
fromFile("./test/fixtures/gamma.cpp", | ||
@@ -10,0 +16,0 @@ { |
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
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
64943
956