Working now!
This commit is contained in:
parent
3f493047cf
commit
96c3c31cf8
|
@ -0,0 +1 @@
|
||||||
|
declare module 'h2m'
|
|
@ -1,7 +1,3 @@
|
||||||
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
||||||
/* eslint-disable no-console */
|
|
||||||
/* eslint-disable import/no-extraneous-dependencies */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A more elaborated test file for local development
|
* A more elaborated test file for local development
|
||||||
* - Support for proxy (i recommend Burp Suite https://portswigger.net/burp/communitydownload)
|
* - Support for proxy (i recommend Burp Suite https://portswigger.net/burp/communitydownload)
|
||||||
|
@ -13,13 +9,12 @@ const { inspect } = require('util')
|
||||||
const nodeFetch = require('node-fetch')
|
const nodeFetch = require('node-fetch')
|
||||||
const { CookieJar } = require('tough-cookie')
|
const { CookieJar } = require('tough-cookie')
|
||||||
const fetchCookie = require('fetch-cookie/node-fetch')
|
const fetchCookie = require('fetch-cookie/node-fetch')
|
||||||
// eslint-disable-next-line import/no-unresolved
|
|
||||||
const { writeFile, readFile } = require('fs/promises')
|
const { writeFile, readFile } = require('fs/promises')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const HttpProxyAgent = require('https-proxy-agent')
|
const HttpProxyAgent = require('https-proxy-agent')
|
||||||
const agentWrapper = require('./agentFetchWrapper')
|
const agentWrapper = require('./app/agentFetchWrapper')
|
||||||
const init = require('./dist/api-skolplattformen/lib').default
|
const init = require('@skolplattformen/api-skolplattformen').default
|
||||||
|
|
||||||
const [, , personalNumber] = process.argv
|
const [, , personalNumber] = process.argv
|
||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../dist/out-tsc",
|
"outDir": "../../dist/out-tsc",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"types": ["node"]
|
"types": ["node"],
|
||||||
},
|
},
|
||||||
"exclude": ["**/*.spec.ts", "**/*.spec.js"],
|
"exclude": ["**/*.spec.ts", "**/*.spec.js"],
|
||||||
"include": ["**/*.ts", "**/*.js"]
|
"include": ["**/*.ts", "**/*.js"],
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true
|
"allowJs": true,
|
||||||
}
|
"esModuleInterop": true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue