Skip to content

Commit cf7953a

Browse files
committed
lorem ipsum it is
1 parent be5f45d commit cf7953a

6 files changed

Lines changed: 16 additions & 14 deletions

File tree

‎helloworld-samples/function-codebundle-nodejs/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A sample node.js function that uses a external npm module.
55
Deploy the function straight to Code Engine by running thr following command from this directory
66

77
```bash
8-
ibmcloud ce fn create -n nodejoke -runtime nodejs-18 --build-source .
8+
ibmcloud ce fn create -n lorem-node -runtime nodejs-18 --build-source .
99
```
1010

1111
For more information follow th official docs -> [Including modules for a Node.js Function](https://cloud.ibm.com/docs/codeengine?topic=codeengine-fun-create-repo#function-nodejs-dep-repo)
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
function main(args) {
2-
const oneLinerJoke = require('one-liner-joke');
3-
let getRandomJoke = oneLinerJoke.getRandomJoke();
2+
const LoremIpsum = require("lorem-ipsum").LoremIpsum;
3+
const lorem = new LoremIpsum();
44

5-
return {
6-
headers: { 'Content-Type': 'text/plain;charset=utf-8' },
7-
body: getRandomJoke
8-
}
5+
return {
6+
headers: { "Content-Type": "text/plain;charset=utf-8" },
7+
body: lorem.generateWords(10),
8+
};
99
}
1010

11-
12-
module.exports.main = main;
11+
module.exports.main = main;

‎helloworld-samples/function-codebundle-nodejs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"version": "1.0.0",
44
"main": "main.js",
55
"dependencies" : {
6-
"one-liner-joke" : "1.2.2"
6+
"lorem-ipsum" : "2.0.8"
77
}
88
}

‎helloworld-samples/function-codebundle-python/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A sample Python function that uses a external pip module.
55
Deploy the function straight to Code Engine by running the following command from this directory
66

77
```bash
8-
ibmcloud ce fn create -n pyjokes -runtime python-3.11 --build-source .
8+
ibmcloud ce fn create -n lorem-python -runtime python-3.11 --build-source .
99
```
1010

1111
For more information follow th official docs -> [Including modules for a Python Function](https://cloud.ibm.com/docs/codeengine?topic=codeengine-fun-create-repo#function-python-dep-repo)
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
import pyjokes
1+
from lorem_text import lorem
2+
23

34
def main(params):
5+
words = 10
6+
47
return {
58
"headers": {
69
"Content-Type": "text/plain;charset=utf-8",
710
},
8-
"body": pyjokes.get_joke(),
11+
"body": lorem.words(words),
912
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyjokes==0.6.0
1+
lorem-text

0 commit comments

Comments
 (0)