degiro-api
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "degiro-api", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"type": "module", | ||
"public": true, | ||
"description": "Degiro test scripts", | ||
"main": "src/main.js", | ||
"main": "lib/main.js", | ||
"types": "lib", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "tsc -p ." | ||
}, | ||
@@ -18,3 +19,6 @@ "keywords": [ | ||
"author": "Ignacio F. Castillejo Gómez", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"devDependencies": { | ||
"typescript": "^3.8.3" | ||
} | ||
} |
@@ -1,27 +0,3 @@ | ||
// Import DeGiro API Module | ||
import DeGiro from 'degiro' | ||
// Import async main function | ||
import main from './degiro.js' | ||
// Prepare DeGiro data | ||
const DEGIRO_USERNAME = 'nachoogoomezomg' | ||
const DEGIRO_PWD = process.env.DEGIRO_PWD | ||
const DEGIRO_OTP = process.env.DEGIRO_OTP | ||
// Check if username and password exists | ||
if (!DEGIRO_USERNAME) throw new Error('DeGiro username needed') | ||
if (!DEGIRO_PWD) throw new Error('DeGiro password needed') | ||
// Create DeGiro Init Payload | ||
const DEGIRO_INIT_PAYLOAD = { | ||
username: DEGIRO_USERNAME, | ||
password: DEGIRO_PWD, | ||
// oneTimePassword: DEGIRO_OTP | ||
} | ||
// Init DeGiro client | ||
const degiro = DeGiro.create(DEGIRO_INIT_PAYLOAD) | ||
degiro.login().then(session => console.log(session)).catch(error => console.error(error)) | ||
export function add(a: number, b: number) { | ||
return a +b | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
8862
9
72
2
1