Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bastion-siege-logic

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bastion-siege-logic - npm Package Compare versions

Comparing version 1.4.1 to 2.0.0

1

dist/gamescreen/gamescreen-type.d.ts

@@ -49,2 +49,3 @@ import { BattlereportRaw } from '../battlereport';

value: string;
meta?: string;
}

@@ -51,0 +52,0 @@ export interface GamescreenContent {

11

dist/gamescreen/gamescreen.battlereport.js
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const emoji_1 = require("./emoji");
const mystics_1 = require("./mystics");
const contentFilter = __importStar(require("./helpers/content-filter"));
const regexHelper = __importStar(require("./helpers/regex"));
const contentFilter = require("./helpers/content-filter");
const regexHelper = require("./helpers/regex");
const REGEX_ARMY = `${emoji_1.EMOJI.army}.?`;

@@ -15,0 +8,0 @@ function battlereport(content) {

"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,4 +7,4 @@ const emoji_1 = require("./emoji");

const player_1 = require("./player");
const contentFilter = __importStar(require("./helpers/content-filter"));
const regexHelper = __importStar(require("./helpers/regex"));
const contentFilter = require("./helpers/content-filter");
const regexHelper = require("./helpers/regex");
const NOT_SPECIFIED_BETTER = [

@@ -18,0 +11,0 @@ 'townhall',

"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -13,4 +6,4 @@ const player_1 = require("./player");

const text_cleanup_1 = require("./text-cleanup");
const contentFilter = __importStar(require("./helpers/content-filter"));
const regexHelper = __importStar(require("./helpers/regex"));
const contentFilter = require("./helpers/content-filter");
const regexHelper = require("./helpers/regex");
const JOIN_BEGIN_EMOJIS = emoji_1.EMOJI.attack + emoji_1.EMOJI.castle + ' ';

@@ -17,0 +10,0 @@ function joined(input) {

"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const battlereport = __importStar(require("./gamescreen.battlereport"));
const buildings = __importStar(require("./gamescreen.buildings"));
const castle = __importStar(require("./gamescreen.castle"));
const lists = __importStar(require("./gamescreen.lists"));
const others = __importStar(require("./gamescreen.others"));
const players = __importStar(require("./gamescreen.players"));
const battlereport = require("./gamescreen.battlereport");
const buildings = require("./gamescreen.buildings");
const castle = require("./gamescreen.castle");
const lists = require("./gamescreen.lists");
const others = require("./gamescreen.others");
const players = require("./gamescreen.players");
const availableParser = [

@@ -17,0 +10,0 @@ battlereport,

"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const emoji_1 = require("./emoji");
const contentFilter = __importStar(require("./helpers/content-filter"));
const contentFilter = require("./helpers/content-filter");
const LIST_SIMPLE_REGEX = /^(👑|🔅|⚜)(.+)\s+(\S+)$/;
const LIST_ALLIANCE_REGEX = /^(👑|🔅|⚜)(.+)\s+(\d+🛡\s*(?:\d+ .+)?)$/;
const LIST_ALLIANCE_REGEX = /^(👑|🔅|⚜)(.+)\s+(\d+)🛡\s*(\d+ .+)?$/;
function ranking(content) {

@@ -63,3 +56,3 @@ if (contentFilter.starts(content, emoji_1.EMOJI.gold)) {

.map(o => {
const match = o.match(regex);
const match = regex.exec(o);
if (!match) {

@@ -73,2 +66,5 @@ return undefined;

};
if (match[4]) {
entry.meta = match[4];
}
return entry;

@@ -75,0 +71,0 @@ })

"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const emoji_1 = require("./emoji");
const player_1 = require("./player");
const contentFilter = __importStar(require("./helpers/content-filter"));
const regexHelper = __importStar(require("./helpers/regex"));
const contentFilter = require("./helpers/content-filter");
const regexHelper = require("./helpers/regex");
const EFFECTS_REGEX = /(.+) -\s+([^.]+)\./;

@@ -15,0 +8,0 @@ function effects(content) {

"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const player_1 = require("./player");
const emoji_1 = require("./emoji");
const contentFilter = __importStar(require("./helpers/content-filter"));
const regexHelper = __importStar(require("./helpers/regex"));
const contentFilter = require("./helpers/content-filter");
const regexHelper = require("./helpers/regex");
function allianceBattleStart(content) {

@@ -15,0 +8,0 @@ if (contentFilter.includesAll(content, 'Your ally ', ' attacked ')) {

{
"name": "bastion-siege-logic",
"version": "1.4.1",
"version": "2.0.0",
"description": "",

@@ -35,8 +35,9 @@ "license": "MIT",

"devDependencies": {
"@sindresorhus/tsconfig": "^0.3.0",
"@types/node": "^11.13.0",
"@typescript-eslint/eslint-plugin": "^1.6.0",
"ava": "^1.3.1",
"del-cli": "^1.1.0",
"eslint-config-xo-typescript": "^0.10.1",
"@sindresorhus/tsconfig": "^0.4.0",
"@types/node": "^12.0.4",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"ava": "^2.0.0",
"del-cli": "^2.0.0",
"eslint-config-xo-typescript": "^0.15.0",
"nyc": "^14.0.0",

@@ -82,5 +83,9 @@ "ts-node": "^8.0.2",

"@typescript-eslint/promise-function-async": "warn",
"ava/no-ignored-test-files": "off"
"ava/no-ignored-test-files": "off",
"@typescript-eslint/semi": [
"error",
"never"
]
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc