@cloudcommerce/app-correios 2.23.2 → 2.24.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.
@@ -1,5 +1,4 @@
1
- import logger from 'firebase-functions/logger';
2
- import config from '@cloudcommerce/firebase/lib/config';
1
+ import config, { logger } from '@cloudcommerce/firebase/lib/config';
3
2
  import { getFirestore, Timestamp } from 'firebase-admin/firestore';
4
3
  import {
5
4
  getDocId,
@@ -1,8 +1,7 @@
1
1
  import api from '@cloudcommerce/api';
2
- import config from '@cloudcommerce/firebase/lib/config';
2
+ import config, { logger } from '@cloudcommerce/firebase/lib/config';
3
3
  import { PubSub } from '@google-cloud/pubsub';
4
4
  import { getFirestore, Timestamp } from 'firebase-admin/firestore';
5
- import logger from 'firebase-functions/logger';
6
5
  import calculateV2 from './correios-v2.mjs';
7
6
  import { newCorreios } from './utils/correios-axios.mjs';
8
7
  import {
@@ -1,4 +1,4 @@
1
- import logger from 'firebase-functions/logger';
1
+ import { logger } from '@cloudcommerce/firebase/lib/config';
2
2
  import { newCorreios } from './utils/correios-axios.mjs';
3
3
 
4
4
  const calculate = async ({
@@ -1,4 +1,4 @@
1
- import logger from 'firebase-functions/logger';
1
+ import { logger } from '@cloudcommerce/firebase/lib/config';
2
2
 
3
3
  const zipRangeStep = 5000;
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "2.23.2",
4
+ "version": "2.24.0",
5
5
  "description": "e-com.plus Cloud Commerce app for Correios shipping calculation",
6
6
  "main": "lib/index.js",
7
7
  "files": [
@@ -30,12 +30,12 @@
30
30
  "axios": "^1.7.2",
31
31
  "firebase-admin": "^12.3.0",
32
32
  "firebase-functions": "^5.0.1",
33
- "@cloudcommerce/api": "2.23.2",
34
- "@cloudcommerce/firebase": "2.23.2"
33
+ "@cloudcommerce/api": "2.24.0",
34
+ "@cloudcommerce/firebase": "2.24.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@cloudcommerce/test-base": "2.23.2",
38
- "@cloudcommerce/types": "2.23.2"
37
+ "@cloudcommerce/test-base": "2.24.0",
38
+ "@cloudcommerce/types": "2.24.0"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "bash ../../../scripts/build-lib.sh",