fc-landmark 2.1.3 → 3.0.0

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/tests/tracking.js CHANGED
@@ -1,32 +1,32 @@
1
-
2
- let LandMark = require("../dist/index").LandMark;
3
-
4
- let request = {
5
- "reference" : "LTN123121",
6
- "tracking_number": "LTN123121"
7
- };
8
- async function create(){
9
- try{
10
- console.log('sampel gift');
11
-
12
- let landmark = new LandMark('demoapi','demo123',false,'','','','');
13
- let res = await landmark.getTrackingInfo(request);
14
- console.log(res);
15
- return res;
16
-
17
- }catch(err){
18
- console.log('ERR-1', err)
19
- throw err;
20
- }
21
- }
22
-
23
-
24
- try{
25
- create().then(function(res){
26
- //console.log(res)
27
- }).catch(function(err){
28
- console.log('ERR-2',err)
29
- })
30
- }catch(err){
31
- console.log('ERR-3',err)
32
- }
1
+
2
+ let LandMark = require("../dist/index").LandMark;
3
+
4
+ let request = {
5
+ "reference" : "LTN123121",
6
+ "tracking_number": "LTN123121"
7
+ };
8
+ async function create(){
9
+ try{
10
+ console.log('sampel gift');
11
+
12
+ let landmark = new LandMark('demoapi','demo123',false,'','','','');
13
+ let res = await landmark.getTrackingInfo(request);
14
+ console.log(res);
15
+ return res;
16
+
17
+ }catch(err){
18
+ console.log('ERR-1', err)
19
+ throw err;
20
+ }
21
+ }
22
+
23
+
24
+ try{
25
+ create().then(function(res){
26
+ //console.log(res)
27
+ }).catch(function(err){
28
+ console.log('ERR-2',err)
29
+ })
30
+ }catch(err){
31
+ console.log('ERR-3',err)
32
+ }
package/tsconfig.json CHANGED
@@ -1,12 +1,14 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es6",
4
- "module": "commonjs",
5
- "sourceMap": true,
6
- "outDir": "./dist",
7
- "rootDir": "./src",
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "forceConsistentCasingInFileNames": true
11
- }
12
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es6",
4
+ "module": "commonjs",
5
+ "sourceMap": true,
6
+ "outDir": "./dist",
7
+ "rootDir": "./src",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true
12
+ },
13
+ "exclude": ["node_modules", "dist", "src/**/*.spec.ts"]
14
+ }