dymo-api 1.0.4 → 1.0.6
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/index.d.ts +17 -0
- package/index.js +1 -6
- package/package.json +11 -3
package/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare module 'dymo-api' {
|
|
2
|
+
class Configuration {
|
|
3
|
+
constructor({ rootApiKey, apiKey }?: { rootApiKey?: string; apiKey?: string });
|
|
4
|
+
getTokens(): Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
class DymoAPI {
|
|
8
|
+
constructor(configuration: Configuration);
|
|
9
|
+
initializeTokens(): Promise<void>;
|
|
10
|
+
isValidData(data: any): Promise<any>;
|
|
11
|
+
getPrayerTimes(data: any): Promise<any>;
|
|
12
|
+
isValidPwd(data: any): Promise<any>;
|
|
13
|
+
newURLEncrypt(data: any): Promise<any>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { Configuration, DymoAPI };
|
|
17
|
+
}
|
package/index.js
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
/*import dymoAPI from './lib/dymo-api.js';
|
|
2
|
-
|
|
3
1
|
// This module is intended to unwrap Dymo API default export as named.
|
|
4
2
|
// Keep top-level export same with static properties.
|
|
5
3
|
// so that it can keep same with es module or cjs.
|
|
6
4
|
|
|
7
|
-
const {
|
|
5
|
+
/*const {
|
|
8
6
|
dymo
|
|
9
7
|
} = dymoAPI;
|
|
10
8
|
|
|
11
9
|
export {
|
|
12
10
|
dymoAPI as default
|
|
13
11
|
}*/
|
|
14
|
-
// Importar para ECMAScript Modules
|
|
15
12
|
import pkg from './lib/dymo-api.cjs';
|
|
16
13
|
|
|
17
14
|
const { Configuration: _Configuration, DymoAPI: _DymoAPI } = pkg;
|
|
18
15
|
|
|
19
|
-
// Exportar para ECMAScript Modules
|
|
20
16
|
export { _Configuration as Configuration, _DymoAPI as DymoAPI };
|
|
21
17
|
|
|
22
|
-
// Exportar para CommonJS
|
|
23
18
|
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
|
24
19
|
module.exports = { Configuration: _Configuration, DymoAPI: _DymoAPI };
|
|
25
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dymo-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Flow system for Dymo API.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,15 @@
|
|
|
15
15
|
],
|
|
16
16
|
"author": "TPEOficial LLC",
|
|
17
17
|
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://support.tpeoficial.com/"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://dymo.tpeoficial.com",
|
|
18
22
|
"dependencies": {
|
|
19
23
|
"axios": "^1.6.8"
|
|
20
|
-
}
|
|
21
|
-
|
|
24
|
+
},
|
|
25
|
+
"contributors": [
|
|
26
|
+
"TPEOficia (https://github.com/TPEOficial)",
|
|
27
|
+
"FJRG2007 (https://github.com/FJRG2007)"
|
|
28
|
+
]
|
|
29
|
+
}
|