isolated-function 0.1.10 → 0.1.12
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,10 +91,10 @@ If you exceed your limit, an error will occur. Any of the following interaction
|
|
|
91
91
|
The hosted code is parsed for detecting `require`/`import` calls and install these dependencies:
|
|
92
92
|
|
|
93
93
|
```js
|
|
94
|
-
const [isEmoji, teardown] = isolatedFunction(
|
|
94
|
+
const [isEmoji, teardown] = isolatedFunction(input => {
|
|
95
95
|
/* this dependency only exists inside the isolated function */
|
|
96
96
|
const isEmoji = require('is-standard-emoji@1.0.0') // default is latest
|
|
97
|
-
return isEmoji(
|
|
97
|
+
return isEmoji(input)
|
|
98
98
|
})
|
|
99
99
|
|
|
100
100
|
await isEmoji('🙌') // => true
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "isolated-function",
|
|
3
3
|
"description": "Runs untrusted code in a Node.js v8 sandbox.",
|
|
4
4
|
"homepage": "https://github.com/Kikobeats/isolated-function",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.12",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./src/index.js"
|