Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/34.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Jan 29, 2021
2 parents f87a912 + 04d6ef7 commit 35cb0c4
Show file tree
Hide file tree
Showing 26 changed files with 73 additions and 160 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Security

## v34.0.0 - 2021-01-29

### Changed

- @smarttheater/accounting-factoryとして再リリース

### Removed

- パフォーマンスインターフェースを削除

## v33.2.0 - 2021-01-20

### Changed
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Smart Theater Accounting Factory

[![npm (scoped)](https://img.shields.io/npm/v/@tokyotower/factory.svg)](https://www.npmjs.com/package/@tokyotower/factory)
[![CircleCI](https://circleci.com/gh/tokyo-tower/factory.svg?style=shield)](https://circleci.com/gh/tokyo-tower/factory)
[![Coverage Status](https://coveralls.io/repos/github/tokyo-tower/factory/badge.svg?branch=master)](https://coveralls.io/github/tokyo-tower/factory?branch=master)
[![Dependency Status](https://david-dm.org/tokyotower/factory.svg)](https://david-dm.org/tokyotower/factory.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/tokyo-tower/factory/badge.svg)](https://snyk.io/test/github/tokyo-tower/factory)
[![npm](https://img.shields.io/npm/dm/@tokyotower/factory.svg)](https://nodei.co/npm/@tokyotower/factory/)
[![npm (scoped)](https://img.shields.io/npm/v/@smarttheater/accounting-factory.svg)](https://www.npmjs.com/package/@smarttheater/accounting-factory)
[![CircleCI](https://circleci.com/gh/smarttheater/accounting-factory.svg?style=shield)](https://circleci.com/gh/smarttheater/accounting-factory)
[![Coverage Status](https://coveralls.io/repos/github/smarttheater/accounting-factory/badge.svg?branch=master)](https://coveralls.io/github/smarttheater/accounting-factory?branch=master)
[![Dependency Status](https://david-dm.org/smarttheater/accounting-factory.svg)](https://david-dm.org/smarttheater/accounting-factory.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/smarttheater/accounting-factory/badge.svg)](https://snyk.io/test/github/smarttheater/accounting-factory)
[![npm](https://img.shields.io/npm/dm/@smarttheater/accounting-factory.svg)](https://nodei.co/npm/@smarttheater/accounting-factory/)

## Table of contents

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tokyotower/factory",
"version": "33.2.0",
"description": "TTTS Factory Library",
"name": "@smarttheater/accounting-factory",
"version": "34.0.0",
"description": "Smart Theater Accounting Factory",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -64,6 +64,6 @@
},
"repository": {
"type": "git",
"url": "https://github.com/tokyo-tower/factory.git"
"url": "https://github.com/smarttheater/accounting-factory.git"
}
}
4 changes: 2 additions & 2 deletions src/factory/error/alreadyInUse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('new AlreadyInUseError()', () => {
assert.equal(error.entityName, entityName);
assert.equal(error.fieldNames, fieldNames);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

Expand All @@ -28,7 +28,7 @@ describe('new AlreadyInUseError()', () => {
assert(error instanceof Error);
assert.equal(error.entityName, entityName);
assert.equal(error.fieldNames, fieldNames);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/alreadyInUse.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* AlreadyInUseError
*
* @class AlreadyInUseError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class AlreadyInUseError extends TTTSError {
export default class AlreadyInUseError extends SmartTheaterError {
public readonly entityName: string;
public readonly fieldNames: string[];

Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/argument.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('new ArgumentError()', () => {
assert(error instanceof Error);
assert.equal(error.argumentName, argumentName);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

Expand All @@ -24,7 +24,7 @@ describe('new ArgumentError()', () => {
const error = new ArgumentError(argumentName);
assert(error instanceof Error);
assert.equal(error.argumentName, argumentName);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/argument.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* ArgumentError
*
* @class ArgumentError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class ArgumentError extends TTTSError {
export default class ArgumentError extends SmartTheaterError {
public readonly argumentName: string;

constructor(argumentName: string, message?: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/argumentNull.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('new ArgumentNullError()', () => {
assert(error instanceof Error);
assert.equal(error.argumentName, argumentName);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

Expand All @@ -24,7 +24,7 @@ describe('new ArgumentNullError()', () => {
const error = new ArgumentNullError(argumentName);
assert(error instanceof Error);
assert.equal(error.argumentName, argumentName);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/argumentNull.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* ArgumentNullError
*
* @class ArgumentNullError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class ArgumentNullError extends TTTSError {
export default class ArgumentNullError extends SmartTheaterError {
public readonly argumentName: string;

constructor(argumentName: string, message?: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/forbidden.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ describe('new ForbiddenError()', () => {
const error = new ForbiddenError(message);
assert(error instanceof Error);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

it('メッセージを指定しなくても、正しくインスタンス化できる', () => {
const error = new ForbiddenError();
assert(error instanceof Error);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/forbidden.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* ForbiddenError
*
* @class ForbiddenError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class ForbiddenError extends TTTSError {
export default class ForbiddenError extends SmartTheaterError {
constructor(message?: string) {
if (message === undefined || message.length === 0) {
// tslint:disable-next-line:no-parameter-reassignment
Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/notFound.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('new NotFoundError()', () => {
assert(error instanceof Error);
assert.equal(error.entityName, entityName);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

Expand All @@ -24,7 +24,7 @@ describe('new NotFoundError()', () => {
const error = new NotFoundError(entityName);
assert(error instanceof Error);
assert.equal(error.entityName, entityName);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/notFound.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* NotFoundError
*
* @class NotFoundError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class NotFoundError extends TTTSError {
export default class NotFoundError extends SmartTheaterError {
public readonly entityName: string;

constructor(entityName: string, message?: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/notImplemented.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ describe('new NotImplementedError()', () => {
const error = new NotImplementedError(message);
assert(error instanceof Error);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

it('メッセージを指定しなくても、正しくインスタンス化できる', () => {
const error = new NotImplementedError();
assert(error instanceof Error);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/notImplemented.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* NotImplementedError
*
* @class NotImplementedError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class NotImplementedError extends TTTSError {
export default class NotImplementedError extends SmartTheaterError {
constructor(message?: string) {
if (message === undefined || message.length === 0) {
// tslint:disable-next-line:no-parameter-reassignment
Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/rateLimitExceeded.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ describe('new RateLimitExceededError()', () => {
const error = new RateLimitExceededError(message);
assert(error instanceof Error);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

it('メッセージを指定しなくても、正しくインスタンス化できる', () => {
const error = new RateLimitExceededError();
assert(error instanceof Error);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/rateLimitExceeded.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* RateLimitExceededError
* @class RateLimitExceededError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class RateLimitExceededError extends TTTSError {
export default class RateLimitExceededError extends SmartTheaterError {
constructor(message?: string) {
if (message === undefined || message.length === 0) {
// tslint:disable-next-line:no-parameter-reassignment
Expand Down
4 changes: 2 additions & 2 deletions src/factory/error/serviceUnavailable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ describe('new ServiceUnavailableError()', () => {
const error = new ServiceUnavailableError(message);
assert(error instanceof Error);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

it('メッセージを指定しなくても、正しくインスタンス化できる', () => {
const error = new ServiceUnavailableError();
assert(error instanceof Error);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
6 changes: 3 additions & 3 deletions src/factory/error/serviceUnavailable.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable-next-line:no-require-imports
import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';
import { TTTSError } from './ttts';
import { SmartTheaterError } from './smarttheater';

/**
* ServiceUnavailableError
*
* @class ServiceUnavailableError
* @extends {TTTSError}
* @extends {SmartTheaterError}
*/
export default class ServiceUnavailableError extends TTTSError {
export default class ServiceUnavailableError extends SmartTheaterError {
constructor(message?: string) {
if (message === undefined || message.length === 0) {
// tslint:disable-next-line:no-parameter-reassignment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import setPrototypeOf = require('setprototypeof');
import ErrorCode from '../errorCode';

/**
* TTTSドメインエラー
* SmartTheaterエラー
*/
export class TTTSError extends Error {
export class SmartTheaterError extends Error {
public readonly reason: ErrorCode;

constructor(code: ErrorCode, message?: string) {
super(message);

this.name = 'TTTSError';
this.name = 'SmartTheaterError';
this.reason = code;

setPrototypeOf(this, TTTSError.prototype);
setPrototypeOf(this, SmartTheaterError.prototype);
}
}
4 changes: 2 additions & 2 deletions src/factory/error/unauthorized.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ describe('new UnauthorizedError()', () => {
const error = new UnauthorizedError(message);
assert(error instanceof Error);
assert.equal(error.message, message);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.stack, 'string');
});

it('メッセージを指定しなくても、正しくインスタンス化できる', () => {
const error = new UnauthorizedError();
assert(error instanceof Error);
assert.equal(error.name, 'TTTSError');
assert.equal(error.name, 'SmartTheaterError');
assert.equal(typeof error.message, 'string');
assert.equal(typeof error.stack, 'string');
});
Expand Down
Loading

0 comments on commit 35cb0c4

Please sign in to comment.