mirror of
https://github.com/asphyxia-core/core.git
synced 2026-12-05 07:26:20 -06:00
v1.60a
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## v1.60a
|
||||
- **CORE**: Core is now open-source.
|
||||
- **CORE**: Removed 16 profile count limit.
|
||||
|
||||
## v1.50e
|
||||
- **CORE**: Change country code from `AX` to `JP` in `facility.get`
|
||||
|
||||
|
||||
2
docs
2
docs
Submodule docs updated: b7f261ab4b...52612a467b
1234
package-lock.json
generated
1234
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
2
plugins/asphyxia-core.d.ts
vendored
2
plugins/asphyxia-core.d.ts
vendored
@@ -1155,7 +1155,7 @@ type Update<T> = Partial<T> & {
|
||||
* you should refrain from referencing refid in your document to prevent getting residual garbage data.
|
||||
*
|
||||
* If you need to make rival/friend feature, we recommend you to get all profile data by passing null to `refid`.
|
||||
* There will be 16 profiles maximum which is small enough to manage.
|
||||
* This method should be sufficient for playing with friends.
|
||||
*
|
||||
* All query and doc should not have any fields start with `__` while `__refid` being the only exception.
|
||||
* However, `__refid` field will still be ignored while other `__` starting fields will cause an error to be thrown.
|
||||
|
||||
@@ -3,7 +3,6 @@ import { get } from 'lodash';
|
||||
import { ROOT_CONTAINER } from '../index';
|
||||
import {
|
||||
FindCard,
|
||||
GetProfileCount,
|
||||
FindProfile,
|
||||
CreateProfile,
|
||||
BindProfile,
|
||||
@@ -35,12 +34,6 @@ cardmng.add('cardmng.inquire', async (info, data, send) => {
|
||||
const card = await FindCard(cid);
|
||||
|
||||
if (!card) {
|
||||
const profileCount = await GetProfileCount();
|
||||
if (profileCount < 0 || profileCount >= 16) {
|
||||
// Refuse to create new account
|
||||
return send.status(110);
|
||||
}
|
||||
|
||||
// Create new account
|
||||
return send.status(112);
|
||||
}
|
||||
|
||||
@@ -6,21 +6,17 @@ import { Logger } from '../utils/Logger';
|
||||
import { PLUGIN_PATH, APIFindOne, APIFind } from '../utils/EamuseIO';
|
||||
import path from 'path';
|
||||
import { readdirSync, readFileSync } from 'fs';
|
||||
import {
|
||||
FindCard,
|
||||
CreateProfile,
|
||||
CreateCard,
|
||||
BindProfile,
|
||||
GetProfileCount,
|
||||
} from '../utils/EamuseIO';
|
||||
import { FindCard, CreateProfile, CreateCard, BindProfile } from '../utils/EamuseIO';
|
||||
|
||||
import { compile } from 'pug';
|
||||
import { CONFIG } from '../utils/ArgConfig';
|
||||
import { nfc2card } from '../utils/CardCipher';
|
||||
|
||||
async function cardSanitizer(gameCode: string, str: string, refMap: any): Promise<string> {
|
||||
const regex = /(^|[^A-Za-z0-9])((?:01[A-Fa-f0-9]{14})|(?:E004[A-Fa-f0-9]{12}))($|[^A-Za-z0-9=\-_,+\/])/g;
|
||||
const regexI = /(^|[^A-Za-z0-9])((?:01[A-Fa-f0-9]{14})|(?:E004[A-Fa-f0-9]{12}))($|[^A-Za-z0-9=\-_,+\/])/;
|
||||
const regex =
|
||||
/(^|[^A-Za-z0-9])((?:01[A-Fa-f0-9]{14})|(?:E004[A-Fa-f0-9]{12}))($|[^A-Za-z0-9=\-_,+\/])/g;
|
||||
const regexI =
|
||||
/(^|[^A-Za-z0-9])((?:01[A-Fa-f0-9]{14})|(?:E004[A-Fa-f0-9]{12}))($|[^A-Za-z0-9=\-_,+\/])/;
|
||||
if (typeof str !== 'string') {
|
||||
return str;
|
||||
}
|
||||
@@ -37,8 +33,6 @@ async function cardSanitizer(gameCode: string, str: string, refMap: any): Promis
|
||||
const did = nfc2card(cid);
|
||||
const card = await FindCard(cid);
|
||||
if (!card) {
|
||||
const profileCount = await GetProfileCount();
|
||||
if (profileCount < 0 || profileCount >= 16) return null;
|
||||
const newProfile = await CreateProfile('unset', gameCode);
|
||||
if (!newProfile) return null;
|
||||
const newCard = await CreateCard(cid, newProfile.__refid);
|
||||
|
||||
@@ -1,93 +1,636 @@
|
||||
export const VERSION = 'v1.50e';
|
||||
export const VERSION = 'v1.60a';
|
||||
export const NAMES = [
|
||||
'Aaron',
|
||||
'Abdullah',
|
||||
'Abigail',
|
||||
'Adam',
|
||||
'Adelaide',
|
||||
'Adrian',
|
||||
'Adriana',
|
||||
'Agnes',
|
||||
'Aiden',
|
||||
'Aisha',
|
||||
'Akari',
|
||||
'Akehiro',
|
||||
'Akihiro',
|
||||
'Akiko',
|
||||
'Akira',
|
||||
'Alan',
|
||||
'Albert',
|
||||
'Alejandro',
|
||||
'Alex',
|
||||
'Alexander',
|
||||
'Alexis',
|
||||
'Alfred',
|
||||
'Alice',
|
||||
'Alice',
|
||||
'Alicia',
|
||||
'Alina',
|
||||
'Allison',
|
||||
'Alonso',
|
||||
'Amanda',
|
||||
'Amanda',
|
||||
'Amber',
|
||||
'Amelia',
|
||||
'Amy',
|
||||
'Amy',
|
||||
'Ana',
|
||||
'Anders',
|
||||
'Andrea',
|
||||
'Andrew',
|
||||
'Andrew',
|
||||
'Angela',
|
||||
'Angela',
|
||||
'Angelica',
|
||||
'Angelo',
|
||||
'Anna',
|
||||
'Anna',
|
||||
'Anthony',
|
||||
'Anthony',
|
||||
'Antonio',
|
||||
'Arata',
|
||||
'Aritomo',
|
||||
'Arjun',
|
||||
'Art',
|
||||
'Arthur',
|
||||
'Ashley',
|
||||
'Ashton',
|
||||
'Asuka',
|
||||
'Atsuhiro',
|
||||
'Atsushi',
|
||||
'Audrey',
|
||||
'Austin',
|
||||
'Ava',
|
||||
'Ayaka',
|
||||
'Ayato',
|
||||
'Aylin',
|
||||
'Ayumi',
|
||||
'Barbara',
|
||||
'Beatrice',
|
||||
'Bella',
|
||||
'Ben',
|
||||
'Benjamin',
|
||||
'Benjamin',
|
||||
'Bennett',
|
||||
'Bernard',
|
||||
'Beth',
|
||||
'Bethany',
|
||||
'Big',
|
||||
'Bill',
|
||||
'Blake',
|
||||
'Boris',
|
||||
'Brad',
|
||||
'Brandon',
|
||||
'Brenda',
|
||||
'Brian',
|
||||
'Brian',
|
||||
'Bridget',
|
||||
'Brittany',
|
||||
'Brittany',
|
||||
'Bruce',
|
||||
'Bruno',
|
||||
'Caleb',
|
||||
'Caleb',
|
||||
'Cameron',
|
||||
'Camila',
|
||||
'Camilla',
|
||||
'Candice',
|
||||
'Carl',
|
||||
'Carl',
|
||||
'Carla',
|
||||
'Carlos',
|
||||
'Carmen',
|
||||
'Caroline',
|
||||
'Caroline',
|
||||
'Carter',
|
||||
'Cassandra',
|
||||
'Catherine',
|
||||
'Catherine',
|
||||
'Cecilia',
|
||||
'Chad',
|
||||
'Charles',
|
||||
'Charlotte',
|
||||
'Charlotte',
|
||||
'Chelsea',
|
||||
'Chie',
|
||||
'DJ',
|
||||
'Chloe',
|
||||
'Chris',
|
||||
'Christian',
|
||||
'Christina',
|
||||
'Christina',
|
||||
'Christopher',
|
||||
'Claire',
|
||||
'Claire',
|
||||
'Clara',
|
||||
'Clarence',
|
||||
'Claudia',
|
||||
'Claudio',
|
||||
'Colin',
|
||||
'Colin',
|
||||
'Connor',
|
||||
'Connor',
|
||||
'Courtney',
|
||||
'Craig',
|
||||
'Crystal',
|
||||
'Cynthia',
|
||||
'Daisaku',
|
||||
'Daisuke',
|
||||
'Daisy',
|
||||
'Dakota',
|
||||
'Dale',
|
||||
'Daniel',
|
||||
'Daniel',
|
||||
'Daniela',
|
||||
'Danielle',
|
||||
'Darren',
|
||||
'Dave',
|
||||
'David',
|
||||
'David',
|
||||
'Dean',
|
||||
'Deanna',
|
||||
'Deborah',
|
||||
'Deborah',
|
||||
'Declan',
|
||||
'Dennis',
|
||||
'Derek',
|
||||
'Diana',
|
||||
'Diana',
|
||||
'Diego',
|
||||
'Diego',
|
||||
'Dimitri',
|
||||
'Dina',
|
||||
'DJ',
|
||||
'Dmitri',
|
||||
'Dmitry',
|
||||
'Dolores',
|
||||
'Dominic',
|
||||
'Donna',
|
||||
'Dorothy',
|
||||
'Douglas',
|
||||
'Drew',
|
||||
'Dylan',
|
||||
'Dylan',
|
||||
'Eddie',
|
||||
'Edgar',
|
||||
'Edith',
|
||||
'Edmund',
|
||||
'Eduardo',
|
||||
'Edward',
|
||||
'Edward',
|
||||
'Edwin',
|
||||
'Eiichi',
|
||||
'Eleanor',
|
||||
'Elena',
|
||||
'Elena',
|
||||
'Elias',
|
||||
'Elijah',
|
||||
'Ella',
|
||||
'Ellen',
|
||||
'Ellie',
|
||||
'Emily',
|
||||
'Emily',
|
||||
'Emma',
|
||||
'Emma',
|
||||
'Emmanuel',
|
||||
'Enrique',
|
||||
'Eric',
|
||||
'Eric',
|
||||
'Erica',
|
||||
'Erik',
|
||||
'Erin',
|
||||
'Ernest',
|
||||
'Ethan',
|
||||
'Ethan',
|
||||
'Eva',
|
||||
'Eva',
|
||||
'Evan',
|
||||
'Evan',
|
||||
'Evelyn',
|
||||
'Faith',
|
||||
'Felix',
|
||||
'Fiona',
|
||||
'Fiona',
|
||||
'Florence',
|
||||
'Frances',
|
||||
'Francis',
|
||||
'Francisco',
|
||||
'Frank',
|
||||
'Frank',
|
||||
'Franklin',
|
||||
'Frederick',
|
||||
'Gabriel',
|
||||
'Gabriel',
|
||||
'Gail',
|
||||
'Gary',
|
||||
'Gavin',
|
||||
'Gavin',
|
||||
'Genevieve',
|
||||
'Genki',
|
||||
'Geoffrey',
|
||||
'George',
|
||||
'George',
|
||||
'Georgia',
|
||||
'Gerald',
|
||||
'Gina',
|
||||
'Giovanni',
|
||||
'Gloria',
|
||||
'Grace',
|
||||
'Grace',
|
||||
'Graham',
|
||||
'Grant',
|
||||
'Gregory',
|
||||
'Gregory',
|
||||
'Greta',
|
||||
'Gwendolyn',
|
||||
'Hana',
|
||||
'Hannah',
|
||||
'Hannah',
|
||||
'Harold',
|
||||
'Harriet',
|
||||
'Harry',
|
||||
'Haruka',
|
||||
'Haruto',
|
||||
'Harvey',
|
||||
'Hayato',
|
||||
'Hayden',
|
||||
'Hazel',
|
||||
'Heather',
|
||||
'Heather',
|
||||
'Hector',
|
||||
'Helen',
|
||||
'Helena',
|
||||
'Henrietta',
|
||||
'Henry',
|
||||
'Henry',
|
||||
'Herbert',
|
||||
'Hideki',
|
||||
'Hidenori',
|
||||
'Hige',
|
||||
'Hilda',
|
||||
'Hinata',
|
||||
'Hiro',
|
||||
'Hirofumi',
|
||||
'Hirokazu',
|
||||
'Hiroki',
|
||||
'Hiroshi',
|
||||
'Hiroshi',
|
||||
'Hiroyoshi',
|
||||
'Hitomi',
|
||||
'Holden',
|
||||
'Holly',
|
||||
'Hope',
|
||||
'Hugo',
|
||||
'Ian',
|
||||
'Ian',
|
||||
'Imelda',
|
||||
'Irene',
|
||||
'Isaac',
|
||||
'Isabel',
|
||||
'Isabella',
|
||||
'Isabella',
|
||||
'Isabelle',
|
||||
'Ivan',
|
||||
'Ivan',
|
||||
'Ivy',
|
||||
'Jack',
|
||||
'Jacob',
|
||||
'Jacob',
|
||||
'Jacqueline',
|
||||
'Jake',
|
||||
'James',
|
||||
'James',
|
||||
'Jamie',
|
||||
'Jamie',
|
||||
'Jane',
|
||||
'Jane',
|
||||
'Janet',
|
||||
'Janet',
|
||||
'Janice',
|
||||
'Jasmine',
|
||||
'Jason',
|
||||
'Jason',
|
||||
'Jason',
|
||||
'Jean',
|
||||
'Jean',
|
||||
'Jeffrey',
|
||||
'Jeffrey',
|
||||
'Jenna',
|
||||
'Jennifer',
|
||||
'Jennifer',
|
||||
'Jenny',
|
||||
'Jeremy',
|
||||
'Jeremy',
|
||||
'Jessica',
|
||||
'Jessica',
|
||||
'Joan',
|
||||
'Joan',
|
||||
'Joanna',
|
||||
'Jocelyn',
|
||||
'Joel',
|
||||
'Johann',
|
||||
'John',
|
||||
'John',
|
||||
'Jonathan',
|
||||
'Jonathan',
|
||||
'Jondi',
|
||||
'Jordan',
|
||||
'Jordan',
|
||||
'Jorge',
|
||||
'Joseph',
|
||||
'Joseph',
|
||||
'Josh',
|
||||
'Joshua',
|
||||
'Joyce',
|
||||
'Juan',
|
||||
'Julia',
|
||||
'Julia',
|
||||
'Julian',
|
||||
'Julie',
|
||||
'Junichiro',
|
||||
'Junko',
|
||||
'Justin',
|
||||
'Justin',
|
||||
'Kaede',
|
||||
'Kaitlyn',
|
||||
'Kamome',
|
||||
'Kan',
|
||||
'Kanae',
|
||||
'Kaneko',
|
||||
'Kaoko',
|
||||
'Kaori',
|
||||
'Karen',
|
||||
'Karen',
|
||||
'Kate',
|
||||
'Kate',
|
||||
'Katherine',
|
||||
'Katherine',
|
||||
'Kathryn',
|
||||
'Katie',
|
||||
'Katie',
|
||||
'Kayla',
|
||||
'Kayla',
|
||||
'Kazuyoshi',
|
||||
'Keiichi',
|
||||
'Keita',
|
||||
'Keith',
|
||||
'Keith',
|
||||
'Kelly',
|
||||
'Kelly',
|
||||
'Kenji',
|
||||
'Kenneth',
|
||||
'Kevin',
|
||||
'Kevin',
|
||||
'Kim',
|
||||
'Kimberly',
|
||||
'Kimitaka',
|
||||
'Kirsten',
|
||||
'Kiyoshi',
|
||||
'Kotaro',
|
||||
'Kozo',
|
||||
'Kyle',
|
||||
'Kyle',
|
||||
'Landon',
|
||||
'Larry',
|
||||
'Laura',
|
||||
'Laura',
|
||||
'Lauren',
|
||||
'Lauren',
|
||||
'Lawrence',
|
||||
'Lawrence',
|
||||
'Lea',
|
||||
'Leah',
|
||||
'Leah',
|
||||
'Leo',
|
||||
'Leo',
|
||||
'Leon',
|
||||
'Leonard',
|
||||
'Liam',
|
||||
'Liam',
|
||||
'Lillian',
|
||||
'Lily',
|
||||
'Lily',
|
||||
'Linda',
|
||||
'Linda',
|
||||
'Lindsay',
|
||||
'Lisa',
|
||||
'Lisa',
|
||||
'Logan',
|
||||
'Louis',
|
||||
'Louis',
|
||||
'Louise',
|
||||
'Lucas',
|
||||
'Lucas',
|
||||
'Lucia',
|
||||
'Lucy',
|
||||
'Lucy',
|
||||
'Luis',
|
||||
'Luis',
|
||||
'Luke',
|
||||
'Lydia',
|
||||
'Madeleine',
|
||||
'Madison',
|
||||
'Madison',
|
||||
'Makino',
|
||||
'Malcolm',
|
||||
'Marcus',
|
||||
'Marcus',
|
||||
'Margaret',
|
||||
'Maria',
|
||||
'Maria',
|
||||
'Marie',
|
||||
'Marie',
|
||||
'Mario',
|
||||
'Mark',
|
||||
'Mark',
|
||||
'Mark',
|
||||
'Martha',
|
||||
'Martin',
|
||||
'Martin',
|
||||
'Mary',
|
||||
'Mary',
|
||||
'Masakazu',
|
||||
'Masanori',
|
||||
'Masashi',
|
||||
'Masayoshi',
|
||||
'Mason',
|
||||
'Massive',
|
||||
'Matthew',
|
||||
'Matthew',
|
||||
'Megan',
|
||||
'Megan',
|
||||
'Melanie',
|
||||
'Melissa',
|
||||
'Melissa',
|
||||
'Melvin',
|
||||
'Michael',
|
||||
'Michael',
|
||||
'Michael',
|
||||
'Michelle',
|
||||
'Michelle',
|
||||
'Miguel',
|
||||
'Mika',
|
||||
'Mikako',
|
||||
'Mila',
|
||||
'Mildred',
|
||||
'Minhyuk',
|
||||
'Mirai',
|
||||
'Miranda',
|
||||
'Miyuki',
|
||||
'Moe',
|
||||
'Mohammed',
|
||||
'Momoko',
|
||||
'Monica',
|
||||
'Morgan',
|
||||
'Morgan',
|
||||
'Morris',
|
||||
'Motoaki',
|
||||
'Mutsuhiko',
|
||||
'Myles',
|
||||
'Nancy',
|
||||
'Nancy',
|
||||
'Naoki',
|
||||
'Natalie',
|
||||
'Natalie',
|
||||
'Nathan',
|
||||
'Nathan',
|
||||
'Nicholas',
|
||||
'Nicholas',
|
||||
'Nicholas',
|
||||
'Nicolas',
|
||||
'Nicole',
|
||||
'Nicole',
|
||||
'Nina',
|
||||
'Noah',
|
||||
'Noah',
|
||||
'Noboru',
|
||||
'Noel',
|
||||
'Nora',
|
||||
'Norman',
|
||||
'Oliver',
|
||||
'Oliver',
|
||||
'Olivia',
|
||||
'Olivia',
|
||||
'Omar',
|
||||
'Osamu',
|
||||
'Oscar',
|
||||
'Oscar',
|
||||
'Owen',
|
||||
'Paige',
|
||||
'Paige',
|
||||
'Pamela',
|
||||
'Patricia',
|
||||
'Patrick',
|
||||
'Patrick',
|
||||
'Paul',
|
||||
'Paul',
|
||||
'Pedro',
|
||||
'Penny',
|
||||
'Peter',
|
||||
'Peter',
|
||||
'Philip',
|
||||
'Philip',
|
||||
'Phoebe',
|
||||
'Pierre',
|
||||
'Rachel',
|
||||
'Rachel',
|
||||
'Rafael',
|
||||
'Ralph',
|
||||
'Ramona',
|
||||
'Randall',
|
||||
'Randy',
|
||||
'Raymond',
|
||||
'Raymond',
|
||||
'Rebecca',
|
||||
'Rebecca',
|
||||
'Regina',
|
||||
'Rei',
|
||||
'Ren',
|
||||
'Rena',
|
||||
'Renee',
|
||||
'Reo',
|
||||
'Ricardo',
|
||||
'Richard',
|
||||
'Richard',
|
||||
'Richard',
|
||||
'Robert',
|
||||
'Robert',
|
||||
'Roberto',
|
||||
'Robin',
|
||||
'Robin',
|
||||
'Roger',
|
||||
'Roland',
|
||||
'Ronald',
|
||||
'Ronald',
|
||||
'Rosa',
|
||||
'Rose',
|
||||
'Rose',
|
||||
'Rosemary',
|
||||
'Roy',
|
||||
'Ruby',
|
||||
'Rui',
|
||||
'Russell',
|
||||
'Ruth',
|
||||
'Ryan',
|
||||
'Ryan',
|
||||
'Ryo',
|
||||
'Ryuta',
|
||||
'Ryutaro',
|
||||
'Sadahiro',
|
||||
'Sae',
|
||||
'Sakura',
|
||||
'Sam',
|
||||
'Samantha',
|
||||
'Samantha',
|
||||
'Samuel',
|
||||
'Samuel',
|
||||
'Sandra',
|
||||
'Sandra',
|
||||
'Sara',
|
||||
'Sarah',
|
||||
'Sarah',
|
||||
'Satoru',
|
||||
'Scott',
|
||||
'Scott',
|
||||
'Sean',
|
||||
'Sean',
|
||||
'Sebastian',
|
||||
'Sebastian',
|
||||
'Seishin',
|
||||
'Shane',
|
||||
'Sharon',
|
||||
'Shawn',
|
||||
'Sheila',
|
||||
'Shibuichi',
|
||||
'Shigeyoshi',
|
||||
'Shin',
|
||||
'Shinichi',
|
||||
'Shinichiro',
|
||||
'Shinji',
|
||||
'Shiori',
|
||||
'Shirley',
|
||||
'Shohei',
|
||||
'Shoichiro',
|
||||
'Shuichi',
|
||||
'Shunsuke',
|
||||
'Silvia',
|
||||
'Silvia',
|
||||
'Simon',
|
||||
'Sophia',
|
||||
'Sophia',
|
||||
'Sophie',
|
||||
'Sota',
|
||||
'Spencer',
|
||||
'Stacy',
|
||||
'Stephanie',
|
||||
'Stephanie',
|
||||
'Stephen',
|
||||
'Stephen',
|
||||
'Steven',
|
||||
'Steven',
|
||||
'Stuart',
|
||||
'Stuart',
|
||||
'Susan',
|
||||
'Susan',
|
||||
'Taimei',
|
||||
'Takahiro',
|
||||
'Takao',
|
||||
@@ -96,10 +639,26 @@ export const NAMES = [
|
||||
'Takehiro',
|
||||
'Takeo',
|
||||
'Takeshi',
|
||||
'Takeshi',
|
||||
'Taku',
|
||||
'Takuma',
|
||||
'Tanya',
|
||||
'Tara',
|
||||
'Tara',
|
||||
'Tatsuya',
|
||||
'Taylor',
|
||||
'Taylor',
|
||||
'Teresa',
|
||||
'Teresa',
|
||||
'Theresa',
|
||||
'Thomas',
|
||||
'Thomas',
|
||||
'Thomas',
|
||||
'Timothy',
|
||||
'Timothy',
|
||||
'Tina',
|
||||
'Tina',
|
||||
'Todd',
|
||||
'Tomoaki',
|
||||
'Tomohiro',
|
||||
'Tomoki',
|
||||
@@ -110,8 +669,39 @@ export const NAMES = [
|
||||
'Toshihiro',
|
||||
'Toshihisa',
|
||||
'Toshiyuki',
|
||||
'Tracy',
|
||||
'Travis',
|
||||
'Travis',
|
||||
'Trevor',
|
||||
'Trevor',
|
||||
'Tsugumi',
|
||||
'Tyler',
|
||||
'Tyler',
|
||||
'Tyler',
|
||||
'Ursula',
|
||||
'Valerie',
|
||||
'Vanessa',
|
||||
'Vanessa',
|
||||
'Veronica',
|
||||
'Victor',
|
||||
'Victor',
|
||||
'Victoria',
|
||||
'Victoria',
|
||||
'Vincent',
|
||||
'Vincent',
|
||||
'Virginia',
|
||||
'Virginia',
|
||||
'Vivian',
|
||||
'Walter',
|
||||
'Walter',
|
||||
'Wendy',
|
||||
'William',
|
||||
'William',
|
||||
'Wolfram',
|
||||
'Xavier',
|
||||
'Xavier',
|
||||
'Ximena',
|
||||
'Yasmin',
|
||||
'Yasuhiko',
|
||||
'Yasuhiro',
|
||||
'Yasuko',
|
||||
@@ -119,6 +709,7 @@ export const NAMES = [
|
||||
'Yoichi',
|
||||
'Yoshihiko',
|
||||
'Yoshikazu',
|
||||
'Yoshiko',
|
||||
'Yoshimi',
|
||||
'Yoshinori',
|
||||
'Yoshiya',
|
||||
@@ -126,11 +717,17 @@ export const NAMES = [
|
||||
'Yosuke',
|
||||
'Youhei',
|
||||
'Youichi',
|
||||
'Yui',
|
||||
'Yuichi',
|
||||
'Yuki',
|
||||
'Yukihiro',
|
||||
'Yuko',
|
||||
'Yuna',
|
||||
'Yuni',
|
||||
'Yusuke',
|
||||
'Yuuki',
|
||||
'Yvonne',
|
||||
'Zachary',
|
||||
'Zachary',
|
||||
'Zoe',
|
||||
];
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Logger } from './Logger';
|
||||
import path from 'path';
|
||||
import nedb from '@seald-io/nedb';
|
||||
import { nfc2card } from './CardCipher';
|
||||
import hashids from 'hashids/cjs'
|
||||
import hashids from 'hashids/cjs';
|
||||
import { NAMES } from './Consts';
|
||||
import { CONFIG, ARGS } from './ArgConfig';
|
||||
import { isArray, get, isPlainObject, sortBy } from 'lodash';
|
||||
@@ -61,11 +61,6 @@ const LoadDatabase = async (file: string) => {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (value > 16) {
|
||||
Logger.error('Profile table is corrupted. Can not load database.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
try {
|
||||
await DB.ensureIndexAsync({ fieldName: '__s' });
|
||||
await DB.ensureIndexAsync({ fieldName: '__refid' });
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
"readme": "none",
|
||||
"name": "Asphyxia CORE Module API",
|
||||
"out": "./docs/typedoc",
|
||||
"tsconfig": "./plugins/tsconfig.json"
|
||||
"tsconfig": "./plugins/tsconfig.json",
|
||||
"disableSources": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user