iptuapi 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +32 -0
- package/README.md +4 -2
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
IPTU API - PROPRIETARY LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 IPTU API. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are the
|
|
6
|
+
exclusive property of IPTU API. The Software is licensed, not sold.
|
|
7
|
+
|
|
8
|
+
GRANT OF LICENSE:
|
|
9
|
+
Subject to the terms of this license and your compliance with the IPTU API
|
|
10
|
+
Terms of Service (https://iptuapi.com.br/termos), you are granted a limited,
|
|
11
|
+
non-exclusive, non-transferable license to use the Software solely for the
|
|
12
|
+
purpose of accessing the IPTU API services.
|
|
13
|
+
|
|
14
|
+
RESTRICTIONS:
|
|
15
|
+
You may NOT:
|
|
16
|
+
- Copy, modify, or distribute the Software
|
|
17
|
+
- Reverse engineer, decompile, or disassemble the Software
|
|
18
|
+
- Sublicense, rent, lease, or lend the Software
|
|
19
|
+
- Use the Software for any purpose other than accessing IPTU API services
|
|
20
|
+
- Remove or alter any proprietary notices
|
|
21
|
+
|
|
22
|
+
TERMINATION:
|
|
23
|
+
This license is effective until terminated. It will terminate automatically
|
|
24
|
+
if you fail to comply with any term of this license or the IPTU API Terms
|
|
25
|
+
of Service.
|
|
26
|
+
|
|
27
|
+
DISCLAIMER:
|
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29
|
+
IMPLIED. IN NO EVENT SHALL IPTU API BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
30
|
+
OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
|
|
31
|
+
|
|
32
|
+
For questions, contact: contato@iptuapi.com.br
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ SDK oficial JavaScript/TypeScript para integracao com a IPTU API. Acesso a dados
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/iptuapi)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
-
[](LICENSE)
|
|
8
8
|
|
|
9
9
|
## Instalacao
|
|
10
10
|
|
|
@@ -284,7 +284,9 @@ npm run test:coverage
|
|
|
284
284
|
|
|
285
285
|
## Licenca
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
Copyright (c) 2025-2026 IPTU API. Todos os direitos reservados.
|
|
288
|
+
|
|
289
|
+
Este software e propriedade exclusiva da IPTU API. O uso esta sujeito aos termos de servico disponiveis em https://iptuapi.com.br/termos
|
|
288
290
|
|
|
289
291
|
## Links
|
|
290
292
|
|
package/dist/index.js
CHANGED
|
@@ -216,7 +216,14 @@ var IPTUClient = class {
|
|
|
216
216
|
} catch {
|
|
217
217
|
body = { detail: response.statusText };
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
let message;
|
|
220
|
+
const detail = body.detail;
|
|
221
|
+
if (detail && typeof detail === "object") {
|
|
222
|
+
const detailObj = detail;
|
|
223
|
+
message = detailObj.error || detailObj.detail || detailObj.message || JSON.stringify(detail);
|
|
224
|
+
} else {
|
|
225
|
+
message = detail || `HTTP ${response.status}`;
|
|
226
|
+
}
|
|
220
227
|
switch (response.status) {
|
|
221
228
|
case 400:
|
|
222
229
|
case 422:
|
package/dist/index.mjs
CHANGED
|
@@ -181,7 +181,14 @@ var IPTUClient = class {
|
|
|
181
181
|
} catch {
|
|
182
182
|
body = { detail: response.statusText };
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
let message;
|
|
185
|
+
const detail = body.detail;
|
|
186
|
+
if (detail && typeof detail === "object") {
|
|
187
|
+
const detailObj = detail;
|
|
188
|
+
message = detailObj.error || detailObj.detail || detailObj.message || JSON.stringify(detail);
|
|
189
|
+
} else {
|
|
190
|
+
message = detail || `HTTP ${response.status}`;
|
|
191
|
+
}
|
|
185
192
|
switch (response.status) {
|
|
186
193
|
case 400:
|
|
187
194
|
case 422:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iptuapi",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "SDK oficial para a IPTU API - Dados de IPTU de São Paulo, Belo Horizonte e Recife",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"sdk"
|
|
39
39
|
],
|
|
40
40
|
"author": "IPTU API <contato@iptuapi.com.br>",
|
|
41
|
-
"license": "
|
|
41
|
+
"license": "UNLICENSED",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
44
|
"url": "https://github.com/iptuapi/iptuapi-js"
|