Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit e2c36cc

Browse files
author
sw-yx
committed
prettify
1 parent 9e76272 commit e2c36cc

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

src/commands/functions/create.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ async function pickTemplate() {
201201
function ensureFunctionDirExists(flags, config) {
202202
const functionsDir = config.build && config.build.functions;
203203
if (!functionsDir) {
204-
this.log(
205-
`${NETLIFYDEVLOG} No functions folder specified in netlify.toml`
206-
);
204+
this.log(`${NETLIFYDEVLOG} No functions folder specified in netlify.toml`);
207205
process.exit(1);
208206
}
209207
if (!fs.existsSync(functionsDir)) {

src/detectors/quasar-v0.17.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function() {
1212
if (!hasRequiredDeps(["quasar-cli"])) return false;
1313

1414
/** everything below now assumes that we are within Quasar */
15-
15+
1616
const possibleArgsArrs = scanScripts({
1717
preferredScriptsArr: ["serve", "start", "run", "dev"]
1818
// NOTE: this is comented out as it was picking this up in cordova related scripts.
@@ -34,4 +34,4 @@ module.exports = function() {
3434
urlRegexp: new RegExp(`(http://)([^:]+:)${8080}(/)?`, "g"),
3535
dist: ".quasar"
3636
};
37-
};
37+
};

src/detectors/quasar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function() {
1212
if (!hasRequiredDeps(["@quasar/app"])) return false;
1313

1414
/** everything below now assumes that we are within Quasar */
15-
15+
1616
const possibleArgsArrs = scanScripts({
1717
preferredScriptsArr: ["serve", "start", "run", "dev"]
1818
// NOTE: this is comented out as it was picking this up in cordova related scripts.
@@ -34,4 +34,4 @@ module.exports = function() {
3434
urlRegexp: new RegExp(`(http://)([^:]+:)${8080}(/)?`, "g"),
3535
dist: ".quasar"
3636
};
37-
};
37+
};
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
2-
name: 'auth-fetch',
3-
description: 'Use `node-fetch` library and Netlify Identity to access APIs',
2+
name: "auth-fetch",
3+
description: "Use `node-fetch` library and Netlify Identity to access APIs",
44
onComplete() {
5-
console.log(`auth-fetch function created from template!`)
5+
console.log(`auth-fetch function created from template!`);
66
console.log(
7-
'REMINDER: Make sure to call this function with the Netlify Identity JWT. See https://netlify-gotrue-in-react.netlify.com/ for demo'
8-
)
7+
"REMINDER: Make sure to call this function with the Netlify Identity JWT. See https://netlify-gotrue-in-react.netlify.com/ for demo"
8+
);
99
}
10-
}
10+
};
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
2-
name: 'hello-world',
2+
name: "hello-world",
33
priority: 1,
4-
description: 'Basic function that shows async/await usage, and response formatting'
5-
}
4+
description:
5+
"Basic function that shows async/await usage, and response formatting"
6+
};

src/functions-templates/js/identity-signup/identity-signup.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// note - this function MUST be named `identity-signup` to work
22
// we do not yet offer local emulation of this functionality in Netlify Dev
33
//
4-
// more:
4+
// more:
55
// https://www.netlify.com/blog/2019/02/21/the-role-of-roles-and-how-to-set-them-in-netlify-identity/
66
// https://www.netlify.com/docs/functions/#identity-and-functions
77

@@ -11,7 +11,10 @@ exports.handler = async function(event, context) {
1111

1212
const responseBody = {
1313
app_metadata: {
14-
roles: user.email.split("@")[1] === "trust-this-company.com" ? ["editor"] : ["visitor"];,
14+
roles:
15+
user.email.split("@")[1] === "trust-this-company.com"
16+
? ["editor"]
17+
: ["visitor"],
1518
my_user_info: "this is some user info"
1619
},
1720
user_metadata: {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy