Skip to content

Commit

Permalink
Merge pull request #166 from MauricioRobayo/dependabot/npm_and_yarn/e…
Browse files Browse the repository at this point in the history
…slint-config-airbnb-typescript-13.0.0

chore(deps-dev): bump eslint-config-airbnb-typescript from 12.3.1 to 13.0.0
  • Loading branch information
MauricioRobayo authored Aug 23, 2021
2 parents d4311e7 + b8a113d commit 6f29e13
Show file tree
Hide file tree
Showing 14 changed files with 240 additions and 2,623 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {}
}
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ updates:
directory: "/"
schedule:
interval: "daily"

2 changes: 1 addition & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: "12.x"
- name: Cache node modules
uses: actions/cache@v1
with:
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 13 * * 3'
- cron: "0 13 * * 3"

jobs:
analyze:
Expand All @@ -24,32 +24,32 @@ jobs:
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['javascript']
language: ["javascript"]
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ The `TrmApi` class provides five methods: [`latest()`](#latest), [`between(optio
### CommonJS

```js
const TrmApi = require('trm-api').default;
const TrmApi = require("trm-api").default;

const trmApi = new TrmApi();
```

### ES6 Modules

```js
import TrmApi from 'trm-api';
import TrmApi from "trm-api";

const trmApi = new TrmApi();
```
Expand All @@ -50,7 +50,7 @@ With an app token, your application is guaranteed access to it's own pool of req
You can pass your app token in the constructor:

```js
const trmApi = new TrmApi('YOUR-APP-TOKEN-HERE');
const trmApi = new TrmApi("YOUR-APP-TOKEN-HERE");
```

### Methods
Expand Down Expand Up @@ -97,7 +97,7 @@ The `options` argument is an object with the following fields:

```js
trmApi
.between({ startAt: '2020-07-02', endAt: '2020-07-7', order: 'DESC' })
.between({ startAt: "2020-07-02", endAt: "2020-07-7", order: "DESC" })
.then((data) => console.log(data))
.catch((error) => console.log(error));
```
Expand All @@ -107,28 +107,28 @@ Will return the following array:
```js
[
{
valor: '3633.32',
unidad: 'COP',
vigenciadesde: '2020-07-07T00:00:00.000',
vigenciahasta: '2020-07-07T00:00:00.000',
valor: "3633.32",
unidad: "COP",
vigenciadesde: "2020-07-07T00:00:00.000",
vigenciahasta: "2020-07-07T00:00:00.000",
},
{
valor: '3645.90',
unidad: 'COP',
vigenciadesde: '2020-07-04T00:00:00.000',
vigenciahasta: '2020-07-06T00:00:00.000',
valor: "3645.90",
unidad: "COP",
vigenciadesde: "2020-07-04T00:00:00.000",
vigenciahasta: "2020-07-06T00:00:00.000",
},
{
valor: '3660.18',
unidad: 'COP',
vigenciadesde: '2020-07-03T00:00:00.000',
vigenciahasta: '2020-07-03T00:00:00.000',
valor: "3660.18",
unidad: "COP",
vigenciadesde: "2020-07-03T00:00:00.000",
vigenciahasta: "2020-07-03T00:00:00.000",
},
{
valor: '3723.67',
unidad: 'COP',
vigenciadesde: '2020-07-02T00:00:00.000',
vigenciahasta: '2020-07-02T00:00:00.000',
valor: "3723.67",
unidad: "COP",
vigenciadesde: "2020-07-02T00:00:00.000",
vigenciahasta: "2020-07-02T00:00:00.000",
},
];
```
Expand Down Expand Up @@ -157,7 +157,7 @@ Returns the TRM for an specific date given in `YYYY-MM-DD` format.

```js
trmApi
.date('2020-08-09')
.date("2020-08-09")
.then((data) => console.log(data))
.catch((error) => console.log(error));
```
Expand Down Expand Up @@ -193,8 +193,8 @@ It will return an array of objects each with the requested fields (or all the fi
```js
[
{
valor: '4153.91',
vigenciadesde: '2020-03-20T00:00:00.000',
valor: "4153.91",
vigenciadesde: "2020-03-20T00:00:00.000",
},
];
```
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
theme: jekyll-theme-cayman
theme: jekyll-theme-cayman
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
statements: 100,
},
},
collectCoverageFrom: ['src/**/*'],
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: ["src/**/*"],
preset: "ts-jest",
testEnvironment: "node",
};
Loading

0 comments on commit 6f29e13

Please sign in to comment.