Skip to content

Commit

Permalink
chore(core): update license, add copywrite to all ts files (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatdubeysf committed Jul 15, 2022
1 parent 4bd00dd commit 8753452
Show file tree
Hide file tree
Showing 1,219 changed files with 4,873 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) [2020] [SourceFuse]
Copyright (c) [2020-2022] [SourceFuse Technologies]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {expect} from '@loopback/testlab';
import * as dotenv from 'dotenv';
import sinon from 'sinon';
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/__tests__/acceptance/fixtures/data.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export const mockDataArray = [
{id: 1, name: 'product_X', quantity: 7},
{id: 2, name: 'product_Y', quantity: 4},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {Constructor} from '@loopback/core';
import {DefaultCrudRepository} from '@loopback/repository';
import {CacheManager} from '../../..';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {DefaultKeyValueRepository} from '@loopback/repository';
import {Product} from './product.model';
import {RedisDataSource} from './redis.datasource';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {Entity, model, property} from '@loopback/repository';

@model()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {Constructor, Getter} from '@loopback/core';
import {DefaultCrudRepository} from '@loopback/repository';
import {CacheManager} from '../../..';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {LifeCycleObserver} from '@loopback/core';
import {juggler} from '@loopback/repository';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {LifeCycleObserver} from '@loopback/core';
import {juggler} from '@loopback/repository';

Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/__tests__/unit/cache.mixin.unit.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {expect, sinon} from '@loopback/testlab';
import {CacheManager} from '../../mixins/cache.mixin';
import {CacheStrategyTypes} from '../../strategy-types.enum';
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/__tests__/unit/fixtures/data.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {MockModel} from './model';

export const mockData = new MockModel();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {
AnyObject,
DefaultCrudRepository,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {inject, lifeCycleObserver, LifeCycleObserver} from '@loopback/core';
import {juggler} from '@loopback/repository';

Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/__tests__/unit/fixtures/model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {Entity, model, property} from '@loopback/repository';
@model()
export class MockModel extends Entity {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {LifeCycleObserver} from '@loopback/core';
import {juggler} from '@loopback/repository';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {expect, sinon} from '@loopback/testlab';
import {RedisCacheStrategy} from '../../../strategies';
import {ICacheMixinOptions} from '../../../types';
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {
Application,
Component,
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export * from './component';
export * from './keys';
export * from './mixins';
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/keys.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {BindingKey, CoreBindings} from '@loopback/core';
import {CachePluginComponent} from './component';

Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/mixins/cache.mixin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {Constructor, MixinTarget} from '@loopback/core';
import {
DefaultCrudRepository,
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/mixins/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export * from './cache.mixin';
4 changes: 4 additions & 0 deletions packages/cache/src/strategies/cache-strategy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {JugglerDataSource} from '@loopback/repository';
import {CachePluginComponentOptions, ICacheMixinOptions} from '../types';

Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/strategies/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export * from './cache-strategy';
export * from './redis';
4 changes: 4 additions & 0 deletions packages/cache/src/strategies/redis/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export * from './redis-cache-strategy';
export * from './types';
4 changes: 4 additions & 0 deletions packages/cache/src/strategies/redis/redis-cache-strategy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {JugglerDataSource} from '@loopback/repository';
import {HttpErrors} from '@loopback/rest';
import {TextDecoder} from 'util';
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/strategies/redis/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {ICacheMixinOptions} from '../../types';

export interface IRedisCacheMixinOptions extends ICacheMixinOptions {
Expand Down
4 changes: 4 additions & 0 deletions packages/cache/src/strategy-types.enum.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export enum CacheStrategyTypes {
Redis,
}
4 changes: 4 additions & 0 deletions packages/cache/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {Entity, Filter, JugglerDataSource, Options} from '@loopback/repository';
import {ICacheStrategy} from './strategies';
import {CacheStrategyTypes} from './strategy-types.enum';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/app-generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import AppGeneratorLB4 from '@loopback/cli/generators/app';
import * as Generator from 'yeoman-generator';
export default class AppGenerator<
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/base-generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {readdirSync} from 'fs';
import {mkdir} from 'fs/promises';
import {join} from 'path';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/command-base.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import Command from '@oclif/command';
import {createEnv} from 'yeoman-environment';

Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/commands/extension.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {flags} from '@oclif/command';
import Base from '../command-base';
import {ExtensionOptions} from '../types';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/commands/microservice.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {flags} from '@oclif/command';
import Base from '../command-base';
import {DATASOURCES, SERVICES} from '../enum';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/commands/scaffold.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {flags} from '@oclif/command';
import Base from '../command-base';
import {ScaffoldOptions} from '../types';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/commands/update.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {flags} from '@oclif/command';
import Base from '../command-base';
import {UpdateOptions} from '../generators/update/types/types';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/enum.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export enum SERVICES {
AUTH = 'authentication-service',
AUDIT = 'audit-service',
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/extension-generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import ExtensionGeneratorLb4 from '@loopback/cli/generators/extension';
import * as Generator from 'yeoman-generator';
export default class ExtensionGenerator<
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/generators/extension/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {AnyObject, ExtensionOptions} from '../../types';
import BaseExtensionGenerator from '../../extension-generator';
import {join} from 'path';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/generators/microservice/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {writeFileSync} from 'fs';
import {join} from 'path';
import {Question} from 'yeoman-generator';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/generators/scaffold/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {BaseGenerator} from '../../base-generator';
import {ScaffoldOptions} from '../../types';
export default class ScaffoldGenerator extends BaseGenerator<ScaffoldOptions> {
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/generators/update/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {AnyObject} from '../../types';
import BaseUpdateGenerator from '../../update-generator';
import {join} from 'path';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/generators/update/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import Generator from 'yeoman-generator';

export interface UpdateOptions extends Generator.GeneratorOptions {
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export default {};
4 changes: 4 additions & 0 deletions packages/cli/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {DATASOURCES, SERVICES} from './enum';
import Generator from 'yeoman-generator';

Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/types/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
declare module '@loopback/cli/generators/app' {
import ProjectGenerator from '@loopback/cli/lib/project-generator';
import Generator from 'yeoman-generator';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/types/base.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
declare module '@loopback/cli/lib/base-generator' {
import Generator, {Questions} from 'yeoman-generator';
class BaseGenerator<
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/types/extension.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
declare module '@loopback/cli/generators/extension' {
import ProjectGenerator from '@loopback/cli/lib/project-generator';
import Generator from 'yeoman-generator';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/types/project.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
declare module '@loopback/cli/lib/project-generator' {
import BaseGenerator from '@loopback/cli/lib/base-generator';
import Generator from 'yeoman-generator';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/types/update.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
declare module '@loopback/cli/generators/update' {
import Generator from 'yeoman-generator';
import BaseGenerator from '@loopback/cli/lib/base-generator';
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/update-generator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2022 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import * as Generator from 'yeoman-generator';
import UpdateGeneratorLb4 from '@loopback/cli/generators/update';
export default class UpdateGenerator<
Expand Down
Loading

0 comments on commit 8753452

Please sign in to comment.