backend-manager 4.2.13 → 4.2.15
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 +1 -1
- package/src/cli/cli.js +0 -7
- package/templates/firestore.rules +2 -6
package/package.json
CHANGED
package/src/cli/cli.js
CHANGED
|
@@ -147,13 +147,6 @@ Main.prototype.process = async function (args) {
|
|
|
147
147
|
return await cmd_configGet(self);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// Get rules
|
|
151
|
-
if (self.options['rules:default'] || self.options['rules:getdefault']) {
|
|
152
|
-
self.getRulesFile();
|
|
153
|
-
console.log(self.default.firestoreRulesWhole.match(bem_allRulesDefaultRegex)[0].replace(' ///', '///'));
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
150
|
// Deploy
|
|
158
151
|
if (self.options.deploy) {
|
|
159
152
|
await self.setup();
|
|
@@ -4,7 +4,8 @@ service cloud.firestore {
|
|
|
4
4
|
// Custom rules
|
|
5
5
|
// ...
|
|
6
6
|
|
|
7
|
-
///---
|
|
7
|
+
///---backend-manager---///
|
|
8
|
+
///---version=0.0.0---///
|
|
8
9
|
// Lock by default
|
|
9
10
|
match /{document=**} {
|
|
10
11
|
allow read, write: if isAdmin();
|
|
@@ -22,11 +23,6 @@ service cloud.firestore {
|
|
|
22
23
|
allow update: if existingData().token == token;
|
|
23
24
|
allow create: if true;
|
|
24
25
|
}
|
|
25
|
-
///---------end---------///
|
|
26
|
-
|
|
27
|
-
///---backend-manager---///
|
|
28
|
-
///---version=0.0.0---///
|
|
29
|
-
// Basic rules
|
|
30
26
|
|
|
31
27
|
// Auth functions
|
|
32
28
|
function authEmail() {
|