Code Monkey home page Code Monkey logo

warframe-worldstate-parser's Introduction

Warframe Worldstate Parser

Parse the Warframe worldstate into useable javascript objects.

Supported by the Warframe Community Developers Crowdin Coverage Status Discord semantic-release: angular

Documentation

You can find the documentation here

Installation

$ npm i -S warframe-worldstate-parser

For the most part, you'll have a better experience consuming the product of this from the information in Live version

Example usage

const worldstateData = await require('request-promise')('http://content.warframe.com/dynamic/worldState.php');

const WorldState = require('warframe-worldstate-parser');

const ws = new WorldState(worldstateData);

console.log(ws.alerts[0].toString());

Live version

See the parser in action here:

PC API PS4 API XB1 API Switch API

warframe-worldstate-parser's People

Contributors

cagatayldzz avatar dependabot[bot] avatar ericsihaolin avatar fubycoder avatar greenkeeper[bot] avatar ihton avatar kaptard avatar neppkun avatar nickcross-79 avatar nspacestd avatar sainan avatar savagecore avatar scruffyrules avatar seldszar avatar slayerornstein avatar snyk-bot avatar tobitenno avatar wfcd-bot-boi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

warframe-worldstate-parser's Issues

An in-range update of eslint-plugin-jsx-a11y is breaking the build 🚨

Version 6.1.0 of eslint-plugin-jsx-a11y was just published.

Branch Build failing 🚨
Dependency eslint-plugin-jsx-a11y
Current Version 6.0.3
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jsx-a11y is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes Support eslint v5

6.1.0 / 2018-06-26

  • [new] Support for eslint v5, #451
  • [new] aria-query updated to latest version
  • [new] eslint-config-airbnb-base updated to the latest version
  • [deprecate] The rule label-has-for is deprecated and replaced with label-has-associated-control
  • [fix] heading-has-content updated to work with custom components, #431
  • [fix] aria-errormessage prop is now a valid ARIA property, #424
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

Version 5.0.10 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 5.0.9
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 9 commits.

  • 4313d2d Update docs/changelog.md and set new release id in docs/_config.yml
  • e21c92a Add release documentation for v5.0.10
  • 41d0dcb 5.0.10
  • 928379c Update History.md and AUTHORS for new release
  • 5ca48d3 Merge pull request #1802 from ifrost/feature/restore-default-sandbox-fake-timers
  • 087bc1c Cache reverse function
  • d19a4c0 Add issue number
  • 6799e1c Use fakeTimers in the default sandbox
  • 8b6f8a8 Revert spied fakeTimers to original state

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Error whilst running Usage code provided by README

