backend-manager 3.0.37 → 3.0.38
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": "backend-manager",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
"wonderful-log": "^1.0.5",
|
|
71
71
|
"yargs": "^17.7.2"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|
|
@@ -86,7 +86,6 @@ async function createFile(user, repoUser, repoName, key, path, contents) {
|
|
|
86
86
|
let sha;
|
|
87
87
|
try {
|
|
88
88
|
|
|
89
|
-
// let pathGet = `https://api.github.com/repos/iwiedenm/ultimate-jekyll/git/trees/template:${encodeURIComponent(path_noExt)}`;
|
|
90
89
|
let branch = (repoName === 'ultimate-jekyll') ? 'template' : 'master';
|
|
91
90
|
|
|
92
91
|
let pathGet = `https://api.github.com/repos/${repoUser}/${repoName}/git/trees/${branch}:${encodeURIComponent(pathApi.dirname(path))}`;
|
|
@@ -7,12 +7,13 @@ function Module() {
|
|
|
7
7
|
|
|
8
8
|
Module.prototype.main = function () {
|
|
9
9
|
const self = this;
|
|
10
|
-
const Manager = self.Manager;
|
|
11
|
-
const Api = self.Api;
|
|
12
|
-
const assistant = self.assistant;
|
|
13
|
-
const payload = self.payload;
|
|
14
10
|
|
|
15
11
|
return new Promise(async function(resolve, reject) {
|
|
12
|
+
const Manager = self.Manager;
|
|
13
|
+
const Api = self.Api;
|
|
14
|
+
const assistant = self.assistant;
|
|
15
|
+
const payload = self.payload;
|
|
16
|
+
|
|
16
17
|
self.Api.resolveUser({adminRequired: true})
|
|
17
18
|
.then(async (user) => {
|
|
18
19
|
// Get auth user from firebase
|
|
@@ -69,11 +70,12 @@ Module.prototype.main = function () {
|
|
|
69
70
|
|
|
70
71
|
Module.prototype.signUp = function (payload) {
|
|
71
72
|
const self = this;
|
|
72
|
-
const Manager = self.Manager;
|
|
73
|
-
const Api = self.Api;
|
|
74
|
-
const assistant = self.assistant;
|
|
75
73
|
|
|
76
74
|
return new Promise(async function(resolve, reject) {
|
|
75
|
+
const Manager = self.Manager;
|
|
76
|
+
const Api = self.Api;
|
|
77
|
+
const assistant = self.assistant;
|
|
78
|
+
|
|
77
79
|
const result = {
|
|
78
80
|
signedUp: false,
|
|
79
81
|
referrerUid: undefined,
|
|
@@ -137,6 +139,10 @@ Module.prototype.updateReferral = function (payload) {
|
|
|
137
139
|
const self = this;
|
|
138
140
|
|
|
139
141
|
return new Promise(function(resolve, reject) {
|
|
142
|
+
const Manager = self.Manager;
|
|
143
|
+
const Api = self.Api;
|
|
144
|
+
const assistant = self.assistant;
|
|
145
|
+
|
|
140
146
|
const result = {
|
|
141
147
|
count: 0,
|
|
142
148
|
updatedReferral: false,
|
|
@@ -99,7 +99,6 @@ async function createFile(user, repoUser, repoName, key, path, contents) {
|
|
|
99
99
|
let sha;
|
|
100
100
|
try {
|
|
101
101
|
|
|
102
|
-
// let pathGet = `https://api.github.com/repos/iwiedenm/ultimate-jekyll/git/trees/template:${encodeURIComponent(path_noExt)}`;
|
|
103
102
|
let branch = (repoName === 'ultimate-jekyll') ? 'template' : 'master';
|
|
104
103
|
|
|
105
104
|
let pathGet = `https://api.github.com/repos/${repoUser}/${repoName}/git/trees/${branch}:${encodeURIComponent(pathApi.dirname(path))}`;
|