flat-tree-builder
Advanced tools
Comparing version 1.5.1 to 1.5.2
{ | ||
"name": "flat-tree-builder", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "A package for building tree structures from postgres ltree data", | ||
@@ -5,0 +5,0 @@ "main": "classifier.mjs", |
@@ -8,2 +8,3 @@ # Classifier | ||
```console | ||
npm i | ||
npm t | ||
@@ -34,3 +35,3 @@ ``` | ||
### Объект с параметрами | ||
### Params object | ||
@@ -44,3 +45,3 @@ - getUrl: url for get | ||
## Пример | ||
## Example | ||
@@ -47,0 +48,0 @@ ```html |
@@ -1037,3 +1037,9 @@ import Sortable from "sortablejs"; | ||
try { | ||
const response = await fetch(this.getUrl); | ||
this.getCsrfToken(); | ||
const response = await fetch(this.getUrl, { | ||
headers: { | ||
"Content-Type": "application/json", | ||
"X-CSRF-Token": this.csrfToken, | ||
}, | ||
}); | ||
if (response.ok) { | ||
@@ -1040,0 +1046,0 @@ let json = await response.json(); |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
176498
4668
63
8