Tried to test how it works (since there isn't much to read about) by running the code provided by the README

var WorldState = require('warframe-worldstate-parser');
var worldStates = {
  PC : new Worldstate('PC'),
  PS4 : new Worldstate('PS4'),
  X1 : new Worldstate('X1'),
}
var primeAccess = null;
worldStates[PC].getPrimeAccessString(function(err, primeAccessObject) {
  if (err) {
    return console.err(err);
  }
  primeAccess = primeAccessObject;
});

Sadly after running it I got the following error

ReferenceError: Worldstate is not defined
    at Object.<anonymous> (removedForObviousReasons\test.js:3:12)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

I'm sorry if I misunderstood something of the code that is provided.

EDIT: Grammar and markup fix

Some alerts showing as 'Ancient Retribution'

There does not appear to be a pattern to this. Other alerts with different mission types have showed as Ancient Retribution. It happens both with Genesis and my other bots that use this module.

image

image

An in-range update of eslint-plugin-react is breaking the build 🚨

Version 7.8.0 of eslint-plugin-react was just published.

Branch Build failing 🚨
Dependency eslint-plugin-react
Current Version 7.7.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-react is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v7.8.0

Added

  • Add support for fragments to react-in-jsx-scope (#1758)
  • Add support for Flow generic PropType to require-default-props (#1724 @Miziak)
  • Add component whitelist option to forbid-component-props (#1732 @ThiefMaster)
  • Add support for React 16.3 lifecycle methods to no-unused-prop-types (#1681 @bvaughn)
  • Add support for React 16.3 lifecycle methods to sort-comp (#1767 @joe-denea)
  • Add support for React 16.3 lifecycle methods to no-typos
  • Add support for prevState and nextState to no-unused-state (#1759)
  • Add warnings for componentWillMount, componentWillReceiveProps and componentWillUpdate lifecycle methods in no-deprecated (#1750 @sergei-startsev)

Fixed

Changed

Commits

The new version differs by 65 commits.

  • fb7411d Update CHANGELOG and bump version
  • b5865e8 Replace static status badge by a dynamic one
  • 79f32b1 Fix Code Climate badge in README
  • ab803e5 Update CHANGELOG and bump version
  • b26d1cc Add prevState and nextState support to no-unused-state (fixes #1759)
  • 3aac310 Add support for React 16.3 lifecycle methods to no-typos
  • 5f3f04f Merge pull request #1783 from chentsulin/patch-1
  • 26dc5a6 fix typo containing
  • 9519938 Add getSnapshotBeforeUpdate support to no-unused-prop-types (fixes #1751)
  • d51b0cc Add fragment support to react-in-jsx-scope (fixes #1758)
  • fb7ce94 Merge pull request #1771 from joe-denea/master
  • 230b0ad [Tests] fix appveyor
  • 768013e Add support for React 16.3 lifecycle methods
  • d68ef96 Merge pull request #1750 from sergei-startsev/no-deprecated
  • 8973758 [Tests] fix linting errors

There are 65 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

add day/night cycle

move day/night cycle calculation from genesis to worldstate and make it easier to fetch for others and not calculate every call

An in-range update of sinon-chai is breaking the build 🚨

Version 3.2.0 of sinon-chai was just published.

Branch Build failing 🚨
Dependency sinon-chai
Current Version 3.1.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon-chai is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes 3.2.0

Added support for Sinon v6.x. (@mattbaileyuk, #127)

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Readme improvements.

Change getAlertsAsString to getAlertsString in the readme, or vice versa in the files. And make a not in the readme that it's not done yet and currenttly commented out. Also do this to a ton of other things.

and a simple example of how to import this project and include it might be nice.

Also the installation instruction should include the npm command to install from the github if that is the recomended version to use as expressed in the Readme.

Missing function getExpired in GlobalUpgrade

TypeError: this.getExpired is not a function
    at new GlobalUpgrade (E:/Libraries/Documents/Git/warframe-alerts/node_modules/warframe-worldstate-parser/lib/GlobalUpgrade.js:55:25)
    at dataArray.map.d (E:/Libraries/Documents/Git/warframe-alerts/node_modules/warframe-worldstate-parser/lib/WorldState.js:72:29)
    at parseArray (E:/Libraries/Documents/Git/warframe-alerts/node_modules/warframe-worldstate-parser/lib/WorldState.js:72:20)
    at new WorldState (E:/Libraries/Documents/Git/warframe-alerts/node_modules/warframe-worldstate-parser/lib/WorldState.js:135:27)
    at checkApi (E:/Libraries/Documents/Git/warframe-alerts/app/src/background.js:232:13)
    at <anonymous>```

Generated identifiers may erroneously change as `warframe-worldstate-parser` is updated

Various objects in the parser automatically generate an identifier where the official API doesn't provide any. These objects however rely on the names of items after they've either been normalized or mapped using data from warframe-worldstate-data. This in turn means that if warframe-worldstate-data updates the mapping of a string - or if the normalization process changes - the identifier will "erroneously" change.

A FlashSale make for a great example:

{
  "item": "Tn S M G Weapon", 
  "expiry": "2018-12-31T00:00:00.000Z", 
  "discount": 0, 
  "premiumOverride": 240, 
  "isFeatured": true, 
  "isPopular": false, 
  "id": "1546214400000Tn S M G Weapon", 
  "expired": false, 
  "eta": "352d 18h 29m 35s"
}, 

In this case when /Lotus/Weapons/Tenno/LongGuns/TnSMG/TnSMGWeapon is identified in warframe-worldstate-data this deal's id would change, even though no deals have been added, removed or changed.

I propose that all generated ids are changed to only use "reliable" information. For the example above a possible updated id could be: 1546214400000TnSMGWeapon, using only the last segment of the original identifier string.

I'd be willing to help implement this if necessary.

Explicitly look up language (requires warframe-worldstate-data change)

Idea:

  • Allow the consumer to specify a language (eg. english, spanish, etc) to look up a string for

Implementation arch:

  • Default to what is currently returned if there is no language provided in whatever release the consumer is dependent on, but if data['${language}'] exists, use that instead.

An in-range update of eslint-plugin-import is breaking the build 🚨

Version 2.13.0 of eslint-plugin-import was just published.

Branch Build failing 🚨
Dependency [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import)
Current Version 2.12.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-import is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 7 commits.

  • c34f14f changelog/package bumps
  • 9db789b [Fix] namespace: ensure this rule works in ES2018
  • add69cf [New] Add ESLint 5 support
  • 59fc04e [Tests] on node v10
  • cdb328c [webpack] log a useful error in a module bug arises
  • ebafcbf no-restricted-paths: complete coverage
  • e6f5c13 No relative parent imports rule (#1093)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-react is breaking the build 🚨

Version 7.9.0 of eslint-plugin-react was just published.

Branch Build failing 🚨
Dependency eslint-plugin-react
Current Version 7.8.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-react is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v7.9.0

Added

Fixed

  • Fix static lifecycle methods validation in sort-comp (#1793 @lynxtaa)
  • Fix crash in no-typos when encountering anonymous react imports (#1796 @jsg2021)
  • Fix ESLint 3 support (#1779)

Changed

  • Documentation improvements (#1794 @lencioni)
  • Update Travis CI configuration to test on multiple ESLint verions
Commits

The new version differs by 41 commits.

  • 0d34198 Update CHANGELOG and bump version
  • ab6b41a Remove deprecated experimentalObjectRestSpread option from tests configuration
  • 9d4e27a Ignore no-typos test that only works with ESLint 5
  • f2d8729 Add SpreadElement support to sort-prop-types
  • 29c248d Add JSXText support to self-closing-comp
  • 632941c Add SpreadElement support to require-default-props
  • b3ed9d6 Add SpreadElement and RestElement support to no-unused-state
  • ce1fec7 Add JSXText support to no-unescaped-entities
  • ed3370b Add SpreadElement and JSXText support to no-danger-with-children
  • 0a028e4 Add JSXText support to jsx-one-expression-per-line
  • bd6caf0 Add JSXText support to jsx-no-literals
  • 0a6cb51 Add JSXText support to jsx-indent
  • c734901 Add JSXText support to jsx-curly-brace-presence
  • 3762258 Add JSXText support to jsx-child-element-spacing
  • e6e8955 Add SpreadElement support to default-props-match-prop-types

There are 41 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of semantic-release is breaking the build 🚨

Version 15.5.1 of semantic-release was just published.

Branch Build failing 🚨
Dependency semantic-release
Current Version 15.5.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

semantic-release is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v15.5.1

15.5.1 (2018-06-06)

Bug Fixes

  • plugin-load: clarify load message (6a36832), closes #811
Commits

The new version differs by 6 commits.

  • 6a36832 fix(plugin-load): clarify load message
  • 4d47b20 docs: clarify config file format
  • ddcf29a chore(package): update nyc to version 12.0.1
  • 4c157f3 docs(plugins): add semantic-release-vsce
  • c6636ab docs(plugins): remove warning
  • 44fd7fe chore(package): update delay to version 3.0.0

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Better JSdoc

The documentation should be improved by adding typedefs for all the worldstate data parameters and the dependencies object(s)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.