Realtime MVC Framework for Node.js
130 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/unit/virtual-request-interpreter.test.js | 27 | // ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝╚══════╝╚═════╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ |
| MEDIUM | test/unit/virtual-request-interpreter.test.js | 106 | // ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝ ╚═╝╚═╝ ╚═════╝ |
| MEDIUM | test/unit/virtual-request-interpreter.test.js | 113 | // ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ |
| MEDIUM | test/integration/hook.i18n.test.js | 19 | // ╚═╝ ╚═╝ ╚════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ |
| MEDIUM | test/integration/hook.i18n.test.js | 26 | // ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ |
| MEDIUM | test/integration/hook.i18n.test.js | 149 | // ╚═╝ ╚═╝ ╚════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ |
| MEDIUM | …ntegration/hook.pubsub.modelEvents.subscribers.test.js | 106 | // ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ |
| MEDIUM | …ntegration/hook.pubsub.modelEvents.subscribers.test.js | 329 | // ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ |
| MEDIUM | …ntegration/hook.pubsub.modelEvents.subscribers.test.js | 458 | // ╚═╝ ╚═╝╚═════╝ ╚═════╝ |
| MEDIUM | …ntegration/hook.pubsub.modelEvents.subscribers.test.js | 592 | // ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ |
| MEDIUM | …ntegration/hook.pubsub.modelEvents.subscribers.test.js | 677 | // ╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝╚══════╝ |
| MEDIUM | …ntegration/hook.pubsub.modelEvents.subscribers.test.js | 808 | // ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ |
| MEDIUM | test/integration/hook.blueprints.restful.routes.test.js | 521 | // ╚═╝ ╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═════╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ |
| MEDIUM | lib/app/load.js | 154 | // ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚══════╝ ╚ |
| MEDIUM | lib/app/load.js | 288 | // ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═════ |
| MEDIUM | lib/app/private/loadHooks.js | 45 | // ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚══════╝ |
| MEDIUM | lib/app/private/loadHooks.js | 250 | // ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═══ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 42 | // ╚══════╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 98 | // ╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚═╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 105 | // ╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 250 | // ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 290 | // ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 333 | // ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 356 | // ╚═╝ ╚═╝╚═════╝ ╚═════╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 375 | // ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 394 | // ╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝╚══════╝ |
| MEDIUM | lib/hooks/blueprints/parse-blueprint-options.js | 434 | // ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ |
| MEDIUM | lib/hooks/security/index.js | 51 | // ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ |
| MEDIUM | lib/hooks/security/index.js | 58 | // ╚═════╝╚══════╝╚═╝ ╚═╝╚═╝ |
| MEDIUM | lib/hooks/security/index.js | 116 | // ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ |
| MEDIUM | lib/hooks/security/index.js | 123 | // ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ |
| MEDIUM | lib/hooks/pubsub/index.js | 185 | // ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ |
| MEDIUM | lib/hooks/pubsub/index.js | 355 | // ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ |
| MEDIUM | lib/hooks/views/html-scriptify.js | 57 | // ╚═══╝ ╚═╝ ╚═╝╚══════╝╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ |
| MEDIUM | lib/hooks/views/html-scriptify.js | 135 | // ╚═════╝ ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ |
| MEDIUM | lib/hooks/views/html-scriptify.js | 142 | // ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | appveyor.yml | 1 | # # # # # # # # # # # # # # # # # # # # # # # # # # |
| LOW | appveyor.yml | 41 | # (Not sure what this is for, it's just in Appveyor's example. |
| LOW | test/init.js | 1 | // Initialization script that runs once before any tests. |
| LOW | test/unit/virtual-request-interpreter.test.js | 101 | // ██████╗ ███████╗███████╗ ███████╗███████╗███╗ ██╗██████╗ ██╗██╗ ██╗ |
| LOW | test/unit/virtual-request-interpreter.test.js | 121 | // return res.send(false); // 215b (sends down the string `false`, content len ==> 5) |
| LOW | …st/helpers/test-spawning-sails-child-process-in-cwd.js | 41 | * Also if it is set AND `httpRequestInstructions` are set, then the HTTP request |
| LOW | test/helpers/router.js | 121 | // var helper = { |
| LOW | test/helpers/router.js | 141 | // // Emit a request event (will be intercepted by the Router) |
| LOW | test/helpers/router.js | 161 | // return function () { |
| LOW | test/helpers/router.js | 181 | // url: '/', |
| LOW | test/helpers/router.js | 201 | // var _enhancedRes = util.defaults(res || {}, { |
| LOW | test/helpers/router.js | 221 | |
| LOW | test/helpers/router.js | 241 | // * |
| LOW | test/helpers/router.js | 261 | // return { |
| LOW | test/helpers/router.js | 281 | // var expectedResponse = { status: 200 }; |
| LOW | test/helpers/router.js | 301 | // __it('should have sent the proper response', expect.equal('response', expectedResponse)); |
| LOW | bin/sails.js | 161 | // FUTURE: ^^ Consider simplifying this into a script. |
| LOW | bin/sails-run.js | 261 | // Maybe as an option at least. |
| LOW | bin/sails-run.js | 281 | // ``` |
| LOW | bin/sails-console.js | 41 | |
| LOW | bin/sails-console.js | 141 | // Return the new writable stream. |
| LOW | bin/sails-console.js | 161 | preview: false, |
| LOW | docs/concepts/Security/XSS.md | 41 | // }, |
| LOW | docs/concepts/Realtime/Realtime.md | 101 | // are _listening_. In other words, to actually handle the socket message, |
| LOW | docs/concepts/ORM/Associations/OneWayAssociation.md | 41 | } |
| LOW | docs/concepts/ORM/Associations/OnetoMany.md | 81 | // lastName: 'Bar', |
| LOW | lib/index.js | 1 | /** |
| LOW | lib/app/load.js | 101 | controller: ['hooks', function(results, cb) { |
| LOW | lib/app/load.js | 141 | |
| LOW | lib/app/load.js | 281 | } |
| LOW | lib/app/lower.js | 121 | // Allow process to exit once this server is closed |
| LOW | lib/app/configuration/rc.js | 21 | |
| LOW | lib/app/private/bootstrap.js | 21 | module.exports = function runBootstrap(done) { |
| LOW | lib/app/private/loadHooks.js | 81 | // // If so, something is wrong. |
| LOW | lib/app/private/loadHooks.js | 241 | process.nextTick(function(){ cb(); }); |
| LOW | lib/app/private/isLocalSailsValid.js | 81 | log.debug(requiredSailsVersion); |
| LOW | lib/hooks/moduleloader/index.js | 21 | // • 'js' (.js) |
| LOW | lib/hooks/moduleloader/index.js | 61 | // Paths for application modules and key files |
| LOW | lib/hooks/moduleloader/index.js | 121 | // Configuration |
| LOW | lib/hooks/moduleloader/index.js | 421 | // Look inside namespaced folders e.g. node_modules/@sailsjs/sails-hook-foo |
| LOW | lib/hooks/blueprints/index.js | 61 | // Blueprint/Shadow-Routes Enabled |
| LOW | lib/hooks/blueprints/actions/create.js | 81 | // e.g. |
| LOW | lib/hooks/blueprints/actions/add.js | 41 | |
| LOW | lib/hooks/blueprints/actions/replace.js | 141 | return res.serverError(err); |
| LOW | lib/hooks/blueprints/actions/replace.js | 161 | // blueprint action would have been rolled back along with the transaction |
| LOW | lib/hooks/security/index.js | 41 | }, |
| LOW | lib/hooks/http/initialize.js | 21 | // or if it is disabled, then go ahead and proceed |
| LOW | lib/hooks/http/initialize.js | 201 | // (see https://github.com/balderdashy/sails/pull/3599#issuecomment-195665040) |
| LOW | lib/hooks/http/initialize.js | 321 | } |
| LOW | lib/hooks/http/initialize.js | 341 | |
| LOW | lib/hooks/http/index.js | 61 | // and `./get-configured-http-middleware-fns.js` in this hook for details. |
| LOW | lib/hooks/http/index.js | 121 | // If no _explicit_ middleware order is specified, make sure the implicit default order |
| LOW | lib/hooks/http/get-configured-http-middleware-fns.js | 21 | * @property {Function} * |
| LOW | lib/hooks/request/params.all.js | 41 | } |
| LOW | lib/hooks/request/params.all.js | 61 | // value: function (){ |
| LOW | lib/hooks/request/metadata.js | 21 | module.exports = function _mixinServerMetadata(req) { |
| LOW | lib/hooks/views/default-view-rendering-fn.js | 201 | |
| LOW | lib/hooks/views/res.view.js | 261 | // Note: |
| LOW | lib/hooks/views/res.view.js | 381 | if (err) { |
| LOW | …s/views/unescape-html-entities-deep-lite.min.string.js | 1 | // This module exports the `toString()`-ed, minified version of the function defined below (`unescapeHtmlEntitiesDeepLit |
| 17 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | lib/hooks/security/index.js | 159 | sails.config.security.cors.allowOrigins = _.map(sails.config.security.cors.allowOrigins.split(','), function(ori |
| CRITICAL | lib/hooks/security/index.js | 207 | sails.config.security.cors.allowOrigins = _.map(sails.config.security.cors.allowOrigins.split(','), function(ori |
| CRITICAL | lib/hooks/http/index.js | 233 | if (!_.contains(sails.config.http.middleware.order.concat(['404', '500', 'startRequestTimer']), middlewareName)) |
| CRITICAL | lib/hooks/http/index.js | 249 | _.each(_.difference(sails.config.http.middleware.order, sails.hooks.http.defaults.http.middleware.order.concat(['4 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …st/helpers/test-spawning-sails-child-process-in-cwd.js | 44 | module.exports = function testSpawningSailsLiftChildProcessInCwd (opts){ |
| LOW | …lpers/test-spawning-sails-lift-child-process-in-cwd.js | 45 | module.exports = function testSpawningSailsLiftChildProcessInCwd (_opts){ |
| LOW | bin/private/read-repl-history-and-start-transcribing.js | 23 | module.exports = function readReplHistoryAndBeginTranscribing(repl, file) { |
| LOW | lib/hooks/responses/index.js | 74 | sails.modules.loadResponses(function loadedRuntimeErrorModules(err, responseDefs) { |
| LOW | …s/views/unescape-html-entities-deep-lite.min.string.js | 9 | module.exports = 'function unescapeHtmlEntitiesDeepLite(r){if("function"!=typeof Array.isArray||"function"!=typeof Array |
| LOW | …s/views/unescape-html-entities-deep-lite.min.string.js | 67 | function unescapeHtmlEntitiesDeepLite(data){ |
| LOW | lib/router/index.js | 395 | Router.prototype.getActionIdentityForTarget = function getActionIdentityForTarget(target) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/integration/middleware.compression.test.js | 19 | var lipsum = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras fringilla mollis sapien sed consequat. C |
| LOW | test/integration/middleware.compression.test.js | 19 | var lipsum = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras fringilla mollis sapien sed consequat. C |
| LOW | docs/concepts/Configuration/Configuration.md | 108 | // Set a custom "email" value to "foo@bar.com": |
| LOW | docs/concepts/Configuration/Configuration.md | 109 | sails lift --custom.email='foo@bar.com' |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | lib/hooks/request/metadata.js | 40 | // But Express only delivers the host devoid of a port, so we have to delve into |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | lib/hooks/views/res.view.js | 434 | // While unlikely this will change, it's worth noting that this implementation |