Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arrow-objectmodel

Package Overview
Dependencies
Maintainers
9
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrow-objectmodel - npm Package Compare versions

Comparing version 0.3.1-45 to 0.4.4

9

lib/objectmodel.js

@@ -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

8

package.json
{
"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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc