diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..60509f75 --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) IBM Corp. 2011,2016. All Rights Reserved. +Node module: loopback-datasource-juggler +This project is licensed under the MIT License, full text below. + +-------- + +MIT license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 221adc8e..00000000 --- a/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -Copyright (c) 2013-2015 StrongLoop, Inc. - -loopback-datasource-juggler uses a dual license model. - -You may use this library under the terms of the [MIT License][], -or under the terms of the [StrongLoop Subscription Agreement][]. - -[MIT License]: http://opensource.org/licenses/MIT -[StrongLoop Subscription Agreement]: http://strongloop.com/license diff --git a/examples/app-noschema.js b/examples/app-noschema.js index 27fb4ec1..830af704 100644 --- a/examples/app-noschema.js +++ b/examples/app-noschema.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var DataSource = require('../../loopback-datasource-juggler').DataSource; var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder; var introspectType = require('../lib/introspection')(ModelBuilder); diff --git a/examples/app.js b/examples/app.js index f07719c0..8a96baec 100644 --- a/examples/app.js +++ b/examples/app.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder; var modelBuilder = new ModelBuilder(); // define models diff --git a/examples/datasource-app.js b/examples/datasource-app.js index 215ad986..df142bfe 100644 --- a/examples/datasource-app.js +++ b/examples/datasource-app.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var DataSource = require('../../loopback-datasource-juggler').DataSource; var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder; var ds = new DataSource('memory'); diff --git a/examples/inclusion.js b/examples/inclusion.js index 4fe57ff9..5bca6398 100644 --- a/examples/inclusion.js +++ b/examples/inclusion.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var jdb = require('../index'); var User, Post, Passport, City, Street, Building; diff --git a/examples/load-schemas.js b/examples/load-schemas.js index 75bf05d0..4a9a0d70 100644 --- a/examples/load-schemas.js +++ b/examples/load-schemas.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var path = require('path'), fs = require('fs'), DataSource = require('../lib/datasource').DataSource; diff --git a/examples/nesting-schema.js b/examples/nesting-schema.js index 899e4e7c..e7c8ac37 100644 --- a/examples/nesting-schema.js +++ b/examples/nesting-schema.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder; var modelBuilder = new ModelBuilder(); diff --git a/examples/relations.js b/examples/relations.js index 702a7071..f4afd159 100644 --- a/examples/relations.js +++ b/examples/relations.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var DataSource = require('../index').DataSource; var ds = new DataSource('memory'); diff --git a/index.js b/index.js index 76c8b1c3..298e4ab0 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2011,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + exports.ModelBuilder = exports.LDL = require('./lib/model-builder.js').ModelBuilder; exports.DataSource = exports.Schema = require('./lib/datasource.js').DataSource; exports.ModelBaseClass = require('./lib/model.js'); diff --git a/lib/browser.depd.js b/lib/browser.depd.js index 32c074dd..6148c600 100644 --- a/lib/browser.depd.js +++ b/lib/browser.depd.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // A lightweight alternative to "depd" that works in the browser module.exports = function depd(namespace) { var warned = {}; diff --git a/lib/connectors/memory.js b/lib/connectors/memory.js index 973d6739..b3b39497 100644 --- a/lib/connectors/memory.js +++ b/lib/connectors/memory.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var util = require('util'); var Connector = require('loopback-connector').Connector; var geo = require('../geo'); diff --git a/lib/connectors/transient.js b/lib/connectors/transient.js index 538d75a5..d1ef9967 100644 --- a/lib/connectors/transient.js +++ b/lib/connectors/transient.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var util = require('util'); var Connector = require('loopback-connector').Connector; var utils = require('../utils'); diff --git a/lib/dao.js b/lib/dao.js index ba0193f7..e9ac6123 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -1,3 +1,7 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT /*! * Module exports class Model diff --git a/lib/datasource.js b/lib/datasource.js index 70484a6e..dfdac0b2 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /*! * Module dependencies */ diff --git a/lib/geo.js b/lib/geo.js index 29e0822e..8b43198e 100644 --- a/lib/geo.js +++ b/lib/geo.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var assert = require('assert'); /*! diff --git a/lib/hooks.js b/lib/hooks.js index 358c9df6..7c72fa81 100644 --- a/lib/hooks.js +++ b/lib/hooks.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var deprecated = require('depd')('loopback-datasource-juggler'); /*! diff --git a/lib/include.js b/lib/include.js index 5b69498b..9a78d892 100644 --- a/lib/include.js +++ b/lib/include.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2015. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var async = require('async'); var utils = require('./utils'); var List = require('./list'); diff --git a/lib/include_utils.js b/lib/include_utils.js index 528d855f..e12042ad 100644 --- a/lib/include_utils.js +++ b/lib/include_utils.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports.buildOneToOneIdentityMapWithOrigKeys = buildOneToOneIdentityMapWithOrigKeys; module.exports.buildOneToManyIdentityMapWithOrigKeys = buildOneToManyIdentityMapWithOrigKeys; module.exports.join = join; diff --git a/lib/introspection.js b/lib/introspection.js index 1ce08198..34ccf392 100644 --- a/lib/introspection.js +++ b/lib/introspection.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function getIntrospector(ModelBuilder) { function introspectType(value) { diff --git a/lib/jutil.js b/lib/jutil.js index dc1782c8..7b5f7cda 100644 --- a/lib/jutil.js +++ b/lib/jutil.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2011,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var util = require('util'); /** diff --git a/lib/list.js b/lib/list.js index 6a639f09..0f47c5a8 100644 --- a/lib/list.js +++ b/lib/list.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2012,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var util = require('util'); var Any = require('./types').Types.Any; diff --git a/lib/mixins.js b/lib/mixins.js index d16d6561..322f0b20 100644 --- a/lib/mixins.js +++ b/lib/mixins.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var debug = require('debug')('loopback:mixin'); var assert = require('assert'); var DefaultModelBaseClass = require('./model.js'); diff --git a/lib/model-builder.js b/lib/model-builder.js index b36e4d41..81d1c051 100644 --- a/lib/model-builder.js +++ b/lib/model-builder.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /*! * Module dependencies */ diff --git a/lib/model-definition.js b/lib/model-definition.js index 1bd611f8..8b65c50d 100644 --- a/lib/model-definition.js +++ b/lib/model-definition.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var assert = require('assert'); var util = require('util'); var EventEmitter = require('events').EventEmitter; diff --git a/lib/model.js b/lib/model.js index e701f81c..3d5266a6 100644 --- a/lib/model.js +++ b/lib/model.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /*! * Module exports class Model */ diff --git a/lib/observer.js b/lib/observer.js index fcbabf26..5de79fa1 100644 --- a/lib/observer.js +++ b/lib/observer.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var async = require('async'); var utils = require('./utils'); diff --git a/lib/relation-definition.js b/lib/relation-definition.js index a94aa6bc..4c2780ce 100644 --- a/lib/relation-definition.js +++ b/lib/relation-definition.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /*! * Dependencies */ diff --git a/lib/relations.js b/lib/relations.js index 872c58a2..5dd9994d 100644 --- a/lib/relations.js +++ b/lib/relations.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /*! * Dependencies */ diff --git a/lib/scope.js b/lib/scope.js index f84d4bee..fb361735 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var i8n = require('inflection'); var utils = require('./utils'); var defineCachedRelations = utils.defineCachedRelations; diff --git a/lib/transaction.js b/lib/transaction.js index 489d0630..5c1d3623 100644 --- a/lib/transaction.js +++ b/lib/transaction.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var debug = require('debug')('loopback:connector:transaction'); var uuid = require('node-uuid'); var utils = require('./utils'); diff --git a/lib/types.js b/lib/types.js index 7c35adce..286d04c0 100644 --- a/lib/types.js +++ b/lib/types.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var Types = {}; /** * Schema types diff --git a/lib/utils.js b/lib/utils.js index 15852f1b..4107bde8 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2012,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + exports.safeRequire = safeRequire; exports.fieldsToArray = fieldsToArray; exports.selectFields = selectFields; diff --git a/lib/validations.js b/lib/validations.js index 0d28470a..ec33e743 100644 --- a/lib/validations.js +++ b/lib/validations.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var util = require('util'); var extend = util._extend; diff --git a/support/describe-operation-hooks.js b/support/describe-operation-hooks.js index cfb38084..da1e5bb6 100644 --- a/support/describe-operation-hooks.js +++ b/support/describe-operation-hooks.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /* * Describe context objects of operation hooks in comprehensive HTML table. * Usage: diff --git a/test/CustomTypeForeignKey.test.js b/test/CustomTypeForeignKey.test.js index 880dc937..1de8d29f 100644 --- a/test/CustomTypeForeignKey.test.js +++ b/test/CustomTypeForeignKey.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var should = require('./init.js'); var jdb = require('../'); diff --git a/test/async-observer.test.js b/test/async-observer.test.js index f840be14..e157b3fd 100644 --- a/test/async-observer.test.js +++ b/test/async-observer.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var ModelBuilder = require('../').ModelBuilder; var should = require('./init'); diff --git a/test/basic-querying.test.js b/test/basic-querying.test.js index 3a17880d..71f8954a 100644 --- a/test/basic-querying.test.js +++ b/test/basic-querying.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var async = require('async'); diff --git a/test/common.batch.js b/test/common.batch.js index 808ca6cb..0e5c69c2 100644 --- a/test/common.batch.js +++ b/test/common.batch.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + require('./datatype.test.js'); require('./basic-querying.test.js'); require('./manipulation.test.js'); diff --git a/test/common_test.js b/test/common_test.js index 0b251e59..d19e45ee 100644 --- a/test/common_test.js +++ b/test/common_test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2011,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var Schema = require('../index').Schema; var Text = Schema.Text; diff --git a/test/crud-with-options.test.js b/test/crud-with-options.test.js index daa44a7e..bbe7437b 100644 --- a/test/crud-with-options.test.js +++ b/test/crud-with-options.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var async = require('async'); diff --git a/test/datasource.test.js b/test/datasource.test.js index db2e098b..5e610c73 100644 --- a/test/datasource.test.js +++ b/test/datasource.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var should = require('./init.js'); var DataSource = require('../lib/datasource.js').DataSource; diff --git a/test/datatype.test.js b/test/datatype.test.js index 7dc350e8..52e59a35 100644 --- a/test/datatype.test.js +++ b/test/datatype.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/default-scope.test.js b/test/default-scope.test.js index ca6c8a9b..1390cb1a 100644 --- a/test/default-scope.test.js +++ b/test/default-scope.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var async = require('async'); diff --git a/test/defaults.test.js b/test/defaults.test.js index 6a05e0c4..6a536485 100644 --- a/test/defaults.test.js +++ b/test/defaults.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/discovery.test.js b/test/discovery.test.js index 26e5056c..f28a49bb 100644 --- a/test/discovery.test.js +++ b/test/discovery.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var jdb = require('../'); var DataSource = jdb.DataSource; var should = require('./init.js'); diff --git a/test/events.js b/test/events.js index d78cd2a1..d9022afe 100644 --- a/test/events.js +++ b/test/events.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var should = require('./init.js'); describe('events', function() { diff --git a/test/geo.test.js b/test/geo.test.js index b552ee5a..8b2f684a 100644 --- a/test/geo.test.js +++ b/test/geo.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /*global describe,it*/ /*jshint expr:true */ diff --git a/test/hooks.test.js b/test/hooks.test.js index b4d3babb..50de3c08 100644 --- a/test/hooks.test.js +++ b/test/hooks.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/include.test.js b/test/include.test.js index 1209fcc1..b5124985 100644 --- a/test/include.test.js +++ b/test/include.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2015. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var async = require('async'); diff --git a/test/include_util.test.js b/test/include_util.test.js index 280bd5eb..5be7edd8 100644 --- a/test/include_util.test.js +++ b/test/include_util.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var assert = require("assert"); var should = require("should"); diff --git a/test/init.js b/test/init.js index 0c63d304..73e53b66 100644 --- a/test/init.js +++ b/test/init.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = require('should'); /* diff --git a/test/introspection.test.js b/test/introspection.test.js index 720b9e0c..5086aa45 100644 --- a/test/introspection.test.js +++ b/test/introspection.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var assert = require('assert'); var ModelBuilder = require('..').ModelBuilder; var DataSource = require('../').DataSource; diff --git a/test/json.test.js b/test/json.test.js index 43d2c263..27430e40 100644 --- a/test/json.test.js +++ b/test/json.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/loopback-data.test.js b/test/loopback-data.test.js index d170ba14..bc90c098 100644 --- a/test/loopback-data.test.js +++ b/test/loopback-data.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/loopback-dl.test.js b/test/loopback-dl.test.js index 3aeb54e3..d8f3c438 100644 --- a/test/loopback-dl.test.js +++ b/test/loopback-dl.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var assert = require('assert'); diff --git a/test/manipulation.test.js b/test/manipulation.test.js index dcdb2aed..f24897ef 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var async = require('async'); var should = require('./init.js'); diff --git a/test/memory.test.js b/test/memory.test.js index 4bc53e56..ec191c5e 100644 --- a/test/memory.test.js +++ b/test/memory.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var jdb = require('../'); var DataSource = jdb.DataSource; var path = require('path'); diff --git a/test/mixins.test.js b/test/mixins.test.js index aebdbb72..a7b40607 100644 --- a/test/mixins.test.js +++ b/test/mixins.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/model-definition.test.js b/test/model-definition.test.js index b7ac4c63..ed871f44 100644 --- a/test/model-definition.test.js +++ b/test/model-definition.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var assert = require('assert'); diff --git a/test/optional-validation.test.js b/test/optional-validation.test.js index ac432eb6..d27604be 100644 --- a/test/optional-validation.test.js +++ b/test/optional-validation.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var db, User, options, whereCount = 0; diff --git a/test/persistence-hooks.suite.js b/test/persistence-hooks.suite.js index e4b15dfe..d6e0ca95 100644 --- a/test/persistence-hooks.suite.js +++ b/test/persistence-hooks.suite.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var ValidationError = require('../').ValidationError; var traverse = require('traverse'); diff --git a/test/relations.test.js b/test/relations.test.js index fa05fcc6..c06a698a 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var jdb = require('../'); diff --git a/test/schema.test.js b/test/schema.test.js index 416f9a97..7fea45c1 100644 --- a/test/schema.test.js +++ b/test/schema.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/scope.test.js b/test/scope.test.js index bf59342b..ba29b78b 100644 --- a/test/scope.test.js +++ b/test/scope.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); diff --git a/test/spec_helper.js b/test/spec_helper.js index df3ac9d8..e2f6e087 100644 --- a/test/spec_helper.js +++ b/test/spec_helper.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2011,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /* if (!process.env.TRAVIS) { var semicov = require('semicov'); diff --git a/test/transient.test.js b/test/transient.test.js index e3a03f96..e3409b87 100644 --- a/test/transient.test.js +++ b/test/transient.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var jdb = require('../'); var DataSource = jdb.DataSource; var assert = require('assert'); diff --git a/test/util.test.js b/test/util.test.js index 27307e28..d3ee9df4 100644 --- a/test/util.test.js +++ b/test/util.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var should = require('./init.js'); var utils = require('../lib/utils'); var fieldsToArray = utils.fieldsToArray; diff --git a/test/validations.test.js b/test/validations.test.js index 2f64bcc1..2941ddeb 100644 --- a/test/validations.test.js +++ b/test/validations.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2013,2016. All Rights Reserved. +// Node module: loopback-datasource-juggler +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + // This test written in mocha+should.js var should = require('./init.js'); var async = require('async');