Compare commits

...

5 commits

Author SHA1 Message Date
RenovateBot 27a8fa0a88 Update dependency eslint to v8
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-06 00:01:43 +00:00
Vylpes 12b1871f6c Merge pull request 'Update dependency got to v12' (#45) from renovate/got-12.x into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/45
Reviewed-by: Vylpes <ethan@vylpes.com>
2023-02-27 18:35:19 +00:00
Ethan Lane 2d7046bd22 Add renovate to pipelines
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-27 18:34:31 +00:00
Ethan Lane cd541ddd4f Update project to allow for ESM modules 2023-02-27 18:33:32 +00:00
RenovateBot c4ba04677d Update dependency got to v12 2023-02-27 00:01:42 +00:00
7 changed files with 389 additions and 483 deletions

View file

@ -18,5 +18,6 @@ trigger:
- develop - develop
- feature/* - feature/*
- hotfix/* - hotfix/*
- renovate/*
event: event:
- push - push

2
app.ts
View file

@ -1,4 +1,4 @@
import randomBunny from "./dist"; import randomBunny from "./dist/index.js";
async function app() { async function app() {
const result = await randomBunny('rabbits', 'hot'); const result = await randomBunny('rabbits', 'hot');

View file

@ -4,7 +4,7 @@
"description": "Get a random subreddit image url", "description": "Get a random subreddit image url",
"license": "MIT", "license": "MIT",
"author": "Vylpes", "author": "Vylpes",
"main": "./dist/index.js", "exports": "./dist/index.js",
"typings": "./dist/index.d.ts", "typings": "./dist/index.d.ts",
"keywords": [ "keywords": [
"rabbit", "rabbit",
@ -17,7 +17,7 @@
], ],
"dependencies": { "dependencies": {
"glob-parent": "^6.0.0", "glob-parent": "^6.0.0",
"got": "^11.8.3", "got": "^12.0.0",
"linqts": "^1.14.4" "linqts": "^1.14.4"
}, },
"scripts": { "scripts": {
@ -34,11 +34,15 @@
"funding": "https://ko-fi.com/vylpes", "funding": "https://ko-fi.com/vylpes",
"devDependencies": { "devDependencies": {
"@types/node": "^18.0.0", "@types/node": "^18.0.0",
"eslint": "^7.17.0", "eslint": "^8.0.0",
"ts-node": "^10.4.0", "ts-node": "^10.9.1",
"typescript": "^4.5.2" "typescript": "^4.9.5"
}, },
"files": [ "files": [
"dist" "dist"
] ],
"type": "module",
"engines": {
"node": ">=14.16"
}
} }

View file

@ -1,4 +1,4 @@
import IRedditResult from "./IRedditResult"; import IRedditResult from "./IRedditResult.js";
export default interface IReturnResult { export default interface IReturnResult {
IsSuccess: boolean; IsSuccess: boolean;

View file

@ -1,8 +1,8 @@
import IReturnResult from "./contracts/IReturnResult"; import IReturnResult from "./contracts/IReturnResult.js";
import IRedditResult from "./contracts/IRedditResult"; import IRedditResult from "./contracts/IRedditResult.js";
import fetch from "got"; import fetch from "got";
import { List } from 'linqts'; import { List } from 'linqts';
import IFetchResult from "./contracts/IFetchResult"; import IFetchResult from "./contracts/IFetchResult.js";
const sortable = [ const sortable = [
'new', 'new',

View file

@ -5,7 +5,7 @@
/* Basic Options */ /* Basic Options */
// "incremental": true, /* Enable incremental compilation */ // "incremental": true, /* Enable incremental compilation */
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */ "target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ "module": "Node16", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */ // "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */ // "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */ // "checkJs": true, /* Report errors in .js files. */
@ -44,7 +44,7 @@
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */ // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
/* Module Resolution Options */ /* Module Resolution Options */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ "moduleResolution": "node16", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
@ -74,6 +74,8 @@
], ],
"exclude": [ "exclude": [
"./tests" "./tests"
] ],
"ts-node": {
"esm": true
}
} }

821
yarn.lock

File diff suppressed because it is too large Load diff