This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <zone> | |
| <source address="172.17.0.0/16"/> | |
| <port port="8443" protocol="tcp"/> | |
| <port port="53" protocol="udp"/> | |
| <port port="8053" protocol="udp"/> | |
| <port port="443" protocol="tcp"/> | |
| </zone> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var workorder = { | |
| "_id": "59aafac97037bfbab2a8f9a1", | |
| "id": "SJ8b3Mr8g", | |
| "assignee": "rkX1fdSH", | |
| "title": "Accident No. 3019", | |
| "status": "New", | |
| "stepHistory": [ | |
| { | |
| id: 'someid', | |
| user: 'trever' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var Promise = require('bluebird'); | |
| var app = express(); | |
| var router = express.Router(); | |
| router.get('/error', function(req, res, next) { | |
| return new Promise(function() { | |
| throw new Error('boom'); | |
| }).catch(next); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Simple promisifier for a function that expects a node-like callback | |
| * @param {Function} fn Function to promisify, should expect a node-like callback as the last parameter | |
| * @return {Function} the promisified wrapped version of the function | |
| */ | |
| module.exports = function promisify (fn) { | |
| return function () { | |
| var paramsArr = Array.prototype.slice.call(arguments); | |
| return new Promise(function (resolve, reject) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules | |
| dist/ |
NewerOlder