Socket
Socket
Sign inDemoInstall

@socialgouv/dila-api-client

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialgouv/dila-api-client - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.2.2](https://github.com/SocialGouv/dila-api-client/compare/v1.2.1...v1.2.2) (2022-11-14)
### Bug Fixes
* dummy ([966fb08](https://github.com/SocialGouv/dila-api-client/commit/966fb08ab56888ab059e954dc1a2f18eefb8720f))
## [1.2.1](https://github.com/SocialGouv/dila-api-client/compare/v1.2.0...v1.2.1) (2021-09-13)

@@ -2,0 +9,0 @@

8

lib/DilaApiClient.js

@@ -11,3 +11,3 @@ "use strict";

const constants_1 = require("./constants");
const debug = debug_1.default("@socialgouv/dila-api-client");
const debug = (0, debug_1.default)("@socialgouv/dila-api-client");
class DilaApiClient {

@@ -34,3 +34,5 @@ apiHost;

debug("error", error);
debug("Access Token error", error.message);
if (error instanceof Error) {
debug("Access Token error", error.message);
}
throw error;

@@ -46,3 +48,3 @@ }

const url = `${this.apiHost}/${path}`;
const data = await node_fetch_1.default(url, {
const data = await (0, node_fetch_1.default)(url, {
body,

@@ -49,0 +51,0 @@ headers: {

{
"name": "@socialgouv/dila-api-client",
"version": "1.2.1",
"version": "1.2.2",
"description": "a client for the DILA API that publishes the french law",

@@ -26,4 +26,4 @@ "homepage": "https://github.com/SocialGouv/dila-api-client",

"dependencies": {
"debug": "^4.3.2",
"node-fetch": "^2.6.2",
"debug": "^4.3.3",
"node-fetch": "^2.6.6",
"p-all": "^4.0.0",

@@ -33,15 +33,15 @@ "simple-oauth2": "^4.2.0"

"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/plugin-transform-modules-commonjs": "^7.15.4",
"@babel/preset-typescript": "^7.15.0",
"@babel/core": "^7.16.0",
"@babel/plugin-transform-modules-commonjs": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@socialgouv/tslint-config-recommended": "^0.35.0",
"@types/debug": "^4.1.7",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.2",
"@types/jest": "^27.0.3",
"@types/node": "^16.11.11",
"@types/node-fetch": "^2.5.12",
"@types/simple-oauth2": "^4.1.1",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"jest": "^27.4.3",
"prettier": "^2.5.1",
"tslint": "^6.1.3",
"typescript": "^4.3.5"
"typescript": "^4.5.2"
},

@@ -48,0 +48,0 @@ "babel": {

@@ -21,8 +21,10 @@ # @socialgouv/dila-api-client

| Env | Name | Value |
| ------- | ---------- | ----------------------------------------------------------------------- |
| Prod | API_HOST | https://api.aife.economie.gouv.fr/dila/legifrance-beta/lf-engine-app |
| Prod | TOKEN_HOST | https://oauth.aife.economie.gouv.fr |
| Sandbox | API_HOST | https://sandbox-api.aife.economie.gouv.fr/dila/legifrance/lf-engine-app |
| Sandbox | TOKEN_HOST | https://sandbox-oauth.aife.economie.gouv.fr |
| Env | Name | Value |
| ------- | ------------------- | ----------------------------------------------------------------------- |
| * | OAUTH_CLIENT_ID | AIFE OAUTH client |
| * | OAUTH_CLIENT_SECRET | AIFE OAUTH secret |
| Prod | API_HOST | https://api.aife.economie.gouv.fr/dila/legifrance-beta/lf-engine-app |
| Prod | TOKEN_HOST | https://oauth.aife.economie.gouv.fr |
| Sandbox | API_HOST | https://sandbox-api.aife.economie.gouv.fr/dila/legifrance/lf-engine-app |
| Sandbox | TOKEN_HOST | https://sandbox-oauth.aife.economie.gouv.fr |

@@ -80,1 +82,2 @@ ## Récupérer la table des matières d'un code

[renovate-image]: https://badges.renovateapi.com/github/SocialGouv/dila-api-client

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc