spacetraders-io's People
spacetraders-io's Issues
"Username taken" error in createUser is not catchable and not throwing the custom error
resp.status
is not defined when axios.post(url)
yields an error, meaning that if (resp.status >= 300) throw new Error('Username is taken')
never runs
Also, this error (and the current unhandled error) is not able to be caught outside the promise (e.g. for showing the issue in a UI wrapping the SDK)
FlightPlan.distance not in types.
The typedefs don't include the distance property of flight plans.
PurchaseResponse.order is an array with a single object, not an object.
Typedefs have PurchaseResponse.order as a single object:
i.e. It expects this:
"order": {
"good": "RESEARCH",
"quantity": 193,
"pricePerUnit": 2981,
"total": 575333
}
instead of this:
"order": [
{
"good": "RESEARCH",
"quantity": 193,
"pricePerUnit": 2981,
"total": 575333
}
]
Destination argument of createFlightPlan should be string not number.
https://github.com/notVitaliy/spacetraders-io/blob/master/src/index.ts#L134
https://api.spacetraders.io/#api-flight_plans-NewFlightPlan
Destination of flight plan must be a string instead of a number.
new SpaceTraders() with no args crashes.
this.useSharedLimiter = Boolean(options.useSharedLimiter);
^
TypeError: Cannot read property 'useSharedLimiter' of undefined
at new SpaceTraders (B:\Documents\ActuallyMyStuff\Programming\spacetraders-scripts\node_modules\spacetraders-sdk\dist\index.js:27:49)
at Object.<anonymous> (B:\Documents\ActuallyMyStuff\Programming\spacetraders-scripts\build\utils\utils.js:58:24)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (B:\Documents\ActuallyMyStuff\Programming\spacetraders-scripts\build\money-run.js:55:15)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
Add to awesome spacetraders
https://github.com/SpaceTradersAPI/awesome-spacetraders
People are asking about your SDK on Reddit
YourLoan status should be string
I think the status
field of YourLoan
should be a string.
Line 125 in ad2e48e
Example response from API:
{
id: '...',
due: '2021-03-18T20:54:05.672Z',
repaymentAmount: 280000,
status: 'CURRENT',
type: 'STARTUP'
}
Marketplace.available is now .quantityAvailable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.