@react-pakistan/util-functions 1.22.33 → 1.22.34

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/api/cors/index.js CHANGED
@@ -6,7 +6,7 @@ const getCorsHeaders = (origin) => {
6
6
  const headers = {
7
7
  'Access-Control-Allow-Methods': `${process.env.ALLOWED_METHODS}`,
8
8
  'Access-Control-Allow-Headers': `${process.env.ALLOWED_HEADERS}`,
9
- 'Access-Control-Allow-Origin': `${process.env.DOMAIN_URL}`,
9
+ 'Access-Control-Allow-Origin': `${process.env.ALLOWED_ORIGIN}`,
10
10
  };
11
11
  // If no allowed origin is set to default server origin
12
12
  if (!process.env.ALLOWED_ORIGIN || !origin)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.33",
3
+ "version": "1.22.34",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {