@edgedev/firebase 1.8.2 → 1.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -1,9 +1,9 @@
1
1
  #!/bin/bash
2
2
 
3
3
  # Check if the destination file exists
4
- if [ ! -f ./firestore.rules ]; then
4
+ if [ ! -f "$PWD./firestore.rules" ]; then
5
5
  # If the file does not exist, create it and add the rules_version line
6
- echo "rules_version = '2';" > ./firestore.rules;
6
+ echo "rules_version = '2';" > "$PWD./firestore.rules";
7
7
  fi
8
8
 
9
9
  [ "$(tail -c1 ./firestore.rules)" != "" ] && echo "" >> ./firestore.rules
@@ -11,7 +11,7 @@ fi
11
11
  # Extract the code block from the source file and append it to the destination file
12
12
  sed -i.backup '/\/\/ #EDGE FIREBASE RULES START/,/\/\/ #EDGE FIREBASE RULES END/d' ./firestore.rules
13
13
 
14
- awk '/\/\/ #EDGE FIREBASE RULES START/,/\/\/ #EDGE FIREBASE RULES END/' ./node_modules/@edgedev/firebase/src/firestore.rules | \
14
+ awk '/\/\/ #EDGE FIREBASE RULES START/,/\/\/ #EDGE FIREBASE RULES END/' ./src/firestore.rules | \
15
15
  sed '1d;$d' | \
16
16
  sed -e '1s/^/\/\/ #EDGE FIREBASE RULES START\n/' -e '$s/$/\n\/\/ #EDGE FIREBASE RULES END/' \
17
17
  >> ./firestore.rules;
@@ -28,7 +28,7 @@ fi
28
28
 
29
29
  sed -i.backup '/\/\/ START @edge\/firebase functions/,/\/\/ END @edge\/firebase functions/d' ./functions/index.js
30
30
 
31
- awk '/\/\/ START @edge\/firebase functions/,/\/\/ END @edge\/firebase functions/' ./node_modules/@edgedev/firebase/src/functions.js | \
31
+ awk '/\/\/ START @edge\/firebase functions/,/\/\/ END @edge\/firebase functions/' ./src/functions.js | \
32
32
  sed '1d;$d' | \
33
33
  sed -e '1s/^/\/\/ START @edge\/firebase functions\n/' -e '$s/$/\n\/\/ END @edge\/firebase functions/' \
34
34
  >> ./functions/index.js;