update copyright notices and license
This commit is contained in:
parent
defe5f4bb8
commit
5eaa909006
|
@ -0,0 +1,25 @@
|
||||||
|
Copyright (c) IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
Node module: loopback-boot
|
||||||
|
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.
|
|
@ -1,9 +0,0 @@
|
||||||
Copyright (c) 2013-2015 StrongLoop, Inc and other contributors.
|
|
||||||
|
|
||||||
loopback-boot 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
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var execute = require('./lib/executor');
|
var execute = require('./lib/executor');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
5
index.js
5
index.js
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var ConfigLoader = require('./lib/config-loader');
|
var ConfigLoader = require('./lib/config-loader');
|
||||||
var compile = require('./lib/compiler');
|
var compile = require('./lib/compiler');
|
||||||
var execute = require('./lib/executor');
|
var execute = require('./lib/executor');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var commondir = require('commondir');
|
var commondir = require('commondir');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
var cloneDeep = require('lodash').cloneDeep;
|
var cloneDeep = require('lodash').cloneDeep;
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var debug = require('debug')('loopback:boot:config-loader');
|
var debug = require('debug')('loopback:boot:config-loader');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
var semver = require('semver');
|
var semver = require('semver');
|
||||||
var debug = require('debug')('loopback:boot:executor');
|
var debug = require('debug')('loopback:boot:executor');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var boot = require('../');
|
var boot = require('../');
|
||||||
var exportBrowserifyToFile = require('./helpers/browserify').exportToSandbox;
|
var exportBrowserifyToFile = require('./helpers/browserify').exportToSandbox;
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var boot = require('../');
|
var boot = require('../');
|
||||||
var exportBrowserifyToFile = require('./helpers/browserify').exportToSandbox;
|
var exportBrowserifyToFile = require('./helpers/browserify').exportToSandbox;
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var boot = require('../');
|
var boot = require('../');
|
||||||
var fs = require('fs-extra');
|
var fs = require('fs-extra');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var async = require('async');
|
var async = require('async');
|
||||||
var boot = require('../');
|
var boot = require('../');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var loopback = require('loopback');
|
var loopback = require('loopback');
|
||||||
var boot = require('../../../');
|
var boot = require('../../../');
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(Robot) {
|
module.exports = function(Robot) {
|
||||||
Robot.settings._customized = 'Robot';
|
Robot.settings._customized = 'Robot';
|
||||||
Robot.base.settings._customized = 'Robot';
|
Robot.base.settings._customized = 'Robot';
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var loopback = require('loopback');
|
var loopback = require('loopback');
|
||||||
var boot = require('../../../');
|
var boot = require('../../../');
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(app) {
|
module.exports = function(app) {
|
||||||
app.set('custom-key', 'custom-value');
|
app.set('custom-key', 'custom-value');
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(app, options) {
|
module.exports = function(app, options) {
|
||||||
app.dummyComponentOptions = options;
|
app.dummyComponentOptions = options;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(Model, options) {
|
module.exports = function(Model, options) {
|
||||||
Model.timeStampsMixin = true;
|
Model.timeStampsMixin = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(Customer) {
|
module.exports = function(Customer) {
|
||||||
Customer.settings._customized = 'Customer';
|
Customer.settings._customized = 'Customer';
|
||||||
Customer.base.settings._customized = 'Base';
|
Customer.base.settings._customized = 'Base';
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
process.bootFlags.push('barLoadedInTest');
|
process.bootFlags.push('barLoadedInTest');
|
||||||
module.exports = function(app, callback) {
|
module.exports = function(app, callback) {
|
||||||
callback();
|
callback();
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var framework = {
|
var framework = {
|
||||||
initialize: function(passport) {
|
initialize: function(passport) {
|
||||||
return function(req, res, next) {
|
return function(req, res, next) {
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
process.bootFlags.push('barLoaded');
|
process.bootFlags.push('barLoaded');
|
||||||
module.exports = function(app, callback) {
|
module.exports = function(app, callback) {
|
||||||
process.bootFlags.push('barStarted');
|
process.bootFlags.push('barStarted');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
process.bootFlags.push('barSyncLoaded');
|
process.bootFlags.push('barSyncLoaded');
|
||||||
module.exports = function(app) {
|
module.exports = function(app) {
|
||||||
process.bootFlags.push('barSyncExecuted');
|
process.bootFlags.push('barSyncExecuted');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(app, cb) {
|
module.exports = function(app, cb) {
|
||||||
if (app.booting)
|
if (app.booting)
|
||||||
process.bootingFlagSet = true;
|
process.bootingFlagSet = true;
|
||||||
|
|
|
@ -1 +1,6 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
process.bootFlags.push('fooLoaded');
|
process.bootFlags.push('fooLoaded');
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
exports.myMiddleware = function(name) {
|
exports.myMiddleware = function(name) {
|
||||||
return function(req, res, next) {
|
return function(req, res, next) {
|
||||||
req._names = req._names || [];
|
req._names = req._names || [];
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exporting a middleware as a property of the main module
|
* Exporting a middleware as a property of the main module
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(loopbackApp, params) {
|
module.exports = function(loopbackApp, params) {
|
||||||
loopbackApp.use('/component', function(req, res, next) {
|
loopbackApp.use('/component', function(req, res, next) {
|
||||||
res.send(params);
|
res.send(params);
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(params) {
|
module.exports = function(params) {
|
||||||
return function(req, res, next) {
|
return function(req, res, next) {
|
||||||
res.send(params);
|
res.send(params);
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var fs = require('fs-extra');
|
var fs = require('fs-extra');
|
||||||
var extend = require('util')._extend;
|
var extend = require('util')._extend;
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var vm = require('vm');
|
var vm = require('vm');
|
||||||
|
|
||||||
function createContext() {
|
function createContext() {
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var sandbox = require('./sandbox');
|
var sandbox = require('./sandbox');
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
module.exports = function(name) {
|
module.exports = function(name) {
|
||||||
return function(req, res, next) {
|
return function(req, res, next) {
|
||||||
req._names = req._names || [];
|
req._names = req._names || [];
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
||||||
|
// Node module: loopback-boot
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
var fs = require('fs-extra');
|
var fs = require('fs-extra');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue