arrow-objectmodel
Advanced tools
Comparing version 0.3.1-45 to 0.4.4
@@ -53,3 +53,10 @@ var _ = require('lodash'), | ||
if (this.config.apikey) { | ||
if (this.config.apikey_production && this.config.apikey_development) { | ||
this.server.auth.apikey_production = this.config.apikey_production; | ||
this.server.auth.apikey_development = this.config.apikey_development; | ||
this.server.auth.apikey = this.config.apikey || this.config['apikey_' + this.config.env]; | ||
this.server.auth.type = this.config.APIKeyAuthType || 'apikey'; // for backwards compat | ||
} else if (this.config.apikey) { | ||
this.server.auth.apikey_production = this.config.apikey; | ||
this.server.auth.apikey_development = this.config.apikey; | ||
this.server.auth.apikey = this.config.apikey; | ||
@@ -56,0 +63,0 @@ this.server.auth.type = this.config.APIKeyAuthType || 'apikey'; // for backwards compat |
{ | ||
"name": "arrow-objectmodel", | ||
"version": "0.3.1-45", | ||
"version": "0.4.4", | ||
"description": "The object model for Arrow", | ||
@@ -9,4 +9,4 @@ "main": "index.js", | ||
"axway", | ||
"appcelerator", | ||
"arrow", | ||
"appcelerator", | ||
"objectmodel" | ||
@@ -25,3 +25,3 @@ ], | ||
"devDependencies": { | ||
"arrow": "4.0.0-44" | ||
"arrow": "3.2.4" | ||
}, | ||
@@ -40,4 +40,4 @@ "engines": { | ||
"clean": "shx rm -rf .nyc_output coverage logs", | ||
"test": "shx rm -rf coverage .nyc-output && cross-env NODE_ENV=development nyc --reporter=lcov --reporter=text-summary mocha --colors test/objectmodel.js --recursive -R spec --exit" | ||
"test": "shx rm -rf coverage .nyc-output && cross-env NODE_ENV=development nyc --reporter=lcov --reporter=text-summary mocha test/objectmodel.js --recursive -R spec --exit" | ||
} | ||
} |
const { spawnSync } = require('child_process'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const mkdirSync = require('mkdirp').sync; | ||
const pkg = require('../package.json'); | ||
@@ -13,6 +12,4 @@ | ||
// May be a scoped package folder | ||
const targetDir = path.dirname(target); | ||
if (!fs.existsSync(targetDir)) { | ||
mkdirSync(targetDir); | ||
if (!fs.existsSync(destFolder)) { | ||
fs.mkdirSync(destFolder); | ||
} | ||
@@ -19,0 +16,0 @@ |
@@ -45,2 +45,3 @@ var expect = require('chai').expect, | ||
expect(model.config).to.have.property('dir', tmpdir); | ||
expect(model.config).to.have.property('env', 'development'); | ||
expect(model.metadata).to.have.property('type', 'unknown'); | ||
@@ -70,2 +71,3 @@ } catch (e) { | ||
expect(model.config).to.have.deep.property('dir', tmpdir); | ||
expect(model.config).to.have.property('env', 'development'); | ||
}); | ||
@@ -97,2 +99,3 @@ | ||
expect(model.config).to.have.deep.property('dir', tmpdir); | ||
expect(model.config).to.have.property('env', 'development'); | ||
expect(model.models).to.have.property('foo'); | ||
@@ -99,0 +102,0 @@ expect(model.models.foo).to.have.property('spec', '1'); |
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
21187
530