"
8 | ],
9 | "description": "visionmedia-debug",
10 | "moduleType": [
11 | "amd",
12 | "es6",
13 | "globals",
14 | "node"
15 | ],
16 | "keywords": [
17 | "visionmedia",
18 | "debug"
19 | ],
20 | "license": "MIT",
21 | "ignore": [
22 | "**/.*",
23 | "node_modules",
24 | "bower_components",
25 | "test",
26 | "tests"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/nodecms/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.2.0",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "browser.js",
12 | "scripts": [
13 | "browser.js",
14 | "debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/debug/node_modules/ms/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | test
3 | History.md
4 | Makefile
5 | component.json
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/backslash.ejs:
--------------------------------------------------------------------------------
1 | \foo
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/backslash.html:
--------------------------------------------------------------------------------
1 | \foo
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/comments.ejs:
--------------------------------------------------------------------------------
1 | <% // double-slash comment %>foo
2 | <% /* C-style comment */ %>bar
3 | <% // double-slash comment with newline
4 | %>baz
5 | <% var x = 'qux'; // double-slash comment @ end of line %><%= x %>
6 | <%# ERB style comment %>fee
7 | <%= 'not a ' + '//' + ' comment' %>
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/comments.html:
--------------------------------------------------------------------------------
1 | foo
2 | bar
3 | baz
4 | qux
5 | fee
6 | not a // comment
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/consecutive-tags.ejs:
--------------------------------------------------------------------------------
1 | <% var a = 'foo' %><% var b = 'bar' %><%= a %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/consecutive-tags.html:
--------------------------------------------------------------------------------
1 | foo
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/double-quote.ejs:
--------------------------------------------------------------------------------
1 | <%= "lo" + 'ki' %>'s "wheelchair"
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/double-quote.html:
--------------------------------------------------------------------------------
1 | loki's "wheelchair"
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/error.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% if (users) { %>
3 | Has users
4 | <% } %>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/error.out:
--------------------------------------------------------------------------------
1 | ReferenceError: error.ejs:2
2 | 1|
3 | >> 2| <% if (users) { %>
4 | 3| Has users
5 | 4| <% } %>
6 | 5|
7 |
8 | users is not defined
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/fail.ejs:
--------------------------------------------------------------------------------
1 | <% function foo() return 'foo'; %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/hello-world.ejs:
--------------------------------------------------------------------------------
1 | Hello world!
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include-abspath.ejs:
--------------------------------------------------------------------------------
1 |
2 | <@ pets.forEach(function(pet){ @>
3 | <@- include(path.join(dir, 'pet'), {pet: pet}); @>
4 | <@ }); @>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include-simple.ejs:
--------------------------------------------------------------------------------
1 |
2 | <%- include('hello-world'); %>
3 |
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include-simple.html:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include.css.ejs:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include.css.html:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include.ejs:
--------------------------------------------------------------------------------
1 |
2 | <@ pets.forEach(function(pet){ @>
3 | <@- include('pet', {pet: pet}); @>
4 | <@ }); @>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | geddy
4 |
5 |
6 | neil
7 |
8 |
9 | alex
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_cache.ejs:
--------------------------------------------------------------------------------
1 | <%- include('../tmp/include') %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_cache.html:
--------------------------------------------------------------------------------
1 | Old
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_preprocessor.css.ejs:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_preprocessor.css.html:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_preprocessor.ejs:
--------------------------------------------------------------------------------
1 |
2 | <@ pets.forEach(function(pet){ @>
3 | <@ include pet @>
4 | <@ }) @>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_preprocessor.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | geddy
4 |
5 |
6 | neil
7 |
8 |
9 | alex
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_preprocessor_cache.ejs:
--------------------------------------------------------------------------------
1 | <%- include ../tmp/include_preprocessor %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/include_preprocessor_cache.html:
--------------------------------------------------------------------------------
1 | Old
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/includes/bom.ejs:
--------------------------------------------------------------------------------
1 | This is a file with BOM.
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/includes/menu-item.ejs:
--------------------------------------------------------------------------------
1 | <% include menu/item %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/includes/menu/item.ejs:
--------------------------------------------------------------------------------
1 | <%= title %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/literal.ejs:
--------------------------------------------------------------------------------
1 | There should be a space followed by a less-than sign and then two more
2 | spaces in the next line:
3 | < .
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/literal.html:
--------------------------------------------------------------------------------
1 | There should be a space followed by a less-than sign and then two more
2 | spaces in the next line:
3 | < .
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/menu.ejs:
--------------------------------------------------------------------------------
1 | <%- include('includes/menu-item', {
2 | url: '/foo'
3 | , title: 'Foo'
4 | }); -%>
5 |
6 | <%- include('includes/menu-item', {
7 | url: '/bar'
8 | , title: 'Bar'
9 | }); -%>
10 |
11 | <%- include('includes/menu-item', {
12 | url: '/baz'
13 | , title: 'Baz'
14 | }); -%>
15 |
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/menu.html:
--------------------------------------------------------------------------------
1 | Foo
2 |
3 |
4 | Bar
5 |
6 |
7 | Baz
8 |
9 |
10 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/menu_preprocessor.ejs:
--------------------------------------------------------------------------------
1 | <% var url = '/foo' -%>
2 | <% var title = 'Foo' -%>
3 | <% include includes/menu-item -%>
4 |
5 | <% var url = '/bar' -%>
6 | <% var title = 'Bar' -%>
7 | <% include includes/menu-item -%>
8 |
9 | <% var url = '/baz' -%>
10 | <% var title = 'Baz' -%>
11 | <% include includes/menu-item -%>
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/menu_preprocessor.html:
--------------------------------------------------------------------------------
1 | Foo
2 |
3 |
4 | Bar
5 |
6 |
7 | Baz
8 |
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/menu_var.ejs:
--------------------------------------------------------------------------------
1 | <%- include(varPath, {
2 | url: '/foo'
3 | , title: 'Foo'
4 | }); -%>
5 |
6 | <%- include(varPath, {
7 | url: '/bar'
8 | , title: 'Bar'
9 | }); -%>
10 |
11 | <%- include(varPath, {
12 | url: '/baz'
13 | , title: 'Baz'
14 | }); -%>
15 |
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/messed.ejs:
--------------------------------------------------------------------------------
1 | <%users.forEach(function(user){%><%=user.name%> <%})%>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/messed.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/newlines.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% users.forEach(function(user){ %>
3 | <%= user.name %>
4 | <% }) %>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/newlines.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | geddy
4 |
5 | neil
6 |
7 | alex
8 |
9 |
10 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/newlines.mixed.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% var unused1 = 'blah' -%>
3 | <% var unused2 = 'bleh' %>
4 | <% var unused3 = 'bloh' -%>
5 | <% var unused4 = 'bluh' %>
6 |
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/newlines.mixed.html:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/no.newlines.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% users.forEach(function(user){ -%>
3 | <%= user.name %>
4 | <% }) -%>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/no.newlines.error.ejs:
--------------------------------------------------------------------------------
1 | AAA
2 | <% data = "test"; -%>
3 | BBB
4 | <%= qdata %>
5 | CCC
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/no.newlines.html:
--------------------------------------------------------------------------------
1 |
2 | geddy
3 | neil
4 | alex
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/no.semicolons.ejs:
--------------------------------------------------------------------------------
1 | This document does not use semicolons in scriptlets.
2 | <%
3 | var a = 'b'
4 | var b = 'c'
5 | var c
6 | c = b
7 | %>
8 | The value of c is: <%= c %>
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/no.semicolons.html:
--------------------------------------------------------------------------------
1 | This document does not use semicolons in scriptlets.
2 |
3 | The value of c is: c
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/para.ejs:
--------------------------------------------------------------------------------
1 | hey
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/pet.ejs:
--------------------------------------------------------------------------------
1 | <@= pet.name @>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/rmWhitespace.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 | A very long piece of text very long piece of text very long piece of
4 | text very long piece <% var f = 'f' %>of text very long piece of
5 | tex
t very long piece of<% %>text very long
6 | adsffadsfadsfad<%= f %>
7 |
8 | piece of text.
9 | <% var a = 'a' %>
10 | Text again.
11 | <% var b = 'b' %>
12 | <% var c = 'c'
13 | var d = 'd' %>
14 | Another text. <%= c %>
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/rmWhitespace.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | A very long piece of text very long piece of text very long piece of
4 | text very long piece of text very long piece of
5 | text very long piece oftext very long
6 | adsffadsfadsfadfpiece of text.
7 | Text again.
8 | Another text. c
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/single-quote.ejs:
--------------------------------------------------------------------------------
1 | <%= 'loki' %>'s wheelchair
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/single-quote.html:
--------------------------------------------------------------------------------
1 | loki's wheelchair
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/space-and-tab-slurp.ejs:
--------------------------------------------------------------------------------
1 |
2 | <%_ users.forEach(function(user){ _%>
3 | <%= user.name %>
4 | <%_ }) _%>
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/space-and-tab-slurp.html:
--------------------------------------------------------------------------------
1 |
2 | geddy
3 | neil
4 | alex
5 |
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | foo: '<%= value %>';
3 | }
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/user-no-with.ejs:
--------------------------------------------------------------------------------
1 | <$= locals.name $>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/user.ejs:
--------------------------------------------------------------------------------
1 | <$= name $>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/fixtures/with-context.ejs:
--------------------------------------------------------------------------------
1 | <%= this.foo %>
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/mocha.opts:
--------------------------------------------------------------------------------
1 | --ui tdd
2 | --reporter spec
3 | --check-leaks
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/tmp/include.ejs:
--------------------------------------------------------------------------------
1 | New
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/tmp/include_preprocessor.ejs:
--------------------------------------------------------------------------------
1 | New
--------------------------------------------------------------------------------
/nodecms/node_modules/ejs/test/tmp/renderFile.ejs:
--------------------------------------------------------------------------------
1 | New
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/cookie-signature/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/cookie-signature/History.md:
--------------------------------------------------------------------------------
1 | 1.0.6 / 2015-02-03
2 | ==================
3 |
4 | * use `npm test` instead of `make test` to run tests
5 | * clearer assertion messages when checking input
6 |
7 |
8 | 1.0.5 / 2014-09-05
9 | ==================
10 |
11 | * add license to package.json
12 |
13 | 1.0.4 / 2014-06-25
14 | ==================
15 |
16 | * corrected avoidance of timing attacks (thanks @tenbits!)
17 |
18 | 1.0.3 / 2014-01-28
19 | ==================
20 |
21 | * [incorrect] fix for timing attacks
22 |
23 | 1.0.2 / 2014-01-28
24 | ==================
25 |
26 | * fix missing repository warning
27 | * fix typo in test
28 |
29 | 1.0.1 / 2013-04-15
30 | ==================
31 |
32 | * Revert "Changed underlying HMAC algo. to sha512."
33 | * Revert "Fix for timing attacks on MAC verification."
34 |
35 | 0.0.1 / 2010-01-03
36 | ==================
37 |
38 | * Initial release
39 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/crc/lib/crc1.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var _buffer = require('buffer');
4 |
5 | var _define_crc = require('./define_crc');
6 |
7 | var _define_crc2 = _interopRequireDefault(_define_crc);
8 |
9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10 |
11 | module.exports = (0, _define_crc2.default)('crc1', function (buf, previous) {
12 | if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _buffer.Buffer)(buf);
13 |
14 | var crc = ~ ~previous;
15 | var accum = 0;
16 |
17 | for (var index = 0; index < buf.length; index++) {
18 | var byte = buf[index];
19 | accum += byte;
20 | }
21 |
22 | crc += accum % 256;
23 | return crc % 256;
24 | });
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/crc/lib/crc16_xmodem.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var _buffer = require('buffer');
4 |
5 | var _define_crc = require('./define_crc');
6 |
7 | var _define_crc2 = _interopRequireDefault(_define_crc);
8 |
9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10 |
11 | module.exports = (0, _define_crc2.default)('xmodem', function (buf, previous) {
12 | if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _buffer.Buffer)(buf);
13 |
14 | var crc = typeof previous !== 'undefined' ? ~ ~previous : 0x0;
15 |
16 | for (var index = 0; index < buf.length; index++) {
17 | var byte = buf[index];
18 | var code = crc >>> 8 & 0xFF;
19 |
20 | code ^= byte & 0xFF;
21 | code ^= code >>> 4;
22 | crc = crc << 8 & 0xFFFF;
23 | crc ^= code;
24 | code = code << 5 & 0xFFFF;
25 | crc ^= code;
26 | code = code << 7 & 0xFFFF;
27 | crc ^= code;
28 | }
29 |
30 | return crc;
31 | });
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/crc/lib/define_crc.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 |
7 | exports.default = function (model, calc) {
8 | var fn = function fn(buf, previous) {
9 | return calc(buf, previous) >>> 0;
10 | };
11 | fn.signed = calc;
12 | fn.unsigned = fn;
13 | fn.model = model;
14 |
15 | return fn;
16 | };
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/crc/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = {
4 | crc1: require('./crc1'),
5 | crc8: require('./crc8'),
6 | crc81wire: require('./crc8_1wire'),
7 | crc16: require('./crc16'),
8 | crc16ccitt: require('./crc16_ccitt'),
9 | crc16modbus: require('./crc16_modbus'),
10 | crc16xmodem: require('./crc16_xmodem'),
11 | crc16kermit: require('./crc16_kermit'),
12 | crc24: require('./crc24'),
13 | crc32: require('./crc32')
14 | };
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/depd/lib/compat/buffer-concat.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2014 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | */
12 |
13 | module.exports = bufferConcat
14 |
15 | /**
16 | * Concatenate an array of Buffers.
17 | */
18 |
19 | function bufferConcat(bufs) {
20 | var length = 0
21 |
22 | for (var i = 0, len = bufs.length; i < len; i++) {
23 | length += bufs[i].length
24 | }
25 |
26 | var buf = new Buffer(length)
27 | var pos = 0
28 |
29 | for (var i = 0, len = bufs.length; i < len; i++) {
30 | bufs[i].copy(buf, pos)
31 | pos += bufs[i].length
32 | }
33 |
34 | return buf
35 | }
36 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/depd/lib/compat/event-listener-count.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2015 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = eventListenerCount
15 |
16 | /**
17 | * Get the count of listeners on an event emitter of a specific type.
18 | */
19 |
20 | function eventListenerCount(emitter, type) {
21 | return emitter.listeners(type).length
22 | }
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/on-headers/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2015-09-29
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.0 / 2014-08-10
7 | ==================
8 |
9 | * Honor `res.statusCode` change in `listener`
10 | * Move to `jshttp` orgainzation
11 | * Prevent `arguments`-related de-opt
12 |
13 | 0.0.0 / 2014-05-13
14 | ==================
15 |
16 | * Initial implementation
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/uid-safe/HISTORY.md:
--------------------------------------------------------------------------------
1 | 2.0.0 / 2015-05-08
2 | ==================
3 |
4 | * Use global `Promise` when returning a promise
5 |
6 | 1.1.0 / 2015-02-01
7 | ==================
8 |
9 | * Use `crypto.randomBytes`, if available
10 | * deps: base64-url@1.2.1
11 |
12 | 1.0.3 / 2015-01-31
13 | ==================
14 |
15 | * Fix error branch that would throw
16 | * deps: base64-url@1.2.0
17 |
18 | 1.0.2 / 2015-01-08
19 | ==================
20 |
21 | * Remove dependency on `mz`
22 |
23 | 1.0.1 / 2014-06-18
24 | ==================
25 |
26 | * Remove direct `bluebird` dependency
27 |
28 | 1.0.0 / 2014-06-18
29 | ==================
30 |
31 | * Initial release
32 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/uid-safe/node_modules/base64-url/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) 2014, Joaquim José F. Serafim
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/uid-safe/node_modules/base64-url/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var base64url = module.exports;
4 |
5 | base64url.unescape = function unescape (str) {
6 | return (str + Array(5 - str.length % 4)
7 | .join('='))
8 | .replace(/\-/g, '+')
9 | .replace(/_/g, '/');
10 | };
11 |
12 | base64url.escape = function escape (str) {
13 | return str.replace(/\+/g, '-')
14 | .replace(/\//g, '_')
15 | .replace(/=/g, '');
16 | };
17 |
18 | base64url.encode = function encode (str) {
19 | return this.escape(new Buffer(str).toString('base64'));
20 | };
21 |
22 | base64url.decode = function decode (str) {
23 | return new Buffer(this.unescape(str), 'base64').toString();
24 | };
25 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/utils-merge/.travis.yml:
--------------------------------------------------------------------------------
1 | language: "node_js"
2 | node_js:
3 | - "0.4"
4 | - "0.6"
5 | - "0.8"
6 | - "0.10"
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/utils-merge/README.md:
--------------------------------------------------------------------------------
1 | # utils-merge
2 |
3 | Merges the properties from a source object into a destination object.
4 |
5 | ## Install
6 |
7 | $ npm install utils-merge
8 |
9 | ## Usage
10 |
11 | ```javascript
12 | var a = { foo: 'bar' }
13 | , b = { bar: 'baz' };
14 |
15 | merge(a, b);
16 | // => { foo: 'bar', bar: 'baz' }
17 | ```
18 |
19 | ## Tests
20 |
21 | $ npm install
22 | $ npm test
23 |
24 | [](http://travis-ci.org/jaredhanson/utils-merge)
25 |
26 | ## Credits
27 |
28 | - [Jared Hanson](http://github.com/jaredhanson)
29 |
30 | ## License
31 |
32 | [The MIT License](http://opensource.org/licenses/MIT)
33 |
34 | Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
35 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express-session/node_modules/utils-merge/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Merge object b with object a.
3 | *
4 | * var a = { foo: 'bar' }
5 | * , b = { bar: 'baz' };
6 | *
7 | * merge(a, b);
8 | * // => { foo: 'bar', bar: 'baz' }
9 | *
10 | * @param {Object} a
11 | * @param {Object} b
12 | * @return {Object}
13 | * @api public
14 | */
15 |
16 | exports = module.exports = function(a, b){
17 | if (a && b) {
18 | for (var key in b) {
19 | a[key] = b[key];
20 | }
21 | }
22 | return a;
23 | };
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * express
3 | * Copyright(c) 2009-2013 TJ Holowaychuk
4 | * Copyright(c) 2013 Roman Shtylman
5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson
6 | * MIT Licensed
7 | */
8 |
9 | 'use strict';
10 |
11 | module.exports = require('./lib/express');
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/lib/middleware/init.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * express
3 | * Copyright(c) 2009-2013 TJ Holowaychuk
4 | * Copyright(c) 2013 Roman Shtylman
5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson
6 | * MIT Licensed
7 | */
8 |
9 | 'use strict';
10 |
11 | /**
12 | * Initialization middleware, exposing the
13 | * request and response to each other, as well
14 | * as defaulting the X-Powered-By header field.
15 | *
16 | * @param {Function} app
17 | * @return {Function}
18 | * @api private
19 | */
20 |
21 | exports.init = function(app){
22 | return function expressInit(req, res, next){
23 | if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express');
24 | req.res = res;
25 | res.req = req;
26 | req.next = next;
27 |
28 | req.__proto__ = app.request;
29 | res.__proto__ = app.response;
30 |
31 | res.locals = res.locals || Object.create(null);
32 |
33 | next();
34 | };
35 | };
36 |
37 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = require('./db.json')
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/content-type/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2015-02-13
2 | ==================
3 |
4 | * Improve missing `Content-Type` header error message
5 |
6 | 1.0.0 / 2015-02-01
7 | ==================
8 |
9 | * Initial implementation, derived from `media-typer@0.3.0`
10 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/cookie-signature/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/cookie-signature/History.md:
--------------------------------------------------------------------------------
1 | 1.0.6 / 2015-02-03
2 | ==================
3 |
4 | * use `npm test` instead of `make test` to run tests
5 | * clearer assertion messages when checking input
6 |
7 |
8 | 1.0.5 / 2014-09-05
9 | ==================
10 |
11 | * add license to package.json
12 |
13 | 1.0.4 / 2014-06-25
14 | ==================
15 |
16 | * corrected avoidance of timing attacks (thanks @tenbits!)
17 |
18 | 1.0.3 / 2014-01-28
19 | ==================
20 |
21 | * [incorrect] fix for timing attacks
22 |
23 | 1.0.2 / 2014-01-28
24 | ==================
25 |
26 | * fix missing repository warning
27 | * fix typo in test
28 |
29 | 1.0.1 / 2013-04-15
30 | ==================
31 |
32 | * Revert "Changed underlying HMAC algo. to sha512."
33 | * Revert "Fix for timing attacks on MAC verification."
34 |
35 | 0.0.1 / 2010-01-03
36 | ==================
37 |
38 | * Initial release
39 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2014 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | */
12 |
13 | module.exports = bufferConcat
14 |
15 | /**
16 | * Concatenate an array of Buffers.
17 | */
18 |
19 | function bufferConcat(bufs) {
20 | var length = 0
21 |
22 | for (var i = 0, len = bufs.length; i < len; i++) {
23 | length += bufs[i].length
24 | }
25 |
26 | var buf = new Buffer(length)
27 | var pos = 0
28 |
29 | for (var i = 0, len = bufs.length; i < len; i++) {
30 | bufs[i].copy(buf, pos)
31 | pos += bufs[i].length
32 | }
33 |
34 | return buf
35 | }
36 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/depd/lib/compat/event-listener-count.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2015 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = eventListenerCount
15 |
16 | /**
17 | * Get the count of listeners on an event emitter of a specific type.
18 | */
19 |
20 | function eventListenerCount(emitter, type) {
21 | return emitter.listeners(type).length
22 | }
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/escape-html/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # escape-html
3 |
4 | Escape string for use in HTML
5 |
6 | ## Example
7 |
8 | ```js
9 | var escape = require('escape-html');
10 | var html = escape('foo & bar');
11 | // -> foo & bar
12 | ```
13 |
14 | ## Benchmark
15 |
16 | ```
17 | $ npm run-script bench
18 |
19 | > escape-html@1.0.3 bench nodejs-escape-html
20 | > node benchmark/index.js
21 |
22 |
23 | http_parser@1.0
24 | node@0.10.33
25 | v8@3.14.5.9
26 | ares@1.9.0-DEV
27 | uv@0.10.29
28 | zlib@1.2.3
29 | modules@11
30 | openssl@1.0.1j
31 |
32 | 1 test completed.
33 | 2 tests completed.
34 | 3 tests completed.
35 |
36 | no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
37 | single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
38 | many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)
39 | ```
40 |
41 | ## License
42 |
43 | MIT
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/finalhandler/node_modules/unpipe/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.0 / 2015-06-14
2 | ==================
3 |
4 | * Initial release
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/fresh/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.3.0 / 2015-05-12
2 | ==================
3 |
4 | * Add weak `ETag` matching support
5 |
6 | 0.2.4 / 2014-09-07
7 | ==================
8 |
9 | * Support Node.js 0.6
10 |
11 | 0.2.3 / 2014-09-07
12 | ==================
13 |
14 | * Move repository to jshttp
15 |
16 | 0.2.2 / 2014-02-19
17 | ==================
18 |
19 | * Revert "Fix for blank page on Safari reload"
20 |
21 | 0.2.1 / 2014-01-29
22 | ==================
23 |
24 | * Fix for blank page on Safari reload
25 |
26 | 0.2.0 / 2013-08-11
27 | ==================
28 |
29 | * Return stale for `Cache-Control: no-cache`
30 |
31 | 0.1.0 / 2012-06-15
32 | ==================
33 | * Add `If-None-Match: *` support
34 |
35 | 0.0.1 / 2012-06-10
36 | ==================
37 |
38 | * Initial release
39 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/merge-descriptors/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2016-01-17
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.0 / 2015-03-01
7 | ==================
8 |
9 | * Add option to only add new descriptors
10 | * Add simple argument validation
11 | * Add jsdoc to source file
12 |
13 | 0.0.2 / 2013-12-14
14 | ==================
15 |
16 | * Move repository to `component` organization
17 |
18 | 0.0.1 / 2013-10-29
19 | ==================
20 |
21 | * Initial release
22 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/methods/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.1.2 / 2016-01-17
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.1.1 / 2014-12-30
7 | ==================
8 |
9 | * Improve `browserify` support
10 |
11 | 1.1.0 / 2014-07-05
12 | ==================
13 |
14 | * Add `CONNECT` method
15 |
16 | 1.0.1 / 2014-06-02
17 | ==================
18 |
19 | * Fix module to work with harmony transform
20 |
21 | 1.0.0 / 2014-05-08
22 | ==================
23 |
24 | * Add `PURGE` method
25 |
26 | 0.1.0 / 2013-10-28
27 | ==================
28 |
29 | * Add `http.METHODS` support
30 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/path-to-regexp/History.md:
--------------------------------------------------------------------------------
1 | 0.1.7 / 2015-07-28
2 | ==================
3 |
4 | * Fixed regression with escaped round brackets and matching groups.
5 |
6 | 0.1.6 / 2015-06-19
7 | ==================
8 |
9 | * Replace `index` feature by outputting all parameters, unnamed and named.
10 |
11 | 0.1.5 / 2015-05-08
12 | ==================
13 |
14 | * Add an index property for position in match result.
15 |
16 | 0.1.4 / 2015-03-05
17 | ==================
18 |
19 | * Add license information
20 |
21 | 0.1.3 / 2014-07-06
22 | ==================
23 |
24 | * Better array support
25 | * Improved support for trailing slash in non-ending mode
26 |
27 | 0.1.0 / 2014-03-06
28 | ==================
29 |
30 | * add options.end
31 |
32 | 0.0.2 / 2013-02-10
33 | ==================
34 |
35 | * Update to match current express
36 | * add .license property to component.json
37 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.1.0 / 2014-09-21
2 | ==================
3 |
4 | * Initial release
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * forwarded
3 | * Copyright(c) 2014 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = forwarded
12 |
13 | /**
14 | * Get all addresses in the request, using the `X-Forwarded-For` header.
15 | *
16 | * @param {Object} req
17 | * @api public
18 | */
19 |
20 | function forwarded(req) {
21 | if (!req) {
22 | throw new TypeError('argument req is required')
23 | }
24 |
25 | // simple header parsing
26 | var proxyAddrs = (req.headers['x-forwarded-for'] || '')
27 | .split(/ *, */)
28 | .filter(Boolean)
29 | .reverse()
30 | var socketAddr = req.connection.remoteAddress
31 | var addrs = [socketAddr].concat(proxyAddrs)
32 |
33 | // return all addresses
34 | return addrs
35 | }
36 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | node_modules
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - "0.10"
5 | - "0.11"
6 | - "0.12"
7 | - "4.0"
8 | - "4.1"
9 | - "4.2"
10 | - "5"
11 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile:
--------------------------------------------------------------------------------
1 | fs = require 'fs'
2 | CoffeeScript = require 'coffee-script'
3 | nodeunit = require 'nodeunit'
4 | UglifyJS = require 'uglify-js'
5 |
6 | task 'build', 'build the JavaScript files from CoffeeScript source', build = (cb) ->
7 | source = fs.readFileSync 'src/ipaddr.coffee'
8 | fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString()
9 |
10 | invoke 'test'
11 | invoke 'compress'
12 |
13 | task 'test', 'run the bundled tests', (cb) ->
14 | nodeunit.reporters.default.run ['test']
15 |
16 | task 'compress', 'uglify the resulting javascript', (cb) ->
17 | result = UglifyJS.minify('lib/ipaddr.js')
18 | fs.writeFileSync('ipaddr.min.js', result.code)
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ipaddr.js",
3 | "version": "1.0.5",
4 | "homepage": "https://github.com/whitequark/ipaddr.js",
5 | "authors": [
6 | "whitequark "
7 | ],
8 | "description": "IP address manipulation library in JavaScript (CoffeeScript, actually)",
9 | "main": "lib/ipaddr.js",
10 | "moduleType": [
11 | "globals",
12 | "node"
13 | ],
14 | "keywords": [
15 | "javscript",
16 | "ip",
17 | "address",
18 | "ipv4",
19 | "ipv6"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/.eslintignore:
--------------------------------------------------------------------------------
1 | dist
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | npm-debug.log
4 | dump.rdb
5 | node_modules
6 | results.tap
7 | results.xml
8 | npm-shrinkwrap.json
9 | config.json
10 | .DS_Store
11 | */.DS_Store
12 | */*/.DS_Store
13 | ._*
14 | */._*
15 | */*/._*
16 | coverage.*
17 | lib-cov
18 | complexity.md
19 | dist
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - 0.10
5 | - 0.12
6 | - iojs
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md).
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "qs",
3 | "main": "dist/qs.js",
4 | "version": "3.0.0",
5 | "homepage": "https://github.com/hapijs/qs",
6 | "authors": [
7 | "Nathan LaFreniere "
8 | ],
9 | "description": "A querystring parser that supports nesting and arrays, with a depth limit",
10 | "keywords": [
11 | "querystring",
12 | "qs"
13 | ],
14 | "license": "BSD-3-Clause",
15 | "ignore": [
16 | "**/.*",
17 | "node_modules",
18 | "bower_components",
19 | "test",
20 | "tests"
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/lib/index.js:
--------------------------------------------------------------------------------
1 | // Load modules
2 |
3 | var Stringify = require('./stringify');
4 | var Parse = require('./parse');
5 |
6 |
7 | // Declare internals
8 |
9 | var internals = {};
10 |
11 |
12 | module.exports = {
13 | stringify: Stringify,
14 | parse: Parse
15 | };
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/qs/test/utils.js:
--------------------------------------------------------------------------------
1 | // Load modules
2 |
3 | var Code = require('code');
4 | var Lab = require('lab');
5 | var Utils = require('../lib/utils');
6 |
7 |
8 | // Declare internals
9 |
10 | var internals = {};
11 |
12 |
13 | // Test shortcuts
14 |
15 | var lab = exports.lab = Lab.script();
16 | var expect = Code.expect;
17 | var describe = lab.experiment;
18 | var it = lab.test;
19 |
20 |
21 | describe('merge()', function () {
22 |
23 | it('can merge two objects with the same key', function (done) {
24 |
25 | expect(Utils.merge({ a: 'b' }, { a: 'c' })).to.deep.equal({ a: ['b', 'c'] });
26 | done();
27 | });
28 | });
29 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/range-parser/HISTORY.md:
--------------------------------------------------------------------------------
1 | unreleased
2 | ==========
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.2 / 2014-09-08
7 | ==================
8 |
9 | * Support Node.js 0.6
10 |
11 | 1.0.1 / 2014-09-07
12 | ==================
13 |
14 | * Move repository to jshttp
15 |
16 | 1.0.0 / 2013-12-11
17 | ==================
18 |
19 | * Add repository to package.json
20 | * Add MIT license
21 |
22 | 0.0.4 / 2012-06-17
23 | ==================
24 |
25 | * Change ret -1 for unsatisfiable and -2 when invalid
26 |
27 | 0.0.3 / 2012-06-17
28 | ==================
29 |
30 | * Fix last-byte-pos default to len - 1
31 |
32 | 0.0.2 / 2012-06-14
33 | ==================
34 |
35 | * Add `.type`
36 |
37 | 0.0.1 / 2012-06-11
38 | ==================
39 |
40 | * Initial release
41 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/.bin/mime:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../mime/cli.js" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../mime/cli.js" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/.bin/mime.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\mime\cli.js" %*
3 | ) ELSE (
4 | @SETLOCAL
5 | @SET PATHEXT=%PATHEXT:;.JS;=;%
6 | node "%~dp0\..\mime\cli.js" %*
7 | )
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/http-errors/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/mime/.npmignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/junhey/Angular-Cnodejs/de965423c5a6ae16e2678e0f70dd3bce8924853c/nodecms/node_modules/express/node_modules/send/node_modules/mime/.npmignore
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/mime/build/build.js:
--------------------------------------------------------------------------------
1 | var db = require('mime-db');
2 |
3 | var mapByType = {};
4 | Object.keys(db).forEach(function(key) {
5 | var extensions = db[key].extensions;
6 | if (extensions) {
7 | mapByType[key] = extensions;
8 | }
9 | });
10 |
11 | console.log(JSON.stringify(mapByType));
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/mime/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mime = require('./mime.js');
4 | var file = process.argv[2];
5 | var type = mime.lookup(file);
6 |
7 | process.stdout.write(type + '\n');
8 |
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/send/node_modules/ms/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | test
3 | History.md
4 | Makefile
5 | component.json
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/type-is/node_modules/media-typer/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.3.0 / 2014-09-07
2 | ==================
3 |
4 | * Support Node.js 0.6
5 | * Throw error when parameter format invalid on parse
6 |
7 | 0.2.0 / 2014-06-18
8 | ==================
9 |
10 | * Add `typer.format()` to format media types
11 |
12 | 0.1.0 / 2014-06-17
13 | ==================
14 |
15 | * Accept `req` as argument to `parse`
16 | * Accept `res` as argument to `parse`
17 | * Parse media type with extra LWS between type and first parameter
18 |
19 | 0.0.0 / 2014-06-13
20 | ==================
21 |
22 | * Initial implementation
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = require('./db.json')
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/utils-merge/.travis.yml:
--------------------------------------------------------------------------------
1 | language: "node_js"
2 | node_js:
3 | - "0.4"
4 | - "0.6"
5 | - "0.8"
6 | - "0.10"
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/utils-merge/README.md:
--------------------------------------------------------------------------------
1 | # utils-merge
2 |
3 | Merges the properties from a source object into a destination object.
4 |
5 | ## Install
6 |
7 | $ npm install utils-merge
8 |
9 | ## Usage
10 |
11 | ```javascript
12 | var a = { foo: 'bar' }
13 | , b = { bar: 'baz' };
14 |
15 | merge(a, b);
16 | // => { foo: 'bar', bar: 'baz' }
17 | ```
18 |
19 | ## Tests
20 |
21 | $ npm install
22 | $ npm test
23 |
24 | [](http://travis-ci.org/jaredhanson/utils-merge)
25 |
26 | ## Credits
27 |
28 | - [Jared Hanson](http://github.com/jaredhanson)
29 |
30 | ## License
31 |
32 | [The MIT License](http://opensource.org/licenses/MIT)
33 |
34 | Copyright (c) 2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
35 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/utils-merge/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Merge object b with object a.
3 | *
4 | * var a = { foo: 'bar' }
5 | * , b = { bar: 'baz' };
6 | *
7 | * merge(a, b);
8 | * // => { foo: 'bar', bar: 'baz' }
9 | *
10 | * @param {Object} a
11 | * @param {Object} b
12 | * @return {Object}
13 | * @api public
14 | */
15 |
16 | exports = module.exports = function(a, b){
17 | if (a && b) {
18 | for (var key in b) {
19 | a[key] = b[key];
20 | }
21 | }
22 | return a;
23 | };
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/express/node_modules/vary/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2015-07-08
2 | ==================
3 |
4 | * Fix setting empty header from empty `field`
5 | * perf: enable strict mode
6 | * perf: remove argument reassignments
7 |
8 | 1.0.0 / 2014-08-10
9 | ==================
10 |
11 | * Accept valid `Vary` header string as `field`
12 | * Add `vary.append` for low-level string manipulation
13 | * Move to `jshttp` orgainzation
14 |
15 | 0.1.0 / 2014-06-05
16 | ==================
17 |
18 | * Support array of fields to set
19 |
20 | 0.0.0 / 2014-06-04
21 | ==================
22 |
23 | * Initial release
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: GZFmqKPy7XEX0uOl9TDZFUoOQ5AHADMkU
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/Makefile:
--------------------------------------------------------------------------------
1 | NODE = node
2 | NPM = npm
3 | JSDOC = jsdoc
4 | name = all
5 |
6 | generate_docs:
7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md
8 | hugo -s docs/reference -d ../../public
9 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api
10 | cp -R ./public/api/scripts ./public/.
11 | cp -R ./public/api/styles ./public/.
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise.umd.js:
--------------------------------------------------------------------------------
1 | import Promise from './es6-promise/promise';
2 | import polyfill from './es6-promise/polyfill';
3 |
4 | var ES6Promise = {
5 | 'Promise': Promise,
6 | 'polyfill': polyfill
7 | };
8 |
9 | /* global define:true module:true window: true */
10 | if (typeof define === 'function' && define['amd']) {
11 | define(function() { return ES6Promise; });
12 | } else if (typeof module !== 'undefined' && module['exports']) {
13 | module['exports'] = ES6Promise;
14 | } else if (typeof this !== 'undefined') {
15 | this['ES6Promise'] = ES6Promise;
16 | }
17 |
18 | polyfill();
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/polyfill.js:
--------------------------------------------------------------------------------
1 | /*global self*/
2 | import Promise from './promise';
3 |
4 | export default function polyfill() {
5 | var local;
6 |
7 | if (typeof global !== 'undefined') {
8 | local = global;
9 | } else if (typeof self !== 'undefined') {
10 | local = self;
11 | } else {
12 | try {
13 | local = Function('return this')();
14 | } catch (e) {
15 | throw new Error('polyfill failed because global object is unavailable in this environment');
16 | }
17 | }
18 |
19 | var P = local.Promise;
20 |
21 | if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {
22 | return;
23 | }
24 |
25 | local.Promise = Promise;
26 | }
27 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/utils.js:
--------------------------------------------------------------------------------
1 | export function objectOrFunction(x) {
2 | return typeof x === 'function' || (typeof x === 'object' && x !== null);
3 | }
4 |
5 | export function isFunction(x) {
6 | return typeof x === 'function';
7 | }
8 |
9 | export function isMaybeThenable(x) {
10 | return typeof x === 'object' && x !== null;
11 | }
12 |
13 | var _isArray;
14 | if (!Array.isArray) {
15 | _isArray = function (x) {
16 | return Object.prototype.toString.call(x) === '[object Array]';
17 | };
18 | } else {
19 | _isArray = Array.isArray;
20 | }
21 |
22 | export var isArray = _isArray;
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: 47iIZ0B3llo2Wc4dxWRltvgdImqcrVDTi
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/Makefile:
--------------------------------------------------------------------------------
1 | NODE = node
2 | NPM = npm
3 | JSDOC = jsdoc
4 | name = all
5 |
6 | generate_docs:
7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md
8 | hugo -s docs/reference -d ../../public
9 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api
10 | cp -R ./public/api/scripts ./public/.
11 | cp -R ./public/api/styles ./public/.
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/TESTING.md:
--------------------------------------------------------------------------------
1 | Testing setup
2 | =============
3 |
4 | Single Server
5 | -------------
6 | mongod --dbpath=./db
7 |
8 | Replicaset
9 | ----------
10 | mongo --nodb
11 | var x = new ReplSetTest({"useHostName":"false", "nodes" : {node0 : {}, node1 : {}, node2 : {}}})
12 | x.startSet();
13 | var config = x.getReplSetConfig()
14 | x.initiate(config);
15 |
16 | Mongos
17 | ------
18 | var s = new ShardingTest( "auth1", 1 , 0 , 2 , {rs: true, noChunkSize : true});
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/index.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | MongoError: require('./lib/error')
3 | , Server: require('./lib/topologies/server')
4 | , ReplSet: require('./lib/topologies/replset')
5 | , Mongos: require('./lib/topologies/mongos')
6 | , Logger: require('./lib/connection/logger')
7 | , Cursor: require('./lib/cursor')
8 | , ReadPreference: require('./lib/topologies/read_preference')
9 | , BSON: require('bson')
10 | // Raw operations
11 | , Query: require('./lib/connection/commands').Query
12 | // Auth mechanisms
13 | , MongoCR: require('./lib/auth/mongocr')
14 | , X509: require('./lib/auth/x509')
15 | , Plain: require('./lib/auth/plain')
16 | , GSSAPI: require('./lib/auth/gssapi')
17 | , ScramSHA1: require('./lib/auth/scram')
18 | }
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/lib/wireprotocol/shared.js:
--------------------------------------------------------------------------------
1 | var ReadPreference = require('../topologies/read_preference');
2 |
3 | var getReadPreference = function(cmd, options) {
4 | // Default to command version of the readPreference
5 | var readPreference = cmd.readPreference || new ReadPreference('primary');
6 | // If we have an option readPreference override the command one
7 | if(options.readPreference) {
8 | readPreference = options.readPreference;
9 | }
10 |
11 | if(typeof readPreference == 'string') {
12 | readPreference = new ReadPreference(readPreference);
13 | }
14 |
15 | if(!(readPreference instanceof ReadPreference)) {
16 | throw new MongoError('readPreference must be a ReadPreference instance');
17 | }
18 |
19 | return readPreference;
20 | }
21 |
22 | module.exports = {
23 | getReadPreference: getReadPreference
24 | }
25 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bson",
3 | "description": "A bson parser for node.js and the browser",
4 | "keywords": [
5 | "mongodb",
6 | "bson",
7 | "parser"
8 | ],
9 | "author": "Christian Amor Kvalheim ",
10 | "main": "./browser_build/bson.js",
11 | "license": "Apache-2.0",
12 | "moduleType": [
13 | "globals",
14 | "node"
15 | ],
16 | "ignore": [
17 | "**/.*",
18 | "alternate_parsers",
19 | "benchmarks",
20 | "bower_components",
21 | "node_modules",
22 | "test",
23 | "tools"
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/browser_build/package.json:
--------------------------------------------------------------------------------
1 | { "name" : "bson"
2 | , "description" : "A bson parser for node.js and the browser"
3 | , "main": "../lib/bson/bson"
4 | , "directories" : { "lib" : "../lib/bson" }
5 | , "engines" : { "node" : ">=0.6.0" }
6 | , "licenses" : [ { "type" : "Apache License, Version 2.0"
7 | , "url" : "http://www.apache.org/licenses/LICENSE-2.0" } ]
8 | }
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON Code type.
3 | *
4 | * @class
5 | * @param {(string|function)} code a string or function.
6 | * @param {Object} [scope] an optional scope for the function.
7 | * @return {Code}
8 | */
9 | var Code = function Code(code, scope) {
10 | if(!(this instanceof Code)) return new Code(code, scope);
11 | this._bsontype = 'Code';
12 | this.code = code;
13 | this.scope = scope == null ? {} : scope;
14 | };
15 |
16 | /**
17 | * @ignore
18 | */
19 | Code.prototype.toJSON = function() {
20 | return {scope:this.scope, code:this.code};
21 | }
22 |
23 | module.exports = Code;
24 | module.exports.Code = Code;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/db_ref.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON DBRef type.
3 | *
4 | * @class
5 | * @param {string} namespace the collection name.
6 | * @param {ObjectID} oid the reference ObjectID.
7 | * @param {string} [db] optional db name, if omitted the reference is local to the current db.
8 | * @return {DBRef}
9 | */
10 | function DBRef(namespace, oid, db) {
11 | if(!(this instanceof DBRef)) return new DBRef(namespace, oid, db);
12 |
13 | this._bsontype = 'DBRef';
14 | this.namespace = namespace;
15 | this.oid = oid;
16 | this.db = db;
17 | };
18 |
19 | /**
20 | * @ignore
21 | * @api private
22 | */
23 | DBRef.prototype.toJSON = function() {
24 | return {
25 | '$ref':this.namespace,
26 | '$id':this.oid,
27 | '$db':this.db == null ? '' : this.db
28 | };
29 | }
30 |
31 | module.exports = DBRef;
32 | module.exports.DBRef = DBRef;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/double.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON Double type.
3 | *
4 | * @class
5 | * @param {number} value the number we want to represent as a double.
6 | * @return {Double}
7 | */
8 | function Double(value) {
9 | if(!(this instanceof Double)) return new Double(value);
10 |
11 | this._bsontype = 'Double';
12 | this.value = value;
13 | }
14 |
15 | /**
16 | * Access the number value.
17 | *
18 | * @method
19 | * @return {number} returns the wrapped double number.
20 | */
21 | Double.prototype.valueOf = function() {
22 | return this.value;
23 | };
24 |
25 | /**
26 | * @ignore
27 | */
28 | Double.prototype.toJSON = function() {
29 | return this.value;
30 | }
31 |
32 | module.exports = Double;
33 | module.exports.Double = Double;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/max_key.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON MaxKey type.
3 | *
4 | * @class
5 | * @return {MaxKey} A MaxKey instance
6 | */
7 | function MaxKey() {
8 | if(!(this instanceof MaxKey)) return new MaxKey();
9 |
10 | this._bsontype = 'MaxKey';
11 | }
12 |
13 | module.exports = MaxKey;
14 | module.exports.MaxKey = MaxKey;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/min_key.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON MinKey type.
3 | *
4 | * @class
5 | * @return {MinKey} A MinKey instance
6 | */
7 | function MinKey() {
8 | if(!(this instanceof MinKey)) return new MinKey();
9 |
10 | this._bsontype = 'MinKey';
11 | }
12 |
13 | module.exports = MinKey;
14 | module.exports.MinKey = MinKey;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/regexp.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON RegExp type.
3 | *
4 | * @class
5 | * @return {BSONRegExp} A MinKey instance
6 | */
7 | function BSONRegExp(pattern, options) {
8 | if(!(this instanceof BSONRegExp)) return new BSONRegExp();
9 |
10 | // Execute
11 | this._bsontype = 'BSONRegExp';
12 | this.pattern = pattern;
13 | this.options = options;
14 |
15 | // Validate options
16 | for(var i = 0; i < options.length; i++) {
17 | if(!(this.options[i] == 'i'
18 | || this.options[i] == 'm'
19 | || this.options[i] == 'x'
20 | || this.options[i] == 'l'
21 | || this.options[i] == 's'
22 | || this.options[i] == 'u'
23 | )) {
24 | throw new Error('the regular expression options [' + this.options[i] + "] is not supported");
25 | }
26 | }
27 | }
28 |
29 | module.exports = BSONRegExp;
30 | module.exports.BSONRegExp = BSONRegExp;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/tools/gleak.js:
--------------------------------------------------------------------------------
1 |
2 | var gleak = require('gleak')();
3 | gleak.ignore('AssertionError');
4 | gleak.ignore('testFullSpec_param_found');
5 | gleak.ignore('events');
6 | gleak.ignore('Uint8Array');
7 | gleak.ignore('Uint8ClampedArray');
8 | gleak.ignore('TAP_Global_Harness');
9 | gleak.ignore('setImmediate');
10 | gleak.ignore('clearImmediate');
11 |
12 | gleak.ignore('DTRACE_NET_SERVER_CONNECTION');
13 | gleak.ignore('DTRACE_NET_STREAM_END');
14 | gleak.ignore('DTRACE_NET_SOCKET_READ');
15 | gleak.ignore('DTRACE_NET_SOCKET_WRITE');
16 | gleak.ignore('DTRACE_HTTP_SERVER_REQUEST');
17 | gleak.ignore('DTRACE_HTTP_SERVER_RESPONSE');
18 | gleak.ignore('DTRACE_HTTP_CLIENT_REQUEST');
19 | gleak.ignore('DTRACE_HTTP_CLIENT_RESPONSE');
20 |
21 | module.exports = gleak;
22 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/.npmignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 |
6 | # Runtime data
7 | pids
8 | *.pid
9 | *.seed
10 |
11 | # Directory for instrumented libs generated by jscoverage/JSCover
12 | lib-cov
13 |
14 | # Coverage directory used by tools like istanbul
15 | coverage
16 |
17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18 | .grunt
19 |
20 | # node-waf configuration
21 | .lock-wscript
22 |
23 | # Compiled binary addons (http://nodejs.org/api/addons.html)
24 | build/Release
25 |
26 | # Dependency directory
27 | node_modules
28 |
29 | # Optional npm cache directory
30 | .npm
31 |
32 | # Optional REPL history
33 | .node_repl_history
34 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | - "0.12"
5 | - "4.2.1"
6 | sudo: false
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/README.md:
--------------------------------------------------------------------------------
1 | # require_optional
2 | Work around the problem that we do not have a optionalPeerDependencies concept in node.js making it a hassle to optionally include native modules
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/.bin/semver:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | basedir=`dirname "$0"`
3 |
4 | case `uname` in
5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6 | esac
7 |
8 | if [ -x "$basedir/node" ]; then
9 | "$basedir/node" "$basedir/../semver/bin/semver" "$@"
10 | ret=$?
11 | else
12 | node "$basedir/../semver/bin/semver" "$@"
13 | ret=$?
14 | fi
15 | exit $ret
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/.bin/semver.cmd:
--------------------------------------------------------------------------------
1 | @IF EXIST "%~dp0\node.exe" (
2 | "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
3 | ) ELSE (
4 | @SETLOCAL
5 | @SET PATHEXT=%PATHEXT:;.JS;=;%
6 | node "%~dp0\..\semver\bin\semver" %*
7 | )
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/resolve-from/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var path = require('path');
3 | var Module = require('module');
4 |
5 | module.exports = function (fromDir, moduleId) {
6 | if (typeof fromDir !== 'string' || typeof moduleId !== 'string') {
7 | throw new TypeError('Expected `fromDir` and `moduleId` to be a string');
8 | }
9 |
10 | fromDir = path.resolve(fromDir);
11 |
12 | var fromFile = path.join(fromDir, 'noop.js');
13 |
14 | try {
15 | return Module._resolveFilename(moduleId, {
16 | id: fromFile,
17 | filename: fromFile,
18 | paths: Module._nodeModulePaths(fromDir)
19 | });
20 | } catch (err) {
21 | return null;
22 | }
23 | };
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/semver/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | coverage/
3 | .nyc_output/
4 | nyc_output/
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/semver/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - '0.10'
4 | - '0.12'
5 | - 'iojs'
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/semver/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/semver/range.bnf:
--------------------------------------------------------------------------------
1 | range-set ::= range ( logical-or range ) *
2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) *
3 | range ::= hyphen | simple ( ' ' simple ) * | ''
4 | hyphen ::= partial ' - ' partial
5 | simple ::= primitive | partial | tilde | caret
6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
8 | xr ::= 'x' | 'X' | '*' | nr
9 | nr ::= '0' | ['1'-'9']['0'-'9']+
10 | tilde ::= '~' partial
11 | caret ::= '^' partial
12 | qualifier ::= ( '-' pre )? ( '+' build )?
13 | pre ::= parts
14 | build ::= parts
15 | parts ::= part ( '.' part ) *
16 | part ::= nr | [-0-9A-Za-z]+
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/node_modules/semver/test/clean.js:
--------------------------------------------------------------------------------
1 | var tap = require('tap');
2 | var test = tap.test;
3 | var semver = require('../semver.js');
4 | var clean = semver.clean;
5 |
6 | test('\nclean tests', function(t) {
7 | // [range, version]
8 | // Version should be detectable despite extra characters
9 | [
10 | ['1.2.3', '1.2.3'],
11 | [' 1.2.3 ', '1.2.3'],
12 | [' 1.2.3-4 ', '1.2.3-4'],
13 | [' 1.2.3-pre ', '1.2.3-pre'],
14 | [' =v1.2.3 ', '1.2.3'],
15 | ['v1.2.3', '1.2.3'],
16 | [' v1.2.3 ', '1.2.3'],
17 | ['\t1.2.3', '1.2.3'],
18 | ['>1.2.3', null],
19 | ['~1.2.3', null],
20 | ['<=1.2.3', null],
21 | ['1.2.x', null]
22 | ].forEach(function(tuple) {
23 | var range = tuple[0];
24 | var version = tuple[1];
25 | var msg = 'clean(' + range + ') = ' + version;
26 | t.equal(clean(range), version, msg);
27 | });
28 | t.end();
29 | });
30 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/.npmignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/
3 | examples/
4 | fs.js
5 | zlib.js
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_duplex.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/core-util-is/README.md:
--------------------------------------------------------------------------------
1 | # core-util-is
2 |
3 | The `util.is*` functions introduced in Node v0.12.
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Array.isArray || function (arr) {
2 | return Object.prototype.toString.call(arr) == '[object Array]';
3 | };
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/README.md:
--------------------------------------------------------------------------------
1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core
2 |
3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
4 |
5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
6 |
7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_passthrough.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/readable.js:
--------------------------------------------------------------------------------
1 | exports = module.exports = require('./lib/_stream_readable.js');
2 | exports.Readable = exports;
3 | exports.Writable = require('./lib/_stream_writable.js');
4 | exports.Duplex = require('./lib/_stream_duplex.js');
5 | exports.Transform = require('./lib/_stream_transform.js');
6 | exports.PassThrough = require('./lib/_stream_passthrough.js');
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_transform.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongodb/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_writable.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | **.swp
3 | *.sw*
4 | *.orig
5 | .DS_Store
6 | node_modules/
7 | benchmarks/
8 | docs/
9 | test/
10 | Makefile
11 | CNAME
12 | index.html
13 | index.jade
14 | bin/
15 | karma.*.js
16 | format_deps.js
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.12"
4 | - "0.10"
5 | - "iojs"
6 | services:
7 | - mongodb
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/contRun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | make test
4 |
5 | ret=$?
6 |
7 | while [ $ret == 0 ]; do
8 | make test
9 | ret=$?
10 | done
11 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/aggregate/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "aggregate-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for aggregate example",
6 | "main": "aggregate.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/aggregate/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String,
14 | likes: [String]
15 | });
16 | mongoose.model('Person', PersonSchema);
17 | };
18 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/express/README.md:
--------------------------------------------------------------------------------
1 | Mongoose + Express examples
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/express/connection-sharing/README.md:
--------------------------------------------------------------------------------
1 |
2 | To run:
3 |
4 | - Execute `npm install` from this directory
5 | - Execute `node app.js`
6 | - Navigate to `localhost:8000`
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/express/connection-sharing/app.js:
--------------------------------------------------------------------------------
1 |
2 | var express = require('express')
3 | var mongoose = require('../../../lib')
4 |
5 | var uri = 'mongodb://localhost/mongoose-shared-connection';
6 | global.db = mongoose.createConnection(uri);
7 |
8 | var routes = require('./routes')
9 |
10 | var app = express();
11 | app.get('/', routes.home);
12 | app.get('/insert', routes.insert);
13 | app.get('/name', routes.modelName);
14 |
15 | app.listen(8000, function () {
16 | console.log('listening on http://localhost:8000');
17 | })
18 |
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/express/connection-sharing/modelA.js:
--------------------------------------------------------------------------------
1 |
2 | var Schema = require('../../../lib').Schema;
3 | var mySchema = Schema({ name: String });
4 |
5 | // db is global
6 | module.exports = db.model('MyModel', mySchema);
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/express/connection-sharing/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "connection-sharing",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "ERROR: No README.md file found!",
6 | "main": "app.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "express": "3.1.1" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/express/connection-sharing/routes.js:
--------------------------------------------------------------------------------
1 |
2 | var model = require('./modelA')
3 |
4 | exports.home = function (req, res, next) {
5 | model.find(function (err, docs) {
6 | if (err) return next(err);
7 | res.send(docs);
8 | })
9 | }
10 |
11 | exports.modelName = function (req, res) {
12 | res.send('my model name is ' + model.modelName);
13 | }
14 |
15 | exports.insert = function (req, res, next) {
16 | model.create({ name: 'inserting ' + Date.now() }, function (err, doc) {
17 | if (err) return next(err);
18 | res.send(doc);
19 | })
20 | }
21 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/geospatial/geoJSONSchema.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | // NOTE : This object must conform *precisely* to the geoJSON specification
10 | // you cannot embed a geoJSON doc inside a model or anything like that- IT
11 | // MUST BE VANILLA
12 | var LocationObject = new Schema({
13 | loc: {
14 | type: { type: String },
15 | coordinates: []
16 | }
17 | });
18 | // define the index
19 | LocationObject.index({ loc : '2dsphere' });
20 |
21 | mongoose.model('Location', LocationObject);
22 | };
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/geospatial/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "geospatial-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for geospatial example",
6 | "main": "geospatial.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/geospatial/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String,
14 | likes: [String],
15 | // define the geospatial field
16 | loc: { type : [Number], index: '2d' }
17 | });
18 |
19 | // define a method to find the closest person
20 | PersonSchema.methods.findClosest = function(cb) {
21 | return this.model('Person').find({
22 | loc : { $nearSphere : this.loc },
23 | name : { $ne : this.name }
24 | }).limit(1).exec(cb);
25 | };
26 |
27 | mongoose.model('Person', PersonSchema);
28 | };
29 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/globalschemas/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/lean/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lean-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for lean example",
6 | "main": "lean.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/lean/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String,
14 | likes: [String]
15 | });
16 | mongoose.model('Person', PersonSchema);
17 | };
18 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/mapreduce/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "map-reduce-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for map reduce example",
6 | "main": "mapreduce.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/mapreduce/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date,
13 | gender: String
14 | });
15 | mongoose.model('Person', PersonSchema);
16 | };
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/promises/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "promise-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for promise example",
6 | "main": "promise.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/promises/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/querybuilder/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "query-builder-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for query builder example",
6 | "main": "querybuilder.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/querybuilder/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/replicasets/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "replica-set-example",
3 | "private": "true",
4 | "version": "0.0.0",
5 | "description": "deps for replica set example",
6 | "main": "querybuilder.js",
7 | "scripts": {
8 | "test": "echo \"Error: no test specified\" && exit 1"
9 | },
10 | "dependencies": { "async": "*" },
11 | "repository": "",
12 | "author": "",
13 | "license": "BSD"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/replicasets/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 | mongoose.model('Person', PersonSchema);
15 | };
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/schema/storing-schemas-as-json/index.js:
--------------------------------------------------------------------------------
1 |
2 | // modules
3 | var mongoose = require('../../../lib')
4 | var Schema = mongoose.Schema;
5 |
6 | // parse json
7 | var raw = require('./schema.json');
8 |
9 | // create a schema
10 | var timeSignatureSchema = Schema(raw);
11 |
12 | // compile the model
13 | var TimeSignature = mongoose.model('TimeSignatures', timeSignatureSchema);
14 |
15 | // create a TimeSignature document
16 | var threeFour = new TimeSignature({
17 | count: 3
18 | , unit: 4
19 | , description: "3/4"
20 | , additive: false
21 | , created: new Date
22 | , links: ["http://en.wikipedia.org/wiki/Time_signature"]
23 | , user_id: "518d31a0ef32bbfa853a9814"
24 | });
25 |
26 | // print its description
27 | console.log(threeFour)
28 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/schema/storing-schemas-as-json/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "count": "number",
3 | "unit": "number",
4 | "description": "string",
5 | "links": ["string"],
6 | "created": "date",
7 | "additive": "boolean",
8 | "user_id": "ObjectId"
9 | }
10 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/examples/statics/person.js:
--------------------------------------------------------------------------------
1 |
2 | // import the necessary modules
3 | var mongoose = require('../../lib');
4 | var Schema = mongoose.Schema;
5 |
6 | // create an export function to encapsulate the model creation
7 | module.exports = function() {
8 | // define schema
9 | var PersonSchema = new Schema({
10 | name : String,
11 | age : Number,
12 | birthday : Date
13 | });
14 |
15 | // define a static
16 | PersonSchema.statics.findPersonByName = function (name, cb) {
17 | this.find({ name : new RegExp(name, 'i') }, cb);
18 | };
19 |
20 | mongoose.model('Person', PersonSchema);
21 | };
22 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/index.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Export lib/mongoose
4 | *
5 | */
6 |
7 | module.exports = require('./lib/');
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/connectionstate.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Connection states
4 | */
5 |
6 | var STATES = module.exports = exports = Object.create(null);
7 |
8 | var disconnected = 'disconnected';
9 | var connected = 'connected';
10 | var connecting = 'connecting';
11 | var disconnecting = 'disconnecting';
12 | var unauthorized = 'unauthorized';
13 | var uninitialized = 'uninitialized';
14 |
15 | STATES[0] = disconnected;
16 | STATES[1] = connected;
17 | STATES[2] = connecting;
18 | STATES[3] = disconnecting;
19 | STATES[4] = unauthorized;
20 | STATES[99] = uninitialized;
21 |
22 | STATES[disconnected] = 0;
23 | STATES[connected] = 1;
24 | STATES[connecting] = 2;
25 | STATES[disconnecting] = 3;
26 | STATES[unauthorized] = 4;
27 | STATES[uninitialized] = 99;
28 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/document_provider.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /*!
4 | * Module dependencies.
5 | */
6 | var Document = require('./document.js');
7 | var BrowserDocument = require('./browserDocument.js');
8 |
9 | /**
10 | * Returns the Document constructor for the current context
11 | *
12 | * @api private
13 | */
14 | module.exports = function() {
15 | if (typeof window !== 'undefined' && typeof document !== 'undefined' && document === window.document) {
16 | return BrowserDocument;
17 | } else {
18 | return Document;
19 | }
20 | };
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/SPEC.md:
--------------------------------------------------------------------------------
1 |
2 | # Driver Spec
3 |
4 | TODO
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/browser/ReadPreference.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ignore
3 | */
4 |
5 | module.exports = function() {};
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/browser/binary.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var Binary = require('bson').Binary;
7 |
8 | /*!
9 | * Module exports.
10 | */
11 |
12 | module.exports = exports = Binary;
13 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/browser/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module exports.
3 | */
4 |
5 | exports.Binary = require('./binary');
6 | exports.ObjectId = require('./objectid');
7 | exports.ReadPreference = require('./ReadPreference');
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/browser/objectid.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId
4 | * @constructor NodeMongoDbObjectId
5 | * @see ObjectId
6 | */
7 |
8 | var ObjectId = require('bson').ObjectID;
9 |
10 | /*!
11 | * ignore
12 | */
13 |
14 | module.exports = exports = ObjectId;
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * ignore
3 | */
4 |
5 | var driver;
6 |
7 | if (typeof window === 'undefined') {
8 | driver = require('./' +
9 | (global.MONGOOSE_DRIVER_PATH || 'node-mongodb-native'));
10 | } else {
11 | driver = require('./browser');
12 | }
13 |
14 | /*!
15 | * ignore
16 | */
17 |
18 | module.exports = driver;
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var Binary = require('mongodb').Binary;
7 |
8 | module.exports = exports = Binary;
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module exports.
3 | */
4 |
5 | exports.Binary = require('./binary');
6 | exports.ObjectId = require('./objectid');
7 | exports.ReadPreference = require('./ReadPreference');
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId
4 | * @constructor NodeMongoDbObjectId
5 | * @see ObjectId
6 | */
7 |
8 | var ObjectId = require('mongodb').ObjectId;
9 |
10 | /*!
11 | * ignore
12 | */
13 |
14 | module.exports = exports = ObjectId;
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/error/browserMissingSchema.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /*!
9 | * MissingSchema Error constructor.
10 | *
11 | * @inherits MongooseError
12 | */
13 |
14 | function MissingSchemaError (name) {
15 | var msg = 'Schema hasn\'t been registered for document.\n'
16 | + 'Use mongoose.Document(name, schema)';
17 | MongooseError.call(this, msg);
18 | Error.captureStackTrace && Error.captureStackTrace(this, arguments.callee);
19 | this.name = 'MissingSchemaError';
20 | }
21 |
22 | /*!
23 | * Inherits from MongooseError.
24 | */
25 |
26 | MissingSchemaError.prototype = Object.create(MongooseError.prototype);
27 | MissingSchemaError.prototype.constructor = MongooseError;
28 |
29 | /*!
30 | * exports
31 | */
32 |
33 | module.exports = MissingSchemaError;
34 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/error/cast.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Module dependencies.
3 | */
4 |
5 | var MongooseError = require('../error.js');
6 |
7 | /**
8 | * Casting Error constructor.
9 | *
10 | * @param {String} type
11 | * @param {String} value
12 | * @inherits MongooseError
13 | * @api private
14 | */
15 |
16 | function CastError (type, value, path) {
17 | MongooseError.call(this, 'Cast to ' + type + ' failed for value "' + value + '" at path "' + path + '"');
18 | this.stack = new Error().stack;
19 | this.name = 'CastError';
20 | this.kind = type;
21 | this.value = value;
22 | this.path = path;
23 | };
24 |
25 | /*!
26 | * Inherits from MongooseError.
27 | */
28 |
29 | CastError.prototype = Object.create(MongooseError.prototype);
30 | CastError.prototype.constructor = MongooseError;
31 |
32 |
33 | /*!
34 | * exports
35 | */
36 |
37 | module.exports = CastError;
38 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/error/missingSchema.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /*!
9 | * MissingSchema Error constructor.
10 | *
11 | * @inherits MongooseError
12 | */
13 |
14 | function MissingSchemaError (name) {
15 | var msg = 'Schema hasn\'t been registered for model "' + name + '".\n'
16 | + 'Use mongoose.model(name, schema)';
17 | MongooseError.call(this, msg);
18 | Error.captureStackTrace && Error.captureStackTrace(this, arguments.callee);
19 | this.name = 'MissingSchemaError';
20 | }
21 |
22 | /*!
23 | * Inherits from MongooseError.
24 | */
25 |
26 | MissingSchemaError.prototype = Object.create(MongooseError.prototype);
27 | MissingSchemaError.prototype.constructor = MongooseError;
28 |
29 | /*!
30 | * exports
31 | */
32 |
33 | module.exports = MissingSchemaError;
34 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/error/overwriteModel.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /*!
9 | * OverwriteModel Error constructor.
10 | *
11 | * @inherits MongooseError
12 | */
13 |
14 | function OverwriteModelError (name) {
15 | MongooseError.call(this, 'Cannot overwrite `' + name + '` model once compiled.');
16 | Error.captureStackTrace && Error.captureStackTrace(this, arguments.callee);
17 | this.name = 'OverwriteModelError';
18 | };
19 |
20 | /*!
21 | * Inherits from MongooseError.
22 | */
23 |
24 | OverwriteModelError.prototype = Object.create(MongooseError.prototype);
25 | OverwriteModelError.prototype.constructor = MongooseError;
26 |
27 | /*!
28 | * exports
29 | */
30 |
31 | module.exports = OverwriteModelError;
32 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/error/version.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module dependencies.
4 | */
5 |
6 | var MongooseError = require('../error.js');
7 |
8 | /**
9 | * Version Error constructor.
10 | *
11 | * @inherits MongooseError
12 | * @api private
13 | */
14 |
15 | function VersionError () {
16 | MongooseError.call(this, 'No matching document found.');
17 | Error.captureStackTrace && Error.captureStackTrace(this, arguments.callee);
18 | this.name = 'VersionError';
19 | };
20 |
21 | /*!
22 | * Inherits from MongooseError.
23 | */
24 |
25 | VersionError.prototype = Object.create(MongooseError.prototype);
26 | VersionError.prototype.constructor = MongooseError;
27 |
28 | /*!
29 | * exports
30 | */
31 |
32 | module.exports = VersionError;
33 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/schema/index.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module exports.
4 | */
5 |
6 | exports.String = require('./string');
7 |
8 | exports.Number = require('./number');
9 |
10 | exports.Boolean = require('./boolean');
11 |
12 | exports.DocumentArray = require('./documentarray');
13 |
14 | exports.Array = require('./array');
15 |
16 | exports.Buffer = require('./buffer');
17 |
18 | exports.Date = require('./date');
19 |
20 | exports.ObjectId = require('./objectid');
21 |
22 | exports.Mixed = require('./mixed');
23 |
24 | // alias
25 |
26 | exports.Oid = exports.ObjectId;
27 | exports.Object = exports.Mixed;
28 | exports.Bool = exports.Boolean;
29 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/types/index.js:
--------------------------------------------------------------------------------
1 |
2 | /*!
3 | * Module exports.
4 | */
5 |
6 | exports.Array = require('./array');
7 | exports.Buffer = require('./buffer');
8 |
9 | exports.Document = // @deprecate
10 | exports.Embedded = require('./embedded');
11 |
12 | exports.DocumentArray = require('./documentarray');
13 | exports.ObjectId = require('./objectid');
14 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/lib/types/objectid.js:
--------------------------------------------------------------------------------
1 | /**
2 | * ObjectId type constructor
3 | *
4 | * ####Example
5 | *
6 | * var id = new mongoose.Types.ObjectId;
7 | *
8 | * @constructor ObjectId
9 | */
10 |
11 | var ObjectId = require('../drivers').ObjectId;
12 |
13 | module.exports = ObjectId;
14 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/async/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/async/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "async",
3 | "repo": "caolan/async",
4 | "description": "Higher-order functions and common patterns for asynchronous code",
5 | "version": "0.1.23",
6 | "keywords": [],
7 | "dependencies": {},
8 | "development": {},
9 | "main": "lib/async.js",
10 | "scripts": [ "lib/async.js" ]
11 | }
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.10 # development version of 0.8, may be unstable
4 | - 0.12
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/browser_build/package.json:
--------------------------------------------------------------------------------
1 | { "name" : "bson"
2 | , "description" : "A bson parser for node.js and the browser"
3 | , "main": "../lib/bson/bson"
4 | , "directories" : { "lib" : "../lib/bson" }
5 | , "engines" : { "node" : ">=0.6.0" }
6 | , "licenses" : [ { "type" : "Apache License, Version 2.0"
7 | , "url" : "http://www.apache.org/licenses/LICENSE-2.0" } ]
8 | }
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/lib/bson/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON Code type.
3 | *
4 | * @class
5 | * @param {(string|function)} code a string or function.
6 | * @param {Object} [scope] an optional scope for the function.
7 | * @return {Code}
8 | */
9 | var Code = function Code(code, scope) {
10 | if(!(this instanceof Code)) return new Code(code, scope);
11 | this._bsontype = 'Code';
12 | this.code = code;
13 | this.scope = scope == null ? {} : scope;
14 | };
15 |
16 | /**
17 | * @ignore
18 | */
19 | Code.prototype.toJSON = function() {
20 | return {scope:this.scope, code:this.code};
21 | }
22 |
23 | module.exports = Code;
24 | module.exports.Code = Code;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/lib/bson/db_ref.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON DBRef type.
3 | *
4 | * @class
5 | * @param {string} namespace the collection name.
6 | * @param {ObjectID} oid the reference ObjectID.
7 | * @param {string} [db] optional db name, if omitted the reference is local to the current db.
8 | * @return {DBRef}
9 | */
10 | function DBRef(namespace, oid, db) {
11 | if(!(this instanceof DBRef)) return new DBRef(namespace, oid, db);
12 |
13 | this._bsontype = 'DBRef';
14 | this.namespace = namespace;
15 | this.oid = oid;
16 | this.db = db;
17 | };
18 |
19 | /**
20 | * @ignore
21 | * @api private
22 | */
23 | DBRef.prototype.toJSON = function() {
24 | return {
25 | '$ref':this.namespace,
26 | '$id':this.oid,
27 | '$db':this.db == null ? '' : this.db
28 | };
29 | }
30 |
31 | module.exports = DBRef;
32 | module.exports.DBRef = DBRef;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/lib/bson/double.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON Double type.
3 | *
4 | * @class
5 | * @param {number} value the number we want to represent as a double.
6 | * @return {Double}
7 | */
8 | function Double(value) {
9 | if(!(this instanceof Double)) return new Double(value);
10 |
11 | this._bsontype = 'Double';
12 | this.value = value;
13 | }
14 |
15 | /**
16 | * Access the number value.
17 | *
18 | * @method
19 | * @return {number} returns the wrapped double number.
20 | */
21 | Double.prototype.valueOf = function() {
22 | return this.value;
23 | };
24 |
25 | /**
26 | * @ignore
27 | */
28 | Double.prototype.toJSON = function() {
29 | return this.value;
30 | }
31 |
32 | module.exports = Double;
33 | module.exports.Double = Double;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/lib/bson/max_key.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON MaxKey type.
3 | *
4 | * @class
5 | * @return {MaxKey} A MaxKey instance
6 | */
7 | function MaxKey() {
8 | if(!(this instanceof MaxKey)) return new MaxKey();
9 |
10 | this._bsontype = 'MaxKey';
11 | }
12 |
13 | module.exports = MaxKey;
14 | module.exports.MaxKey = MaxKey;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/lib/bson/min_key.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON MinKey type.
3 | *
4 | * @class
5 | * @return {MinKey} A MinKey instance
6 | */
7 | function MinKey() {
8 | if(!(this instanceof MinKey)) return new MinKey();
9 |
10 | this._bsontype = 'MinKey';
11 | }
12 |
13 | module.exports = MinKey;
14 | module.exports.MinKey = MinKey;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/.npmignore:
--------------------------------------------------------------------------------
1 | .travis.yml
2 | appveyor.yml
3 | test.bat
4 | build/
5 | test/
6 | .vagrant/
7 |
8 | # Users Environment Variables
9 | .lock-wscript
10 |
11 | .DS_Store
12 | *.swp
13 | *.seed
14 | .project
15 | .settings
16 | ./data
17 | node_modules/
18 |
19 | # Logs
20 | logs
21 | *.log
22 |
23 | # Runtime data
24 | pids
25 | *.pid
26 | *.seed
27 |
28 | # Directory for instrumented libs generated by jscoverage/JSCover
29 | lib-cov
30 |
31 | # Coverage directory used by tools like istanbul
32 | coverage
33 |
34 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
35 | .grunt
36 |
37 | # Compiled binary addons (http://nodejs.org/api/addons.html)
38 | build/Release
39 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/Makefile:
--------------------------------------------------------------------------------
1 | NODE = node
2 | NPM = npm
3 | NODEUNIT = node_modules/nodeunit/bin/nodeunit
4 |
5 | all: clean node_gyp
6 |
7 | test: clean node_gyp
8 | npm test
9 |
10 | node_gyp: clean
11 | node-gyp configure build
12 |
13 | clean:
14 | node-gyp clean
15 |
16 | .PHONY: all
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/binding.gyp:
--------------------------------------------------------------------------------
1 | {
2 | 'targets': [
3 | {
4 | 'win_delay_load_hook': 'true',
5 | 'target_name': 'bson',
6 | 'sources': [ 'ext/bson.cc' ],
7 | 'cflags!': [ '-fno-exceptions' ],
8 | 'cflags_cc!': [ '-fno-exceptions' ],
9 | 'include_dirs': [ '
9 |
10 | Options:
11 |
12 | -h, --help output usage information
13 | -V, --version output the version number
14 | ```
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/nan/tools/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "1to2",
3 | "version": "1.0.0",
4 | "description": "NAN 1 -> 2 Migration Script",
5 | "main": "1to2.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "git://github.com/nodejs/nan.git"
9 | },
10 | "contributors": [
11 | "Benjamin Byholm (https://github.com/kkoopa/)",
12 | "Mathias Küsel (https://github.com/mathiask88/)"
13 | ],
14 | "dependencies": {
15 | "glob": "~5.0.10",
16 | "commander": "~2.8.1"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/bson/tools/gleak.js:
--------------------------------------------------------------------------------
1 |
2 | var gleak = require('gleak')();
3 | gleak.ignore('AssertionError');
4 | gleak.ignore('testFullSpec_param_found');
5 | gleak.ignore('events');
6 | gleak.ignore('Uint8Array');
7 | gleak.ignore('Uint8ClampedArray');
8 | gleak.ignore('TAP_Global_Harness');
9 | gleak.ignore('setImmediate');
10 | gleak.ignore('clearImmediate');
11 |
12 | gleak.ignore('DTRACE_NET_SERVER_CONNECTION');
13 | gleak.ignore('DTRACE_NET_STREAM_END');
14 | gleak.ignore('DTRACE_NET_SOCKET_READ');
15 | gleak.ignore('DTRACE_NET_SOCKET_WRITE');
16 | gleak.ignore('DTRACE_HTTP_SERVER_REQUEST');
17 | gleak.ignore('DTRACE_HTTP_SERVER_RESPONSE');
18 | gleak.ignore('DTRACE_HTTP_CLIENT_REQUEST');
19 | gleak.ignore('DTRACE_HTTP_CLIENT_RESPONSE');
20 |
21 | module.exports = gleak;
22 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/hooks-fixed/.npmignore:
--------------------------------------------------------------------------------
1 | **.swp
2 | node_modules
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/hooks-fixed/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | @NODE_ENV=test ./node_modules/expresso/bin/expresso \
3 | $(TESTFLAGS) \
4 | ./test.js
5 |
6 | test-cov:
7 | @TESTFLAGS=--cov $(MAKE) test
8 |
9 | .PHONY: test test-cov
10 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/kareem/.npmignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 |
5 | # Runtime data
6 | pids
7 | *.pid
8 | *.seed
9 |
10 | # Directory for instrumented libs generated by jscoverage/JSCover
11 | lib-cov
12 |
13 | # Coverage directory used by tools like istanbul
14 | coverage
15 |
16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17 | .grunt
18 |
19 | # Compiled binary addons (http://nodejs.org/api/addons.html)
20 | build/Release
21 |
22 | # Dependency directory
23 | # Commenting this out is preferred by some people, see
24 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25 | node_modules
26 |
27 | # Users Environment Variables
28 | .lock-wscript
29 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/kareem/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.12"
4 | - "0.10"
5 | - "iojs"
6 | script: "npm run-script test-travis"
7 | after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/kareem/Makefile:
--------------------------------------------------------------------------------
1 | docs:
2 | node ./docs.js
3 |
4 | coverage:
5 | ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec ./test/*
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/kareem/gulpfile.js:
--------------------------------------------------------------------------------
1 | var gulp = require('gulp');
2 | var mocha = require('gulp-mocha');
3 | var config = require('./package.json');
4 | var jscs = require('gulp-jscs');
5 |
6 | gulp.task('mocha', function() {
7 | return gulp.src('./test/*').
8 | pipe(mocha({ reporter: 'dot' }));
9 | });
10 |
11 | gulp.task('jscs', function() {
12 | return gulp.src('./index.js').
13 | pipe(jscs(config.jscsConfig));
14 | });
15 |
16 | gulp.task('watch', function() {
17 | gulp.watch('./index.js', ['jscs', 'mocha']);
18 | });
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.10
4 | - 0.12
5 | sudo: false
6 | env:
7 | - MONGODB_VERSION=2.2.x
8 | - MONGODB_VERSION=2.4.x
9 | - MONGODB_VERSION=2.6.x
10 | - MONGODB_VERSION=3.0.x
11 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/Makefile:
--------------------------------------------------------------------------------
1 | NODE = node
2 | NPM = npm
3 | JSDOC = jsdoc
4 | name = all
5 |
6 | generate_docs:
7 | # cp -R ./HISTORY.md ./docs/content/meta/release-notes.md
8 | cp -R ./docs/history-header.md ./docs/content/meta/release-notes.md
9 | more ./HISTORY.md >> ./docs/content/meta/release-notes.md
10 | pandoc docs/layouts/partials/welcome.md -o docs/layouts/partials/welcome.html
11 | hugo -s docs/ -d ../public
12 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api
13 | cp -R ./public/api/scripts ./public/.
14 | cp -R ./public/api/styles ./public/.
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/.travis.yml:
--------------------------------------------------------------------------------
1 | os: linux
2 | language: node_js
3 | node_js:
4 | - node
5 | - '0.10'
6 | - iojs
7 | sudo: false
8 | env:
9 | - MONGODB_VERSION=2.4.x
10 | - MONGODB_VERSION=2.6.x
11 | - MONGODB_VERSION=3.0.x
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/Makefile:
--------------------------------------------------------------------------------
1 | NODE = node
2 | NPM = npm
3 | JSDOC = jsdoc
4 | name = all
5 |
6 | generate_docs:
7 | cp -R ./docs/history-header.md ./docs/content/meta/release-notes.md
8 | more ./HISTORY.md >> ./docs/content/meta/release-notes.md
9 | hugo -s docs/ -d ../public
10 | $(JSDOC) -c conf.json -t docs/jsdoc-template/ -d ./public/api
11 | cp -R ./public/api/scripts ./public/.
12 | cp -R ./public/api/styles ./public/.
13 |
14 | .PHONY: total
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/TESTING.md:
--------------------------------------------------------------------------------
1 | Testing setup
2 | =============
3 |
4 | Single Server
5 | -------------
6 | mongod --dbpath=./db
7 |
8 | Replicaset
9 | ----------
10 | mongo --nodb
11 | var x = new ReplSetTest({"useHostName":"false", "nodes" : {node0 : {}, node1 : {}, node2 : {}}})
12 | x.startSet();
13 | var config = x.getReplSetConfig()
14 | x.initiate(config);
15 |
16 | Mongos
17 | ------
18 | var s = new ShardingTest( "auth1", 1 , 0 , 2 , {rs: true, noChunkSize : true});
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/index.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | MongoError: require('./lib/error')
3 | , Server: require('./lib/topologies/server')
4 | , ReplSet: require('./lib/topologies/replset')
5 | , Mongos: require('./lib/topologies/mongos')
6 | , Logger: require('./lib/connection/logger')
7 | , Cursor: require('./lib/cursor')
8 | , ReadPreference: require('./lib/topologies/read_preference')
9 | , BSON: require('bson')
10 | // Raw operations
11 | , Query: require('./lib/connection/commands').Query
12 | // Auth mechanisms
13 | , MongoCR: require('./lib/auth/mongocr')
14 | , X509: require('./lib/auth/x509')
15 | , Plain: require('./lib/auth/plain')
16 | , GSSAPI: require('./lib/auth/gssapi')
17 | }
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bson",
3 | "description": "A bson parser for node.js and the browser",
4 | "keywords": [
5 | "mongodb",
6 | "bson",
7 | "parser"
8 | ],
9 | "author": "Christian Amor Kvalheim ",
10 | "main": "./browser_build/bson.js",
11 | "license": "Apache-2.0",
12 | "moduleType": [
13 | "globals",
14 | "node"
15 | ],
16 | "ignore": [
17 | "**/.*",
18 | "alternate_parsers",
19 | "benchmarks",
20 | "bower_components",
21 | "node_modules",
22 | "test",
23 | "tools"
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/browser_build/package.json:
--------------------------------------------------------------------------------
1 | { "name" : "bson"
2 | , "description" : "A bson parser for node.js and the browser"
3 | , "main": "../lib/bson/bson"
4 | , "directories" : { "lib" : "../lib/bson" }
5 | , "engines" : { "node" : ">=0.6.0" }
6 | , "licenses" : [ { "type" : "Apache License, Version 2.0"
7 | , "url" : "http://www.apache.org/licenses/LICENSE-2.0" } ]
8 | }
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON Code type.
3 | *
4 | * @class
5 | * @param {(string|function)} code a string or function.
6 | * @param {Object} [scope] an optional scope for the function.
7 | * @return {Code}
8 | */
9 | var Code = function Code(code, scope) {
10 | if(!(this instanceof Code)) return new Code(code, scope);
11 | this._bsontype = 'Code';
12 | this.code = code;
13 | this.scope = scope == null ? {} : scope;
14 | };
15 |
16 | /**
17 | * @ignore
18 | */
19 | Code.prototype.toJSON = function() {
20 | return {scope:this.scope, code:this.code};
21 | }
22 |
23 | module.exports = Code;
24 | module.exports.Code = Code;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/db_ref.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON DBRef type.
3 | *
4 | * @class
5 | * @param {string} namespace the collection name.
6 | * @param {ObjectID} oid the reference ObjectID.
7 | * @param {string} [db] optional db name, if omitted the reference is local to the current db.
8 | * @return {DBRef}
9 | */
10 | function DBRef(namespace, oid, db) {
11 | if(!(this instanceof DBRef)) return new DBRef(namespace, oid, db);
12 |
13 | this._bsontype = 'DBRef';
14 | this.namespace = namespace;
15 | this.oid = oid;
16 | this.db = db;
17 | };
18 |
19 | /**
20 | * @ignore
21 | * @api private
22 | */
23 | DBRef.prototype.toJSON = function() {
24 | return {
25 | '$ref':this.namespace,
26 | '$id':this.oid,
27 | '$db':this.db == null ? '' : this.db
28 | };
29 | }
30 |
31 | module.exports = DBRef;
32 | module.exports.DBRef = DBRef;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/double.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON Double type.
3 | *
4 | * @class
5 | * @param {number} value the number we want to represent as a double.
6 | * @return {Double}
7 | */
8 | function Double(value) {
9 | if(!(this instanceof Double)) return new Double(value);
10 |
11 | this._bsontype = 'Double';
12 | this.value = value;
13 | }
14 |
15 | /**
16 | * Access the number value.
17 | *
18 | * @method
19 | * @return {number} returns the wrapped double number.
20 | */
21 | Double.prototype.valueOf = function() {
22 | return this.value;
23 | };
24 |
25 | /**
26 | * @ignore
27 | */
28 | Double.prototype.toJSON = function() {
29 | return this.value;
30 | }
31 |
32 | module.exports = Double;
33 | module.exports.Double = Double;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/max_key.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON MaxKey type.
3 | *
4 | * @class
5 | * @return {MaxKey} A MaxKey instance
6 | */
7 | function MaxKey() {
8 | if(!(this instanceof MaxKey)) return new MaxKey();
9 |
10 | this._bsontype = 'MaxKey';
11 | }
12 |
13 | module.exports = MaxKey;
14 | module.exports.MaxKey = MaxKey;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/min_key.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A class representation of the BSON MinKey type.
3 | *
4 | * @class
5 | * @return {MinKey} A MinKey instance
6 | */
7 | function MinKey() {
8 | if(!(this instanceof MinKey)) return new MinKey();
9 |
10 | this._bsontype = 'MinKey';
11 | }
12 |
13 | module.exports = MinKey;
14 | module.exports.MinKey = MinKey;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/tools/gleak.js:
--------------------------------------------------------------------------------
1 |
2 | var gleak = require('gleak')();
3 | gleak.ignore('AssertionError');
4 | gleak.ignore('testFullSpec_param_found');
5 | gleak.ignore('events');
6 | gleak.ignore('Uint8Array');
7 | gleak.ignore('Uint8ClampedArray');
8 | gleak.ignore('TAP_Global_Harness');
9 | gleak.ignore('setImmediate');
10 | gleak.ignore('clearImmediate');
11 |
12 | gleak.ignore('DTRACE_NET_SERVER_CONNECTION');
13 | gleak.ignore('DTRACE_NET_STREAM_END');
14 | gleak.ignore('DTRACE_NET_SOCKET_READ');
15 | gleak.ignore('DTRACE_NET_SOCKET_WRITE');
16 | gleak.ignore('DTRACE_HTTP_SERVER_REQUEST');
17 | gleak.ignore('DTRACE_HTTP_SERVER_RESPONSE');
18 | gleak.ignore('DTRACE_HTTP_CLIENT_REQUEST');
19 | gleak.ignore('DTRACE_HTTP_CLIENT_RESPONSE');
20 |
21 | module.exports = gleak;
22 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 | - "0.12"
6 | - "iojs-v1.8.4"
7 | - "iojs-v2.5.0"
8 | - "iojs-v3.3.0"
9 | - "4"
10 | - "5"
11 | - "6"
12 | addons:
13 | apt:
14 | sources:
15 | - ubuntu-toolchain-r-test
16 | packages:
17 | - g++-4.8
18 | before_install:
19 | - '[ "${TRAVIS_NODE_VERSION}" != "0.8" ] || npm install -g npm@1.4.28'
20 | - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
21 | - $CXX --version
22 | - npm explore npm -g -- npm install node-gyp@latest
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.0.21 04-28-2016
2 | -----------------
3 | - Updated nan.h dependency to 2.3.x series for Node 6.0.
4 |
5 | 0.0.20 04-26-2016
6 | -----------------
7 | - Updated nan.h dependency to 2.2.x series.
8 | - Fixed minor compilation warnings due to v8 C++ ABI changes.
9 |
10 | 0.0.19 03-07-2016
11 | -----------------
12 | - Fix installation error (Issue #1).
13 | - Allow passing down off CANONICALIZE_HOST_NAME and SERVICE_REALM options.
14 |
15 | 0.0.18 01-19-2016
16 | -----------------
17 | - remove builderror.log.
18 |
19 | 0.0.17 10-30-2015
20 | -----------------
21 | - Reverted changes in package.json from 0.0.16.
22 |
23 | 0.0.16 10-26-2015
24 | -----------------
25 | - Removed (exit 0) on build to let correct failure happen.
26 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/index.js:
--------------------------------------------------------------------------------
1 | // Get the Kerberos library
2 | module.exports = require('./lib/kerberos');
3 | // Set up the auth processes
4 | module.exports['processes'] = {
5 | MongoAuthProcess: require('./lib/auth_processes/mongodb').MongoAuthProcess
6 | }
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/base64.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2006-2008 Apple Inc. All rights reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | **/
16 | #ifndef BASE64_H
17 | #define BASE64_H
18 |
19 | char *base64_encode(const unsigned char *value, int vlen);
20 | unsigned char *base64_decode(const char *value, int *rlen);
21 |
22 | #endif
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/sspi.js:
--------------------------------------------------------------------------------
1 | // Load the native SSPI classes
2 | var kerberos = require('../build/Release/kerberos')
3 | , Kerberos = kerberos.Kerberos
4 | , SecurityBuffer = require('./win32/wrappers/security_buffer').SecurityBuffer
5 | , SecurityBufferDescriptor = require('./win32/wrappers/security_buffer_descriptor').SecurityBufferDescriptor
6 | , SecurityCredentials = require('./win32/wrappers/security_credentials').SecurityCredentials
7 | , SecurityContext = require('./win32/wrappers/security_context').SecurityContext;
8 | var SSPI = function() {
9 | }
10 |
11 | exports.SSPI = SSPI;
12 | exports.SecurityBuffer = SecurityBuffer;
13 | exports.SecurityBufferDescriptor = SecurityBufferDescriptor;
14 | exports.SecurityCredentials = SecurityCredentials;
15 | exports.SecurityContext = SecurityContext;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/win32/base64.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2006-2008 Apple Inc. All rights reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | **/
16 |
17 | char *base64_encode(const unsigned char *value, int vlen);
18 | unsigned char *base64_decode(const char *value, int *rlen);
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/win32/worker.cc:
--------------------------------------------------------------------------------
1 | #include "worker.h"
2 |
3 | Worker::Worker() {
4 | }
5 |
6 | Worker::~Worker() {
7 | }
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/win32/wrappers/security_buffer.js:
--------------------------------------------------------------------------------
1 | var SecurityBufferNative = require('../../../build/Release/kerberos').SecurityBuffer;
2 |
3 | // Add some attributes
4 | SecurityBufferNative.VERSION = 0;
5 | SecurityBufferNative.EMPTY = 0;
6 | SecurityBufferNative.DATA = 1;
7 | SecurityBufferNative.TOKEN = 2;
8 | SecurityBufferNative.PADDING = 9;
9 | SecurityBufferNative.STREAM = 10;
10 |
11 | // Export the modified class
12 | exports.SecurityBuffer = SecurityBufferNative;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/win32/wrappers/security_buffer_descriptor.js:
--------------------------------------------------------------------------------
1 | var SecurityBufferDescriptorNative = require('../../../build/Release/kerberos').SecurityBufferDescriptor;
2 | // Export the modified class
3 | exports.SecurityBufferDescriptor = SecurityBufferDescriptorNative;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/win32/wrappers/security_context.js:
--------------------------------------------------------------------------------
1 | var SecurityContextNative = require('../../../build/Release/kerberos').SecurityContext;
2 | // Export the modified class
3 | exports.SecurityContext = SecurityContextNative;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/win32/wrappers/security_credentials.js:
--------------------------------------------------------------------------------
1 | var SecurityCredentialsNative = require('../../../build/Release/kerberos').SecurityCredentials;
2 |
3 | // Add simple kebros helper
4 | SecurityCredentialsNative.aquire_kerberos = function(username, password, domain, callback) {
5 | if(typeof password == 'function') {
6 | callback = password;
7 | password = null;
8 | } else if(typeof domain == 'function') {
9 | callback = domain;
10 | domain = null;
11 | }
12 |
13 | // We are going to use the async version
14 | if(typeof callback == 'function') {
15 | return SecurityCredentialsNative.acquire('Kerberos', username, password, domain, callback);
16 | } else {
17 | return SecurityCredentialsNative.aquireSync('Kerberos', username, password, domain);
18 | }
19 | }
20 |
21 | // Export the modified class
22 | exports.SecurityCredentials = SecurityCredentialsNative;
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/lib/worker.cc:
--------------------------------------------------------------------------------
1 | #include "worker.h"
2 |
3 | Worker::Worker() {
4 | }
5 |
6 | Worker::~Worker() {
7 | }
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/node_modules/nan/include_dirs.js:
--------------------------------------------------------------------------------
1 | console.log(require('path').relative('.', __dirname));
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/node_modules/nan/tools/README.md:
--------------------------------------------------------------------------------
1 | 1to2 naively converts source code files from NAN 1 to NAN 2. There will be erroneous conversions,
2 | false positives and missed opportunities. The input files are rewritten in place. Make sure that
3 | you have backups. You will have to manually review the changes afterwards and do some touchups.
4 |
5 | ```sh
6 | $ tools/1to2.js
7 |
8 | Usage: 1to2 [options]
9 |
10 | Options:
11 |
12 | -h, --help output usage information
13 | -V, --version output the version number
14 | ```
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/node_modules/nan/tools/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "1to2",
3 | "version": "1.0.0",
4 | "description": "NAN 1 -> 2 Migration Script",
5 | "main": "1to2.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "git://github.com/nodejs/nan.git"
9 | },
10 | "contributors": [
11 | "Benjamin Byholm (https://github.com/kkoopa/)",
12 | "Mathias Küsel (https://github.com/mathiask88/)"
13 | ],
14 | "dependencies": {
15 | "glob": "~5.0.10",
16 | "commander": "~2.8.1"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/.npmignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/
3 | examples/
4 | fs.js
5 | zlib.js
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_duplex.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/core-util-is/README.md:
--------------------------------------------------------------------------------
1 | # core-util-is
2 |
3 | The `util.is*` functions introduced in Node v0.12.
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inherits
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/inherits/test.js:
--------------------------------------------------------------------------------
1 | var inherits = require('./inherits.js')
2 | var assert = require('assert')
3 |
4 | function test(c) {
5 | assert(c.constructor === Child)
6 | assert(c.constructor.super_ === Parent)
7 | assert(Object.getPrototypeOf(c) === Child.prototype)
8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
9 | assert(c instanceof Child)
10 | assert(c instanceof Parent)
11 | }
12 |
13 | function Child() {
14 | Parent.call(this)
15 | test(this)
16 | }
17 |
18 | function Parent() {}
19 |
20 | inherits(Child, Parent)
21 |
22 | var c = new Child
23 | test(c)
24 |
25 | console.log('ok')
26 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Array.isArray || function (arr) {
2 | return Object.prototype.toString.call(arr) == '[object Array]';
3 | };
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/node_modules/string_decoder/README.md:
--------------------------------------------------------------------------------
1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core
2 |
3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
4 |
5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
6 |
7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_passthrough.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/readable.js:
--------------------------------------------------------------------------------
1 | exports = module.exports = require('./lib/_stream_readable.js');
2 | exports.Readable = exports;
3 | exports.Writable = require('./lib/_stream_writable.js');
4 | exports.Duplex = require('./lib/_stream_duplex.js');
5 | exports.Transform = require('./lib/_stream_transform.js');
6 | exports.PassThrough = require('./lib/_stream_passthrough.js');
7 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_transform.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_writable.js")
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mongodb/wercker.yml:
--------------------------------------------------------------------------------
1 | box: wercker/nodejs
2 | services:
3 | - wercker/mongodb@1.0.1
4 | # Build definition
5 | build:
6 | # The steps that will be executed on build
7 | steps:
8 | # A step that executes `npm install` command
9 | - npm-install
10 | # A step that executes `npm test` command
11 | - npm-test
12 |
13 | # A custom script step, name value is used in the UI
14 | # and the code value contains the command that get executed
15 | - script:
16 | name: echo nodejs information
17 | code: |
18 | echo "node version $(node -v) running"
19 | echo "npm version $(npm -v) running"
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpath/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpath/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpath/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.1.1 / 2012-12-21
3 | ==================
4 |
5 | * added; map support
6 |
7 | 0.1.0 / 2012-12-13
8 | ==================
9 |
10 | * added; set('array.property', val, object) support
11 | * added; get('array.property', object) support
12 |
13 | 0.0.1 / 2012-11-03
14 | ==================
15 |
16 | * initial release
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpath/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/mocha/bin/mocha -A $(T)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpath/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib');
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpromise/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 | .DS_Store
4 | .idea
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpromise/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - 0.10
5 | - 0.11
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpromise/test/promise.domain.test.js:
--------------------------------------------------------------------------------
1 | var Promise = require('../')
2 | , Domain = require('domain').Domain
3 | , assert = require('assert');
4 |
5 |
6 | describe("domains", function () {
7 | it("exceptions should not breakout of domain boundaries", function (done) {
8 | if (process.version.indexOf('v0.10') != 0) return done();
9 | var d = new Domain;
10 | d.on('error', function (err) {
11 | assert.equal(err.message, 'gaga');
12 | done()
13 | });
14 |
15 | var p = new Promise();
16 | d.run(function () {
17 | p.then(
18 | function () {}
19 | ).then(
20 | function () { throw new Error('gaga'); }
21 | ).end();
22 | });
23 |
24 | process.nextTick(function () {
25 | p.fulfill();
26 | });
27 | });
28 | });
29 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mpromise/test/promises.Aplus.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Module dependencies.
3 | */
4 | var Promise = require('../lib/promise');
5 | var aplus = require('promises-aplus-tests');
6 |
7 | // tests
8 | describe("run A+ suite", function () {
9 | aplus.mocha({
10 | fulfilled: Promise.fulfilled,
11 | rejected: Promise.rejected,
12 | deferred: Promise.deferred
13 | });
14 | });
15 |
16 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 | coverage/
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - 0.10
5 | - 0.11
6 | services:
7 | - mongodb
8 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @NODE_ENV=test ./node_modules/.bin/mocha $(T) $(TESTS)
4 |
5 | test-cov:
6 | @NODE_ENV=test node \
7 | node_modules/.bin/istanbul cover \
8 | ./node_modules/.bin/_mocha \
9 | -- -u exports \
10 |
11 | open-cov:
12 | open coverage/lcov-report/index.html
13 |
14 | test-travis:
15 | @NODE_ENV=test node \
16 | node_modules/.bin/istanbul cover \
17 | ./node_modules/.bin/_mocha \
18 | --report lcovonly \
19 | -- -u exports \
20 | --bail
21 |
22 | .PHONY: test test-cov open-cov test-travis
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/lib/collection/collection.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * methods a collection must implement
5 | */
6 |
7 | var methods = [
8 | 'find'
9 | , 'findOne'
10 | , 'update'
11 | , 'remove'
12 | , 'count'
13 | , 'distinct'
14 | , 'findAndModify'
15 | , 'aggregate'
16 | , 'findStream'
17 | ];
18 |
19 | /**
20 | * Collection base class from which implementations inherit
21 | */
22 |
23 | function Collection () {}
24 |
25 | for (var i = 0, len = methods.length; i < len; ++i) {
26 | var method = methods[i];
27 | Collection.prototype[method] = notImplemented(method);
28 | }
29 |
30 | module.exports = exports = Collection;
31 | Collection.methods = methods;
32 |
33 | /**
34 | * creates a function which throws an implementation error
35 | */
36 |
37 | function notImplemented (method) {
38 | return function () {
39 | throw new Error('collection.' + method + ' not implemented');
40 | }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/lib/collection/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var env = require('../env')
4 |
5 | if ('unknown' == env.type) {
6 | throw new Error('Unknown environment')
7 | }
8 |
9 | module.exports =
10 | env.isNode ? require('./node') :
11 | env.isMongo ? require('./collection') :
12 | require('./collection');
13 |
14 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/lib/env.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.isNode = 'undefined' != typeof process
4 | && 'object' == typeof module
5 | && 'object' == typeof global
6 | && 'function' == typeof Buffer
7 | && process.argv
8 |
9 | exports.isMongo = !exports.isNode
10 | && 'function' == typeof printjson
11 | && 'function' == typeof ObjectId
12 | && 'function' == typeof rs
13 | && 'function' == typeof sh;
14 |
15 | exports.isBrowser = !exports.isNode
16 | && !exports.isMongo
17 | && 'undefined' != typeof window;
18 |
19 | exports.type = exports.isNode ? 'node'
20 | : exports.isMongo ? 'mongo'
21 | : exports.isBrowser ? 'browser'
22 | : 'unknown'
23 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/node_modules/bluebird/js/main/any.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise) {
3 | var SomePromiseArray = Promise._SomePromiseArray;
4 | function any(promises) {
5 | var ret = new SomePromiseArray(promises);
6 | var promise = ret.promise();
7 | ret.setHowMany(1);
8 | ret.setUnwrap();
9 | ret.init();
10 | return promise;
11 | }
12 |
13 | Promise.any = function (promises) {
14 | return any(promises);
15 | };
16 |
17 | Promise.prototype.any = function () {
18 | return any(this);
19 | };
20 |
21 | };
22 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/node_modules/bluebird/js/main/bluebird.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | var old;
3 | if (typeof Promise !== "undefined") old = Promise;
4 | function noConflict() {
5 | try { if (Promise === bluebird) Promise = old; }
6 | catch (e) {}
7 | return bluebird;
8 | }
9 | var bluebird = require("./promise.js")();
10 | bluebird.noConflict = noConflict;
11 | module.exports = bluebird;
12 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/node_modules/bluebird/js/main/each.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise, INTERNAL) {
3 | var PromiseReduce = Promise.reduce;
4 |
5 | Promise.prototype.each = function (fn) {
6 | return PromiseReduce(this, fn, null, INTERNAL);
7 | };
8 |
9 | Promise.each = function (promises, fn) {
10 | return PromiseReduce(promises, fn, null, INTERNAL);
11 | };
12 | };
13 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/node_modules/bluebird/js/main/filter.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = function(Promise, INTERNAL) {
3 | var PromiseMap = Promise.map;
4 |
5 | Promise.prototype.filter = function (fn, options) {
6 | return PromiseMap(this, fn, options, INTERNAL);
7 | };
8 |
9 | Promise.filter = function (promises, fn, options) {
10 | return PromiseMap(promises, fn, options, INTERNAL);
11 | };
12 | };
13 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/test/collection/browser.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/junhey/Angular-Cnodejs/de965423c5a6ae16e2678e0f70dd3bce8924853c/nodecms/node_modules/mongoose/node_modules/mquery/test/collection/browser.js
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/test/collection/mongo.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/junhey/Angular-Cnodejs/de965423c5a6ae16e2678e0f70dd3bce8924853c/nodecms/node_modules/mongoose/node_modules/mquery/test/collection/mongo.js
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/test/collection/node.js:
--------------------------------------------------------------------------------
1 |
2 | var assert = require('assert')
3 | var slice = require('sliced')
4 | var mongo = require('mongodb')
5 | var utils = require('../../').utils;
6 |
7 | var uri = process.env.MQUERY_URI || 'mongodb://localhost/mquery';
8 | var db;
9 |
10 | exports.getCollection = function (cb) {
11 | mongo.Db.connect(uri, function (err, db_) {
12 | assert.ifError(err);
13 | db = db_;
14 |
15 | var collection = db.collection('stuff');
16 | collection.opts.safe = true;
17 |
18 | // clean test db before starting
19 | db.dropDatabase(function () {
20 | cb(null, collection);
21 | });
22 | })
23 | }
24 |
25 | exports.dropCollection = function (cb) {
26 | db.dropDatabase(function () {
27 | db.close(cb);
28 | })
29 | }
30 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/mquery/test/env.js:
--------------------------------------------------------------------------------
1 |
2 | var assert = require('assert')
3 | var env = require('../').env;
4 |
5 | console.log('environment: %s', env.type);
6 |
7 | var col;
8 | switch (env.type) {
9 | case 'node':
10 | col = require('./collection/node');
11 | break;
12 | case 'mongo':
13 | col = require('./collection/mongo');
14 | case 'browser':
15 | col = require('./collection/browser');
16 | default:
17 | throw new Error('missing collection implementation for environment: ' + env.type);
18 | }
19 |
20 | module.exports = exports = col;
21 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/ms/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/ms/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | ./node_modules/.bin/mocha test/test.js
4 |
5 | test-browser:
6 | ./node_modules/.bin/serve test/
7 |
8 | .PHONY: test
9 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/ms/ms.js:
--------------------------------------------------------------------------------
1 | /**
2 |
3 | # ms.js
4 |
5 | No more painful `setTimeout(fn, 60 * 4 * 3 * 2 * 1 * Infinity * NaN * '☃')`.
6 |
7 | ms('2d') // 172800000
8 | ms('1.5h') // 5400000
9 | ms('1h') // 3600000
10 | ms('1m') // 60000
11 | ms('5s') // 5000
12 | ms('500ms') // 500
13 | ms('100') // '100'
14 | ms(100) // 100
15 |
16 | **/
17 |
18 | (function (g) {
19 | var r = /(\d*.?\d+)([mshd]+)/
20 | , _ = {}
21 |
22 | _.ms = 1;
23 | _.s = 1000;
24 | _.m = _.s * 60;
25 | _.h = _.m * 60;
26 | _.d = _.h * 24;
27 |
28 | function ms (s) {
29 | if (s == Number(s)) return Number(s);
30 | r.exec(s.toLowerCase());
31 | return RegExp.$1 * _[RegExp.$2];
32 | }
33 |
34 | g.top ? g.ms = ms : module.exports = ms;
35 | })(this);
36 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/ms/test/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ms.js tests
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/muri/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/muri/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/muri/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/mocha/bin/mocha $(T)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/muri/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib');
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/muri/strict.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var x = require('./')('mongodb://asdf:pass@your:2342/hilllo');
4 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/regexp-clone/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/regexp-clone/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 | - 0.10
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/regexp-clone/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.1 / 2013-04-17
3 | ==================
4 |
5 | * initial commit
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/regexp-clone/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha $(T) --async-only $(TESTS)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/regexp-clone/README.md:
--------------------------------------------------------------------------------
1 | #regexp-clone
2 | ==============
3 |
4 | Clones RegExps with flag preservation
5 |
6 | ```js
7 | var regexpClone = require('regexp-clone');
8 |
9 | var a = /somethin/g;
10 | console.log(a.global); // true
11 |
12 | var b = regexpClone(a);
13 | console.log(b.global); // true
14 | ```
15 |
16 | ## License
17 |
18 | [MIT](https://github.com/aheckmann/regexp-clone/blob/master/LICENSE)
19 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/regexp-clone/index.js:
--------------------------------------------------------------------------------
1 |
2 | var toString = Object.prototype.toString;
3 |
4 | function isRegExp (o) {
5 | return 'object' == typeof o
6 | && '[object RegExp]' == toString.call(o);
7 | }
8 |
9 | module.exports = exports = function (regexp) {
10 | if (!isRegExp(regexp)) {
11 | throw new TypeError('Not a RegExp');
12 | }
13 |
14 | var flags = [];
15 | if (regexp.global) flags.push('g');
16 | if (regexp.multiline) flags.push('m');
17 | if (regexp.ignoreCase) flags.push('i');
18 | return new RegExp(regexp.source, flags.join(''));
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/.npmignore:
--------------------------------------------------------------------------------
1 | *.sw*
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.5 / 2013-02-05
3 | ==================
4 |
5 | * optimization: remove use of arguments [jkroso](https://github.com/jkroso)
6 | * add scripts to component.json [jkroso](https://github.com/jkroso)
7 | * tests; remove time for travis
8 |
9 | 0.0.4 / 2013-01-07
10 | ==================
11 |
12 | * added component.json #1 [jkroso](https://github.com/jkroso)
13 | * reversed array loop #1 [jkroso](https://github.com/jkroso)
14 | * remove fn params
15 |
16 | 0.0.3 / 2012-09-29
17 | ==================
18 |
19 | * faster with negative start args
20 |
21 | 0.0.2 / 2012-09-29
22 | ==================
23 |
24 | * support full [].slice semantics
25 |
26 | 0.0.1 / 2012-09-29
27 | ===================
28 |
29 | * initial release
30 |
31 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha $(T) $(TESTS)
4 |
5 | .PHONY: test
6 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sliced",
3 | "version": "0.0.5",
4 | "description": "A faster Node.js alternative to Array.prototype.slice.call(arguments)",
5 | "repo" : "aheckmann/sliced",
6 | "keywords": [
7 | "arguments",
8 | "slice",
9 | "array"
10 | ],
11 | "scripts": ["lib/sliced.js", "index.js"],
12 | "author": "Aaron Heckmann ",
13 | "license": "MIT"
14 | }
15 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/index.js:
--------------------------------------------------------------------------------
1 | module.exports = exports = require('./lib/sliced');
2 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/node_modules/sliced/lib/sliced.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * An Array.prototype.slice.call(arguments) alternative
4 | *
5 | * @param {Object} args something with a length
6 | * @param {Number} slice
7 | * @param {Number} sliceEnd
8 | * @api public
9 | */
10 |
11 | module.exports = function (args, slice, sliceEnd) {
12 | var ret = [];
13 | var len = args.length;
14 |
15 | if (0 === len) return ret;
16 |
17 | var start = slice < 0
18 | ? Math.max(0, slice + len)
19 | : slice || 0;
20 |
21 | if (sliceEnd !== undefined) {
22 | len = sliceEnd < 0
23 | ? sliceEnd + len
24 | : sliceEnd
25 | }
26 |
27 | while (len-- > start) {
28 | ret[len - start] = args[len];
29 | }
30 |
31 | return ret;
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/nodecms/node_modules/mongoose/static.js:
--------------------------------------------------------------------------------
1 |
2 | var static = require('node-static');
3 | var server = new static.Server('.', { cache: 0 });
4 | var open = require('open')
5 |
6 | require('http').createServer(function (req, res) {
7 | if ('/favicon.ico' == req.url) {
8 | req.destroy();
9 | res.statusCode = 204
10 | return res.end();
11 | }
12 |
13 | req.on('end', function () {
14 | server.serve(req, res, function (err) {
15 | if (err) {
16 | console.error(err, req.url);
17 | res.writeHead(err.status, err.headers);
18 | res.end();
19 | }
20 | });
21 | });
22 | req.resume();
23 | }).listen(8088);
24 |
25 | console.error('now listening on http://localhost:8088');
26 | open('http://localhost:8088');
27 |
--------------------------------------------------------------------------------
/nodecms/node_modules/morgan/node_modules/basic-auth/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.3 / 2015-07-01
2 | ==================
3 |
4 | * Fix regression accepting a Koa context
5 |
6 | 1.0.2 / 2015-06-12
7 | ==================
8 |
9 | * Improve error message when `req` argument missing
10 | * perf: enable strict mode
11 | * perf: hoist regular expression
12 | * perf: parse with regular expressions
13 | * perf: remove argument reassignment
14 |
15 | 1.0.1 / 2015-05-04
16 | ==================
17 |
18 | * Update readme
19 |
20 | 1.0.0 / 2014-07-01
21 | ==================
22 |
23 | * Support empty password
24 | * Support empty username
25 |
26 | 0.0.1 / 2013-11-30
27 | ==================
28 |
29 | * Initial release
30 |
--------------------------------------------------------------------------------
/nodecms/node_modules/morgan/node_modules/depd/lib/compat/buffer-concat.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2014 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = bufferConcat
12 |
13 | /**
14 | * Concatenate an array of Buffers.
15 | */
16 |
17 | function bufferConcat(bufs) {
18 | var length = 0
19 |
20 | for (var i = 0, len = bufs.length; i < len; i++) {
21 | length += bufs[i].length
22 | }
23 |
24 | var buf = new Buffer(length)
25 | var pos = 0
26 |
27 | for (var i = 0, len = bufs.length; i < len; i++) {
28 | bufs[i].copy(buf, pos)
29 | pos += bufs[i].length
30 | }
31 |
32 | return buf
33 | }
34 |
--------------------------------------------------------------------------------
/nodecms/node_modules/morgan/node_modules/on-headers/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2015-09-29
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.0 / 2014-08-10
7 | ==================
8 |
9 | * Honor `res.statusCode` change in `listener`
10 | * Move to `jshttp` orgainzation
11 | * Prevent `arguments`-related de-opt
12 |
13 | 0.0.0 / 2014-05-13
14 | ==================
15 |
16 | * Initial implementation
17 |
--------------------------------------------------------------------------------
/nodecms/node_modules/serve-favicon/node_modules/fresh/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.3.0 / 2015-05-12
2 | ==================
3 |
4 | * Add weak `ETag` matching support
5 |
6 | 0.2.4 / 2014-09-07
7 | ==================
8 |
9 | * Support Node.js 0.6
10 |
11 | 0.2.3 / 2014-09-07
12 | ==================
13 |
14 | * Move repository to jshttp
15 |
16 | 0.2.2 / 2014-02-19
17 | ==================
18 |
19 | * Revert "Fix for blank page on Safari reload"
20 |
21 | 0.2.1 / 2014-01-29
22 | ==================
23 |
24 | * Fix for blank page on Safari reload
25 |
26 | 0.2.0 / 2013-08-11
27 | ==================
28 |
29 | * Return stale for `Cache-Control: no-cache`
30 |
31 | 0.1.0 / 2012-06-15
32 | ==================
33 | * Add `If-None-Match: *` support
34 |
35 | 0.0.1 / 2012-06-10
36 | ==================
37 |
38 | * Initial release
39 |
--------------------------------------------------------------------------------
/nodecms/node_modules/serve-favicon/node_modules/ms/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | test
3 | History.md
4 | Makefile
5 | component.json
6 |
--------------------------------------------------------------------------------
/nodecms/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nodecms",
3 | "version": "0.0.0",
4 | "private": true,
5 | "scripts": {
6 | "start": "node ./bin/www"
7 | },
8 | "dependencies": {
9 | "body-parser": "~1.13.2",
10 | "cookie-parser": "~1.3.5",
11 | "debug": "~2.2.0",
12 | "ejs": "~2.3.3",
13 | "express": "~4.13.1",
14 | "mongodb": "^2.1.18",
15 | "mongoose": "~4.0.1",
16 | "morgan": "~1.6.1",
17 | "serve-favicon": "~2.3.0",
18 | "express-session": "^1.11.2",
19 | "connect-redis": "^2.3.0"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/nodecms/proxies/index.js:
--------------------------------------------------------------------------------
1 | exports.User = require('./user');
2 |
--------------------------------------------------------------------------------
/nodecms/proxies/user.js:
--------------------------------------------------------------------------------
1 | var User = require('../models').User;
2 |
3 | exports.addUser=function(UserObj,callback){
4 | var user=new User();
5 | for(var property in UserObj){
6 | if(UserObj[property]){
7 | user[property]=UserObj[property];
8 | }
9 | }
10 | user.save(function(err,number){
11 | if(err){
12 | return callback(err,null);
13 | }
14 | });
15 | };
16 |
17 | exports.findOne=function(condition,callback){
18 | User.findOne(condition,callback);
19 | };
20 |
21 | exports.remove=function(condition,callback){
22 | User.remove(condition,callback);
23 | };
24 |
25 | exports.clean=function(callback){
26 | User.remove({},callback);
27 | };
28 |
29 | exports.count=function(condition,callback){
30 | return User.count(condition,callback);
31 | };
32 |
--------------------------------------------------------------------------------
/nodecms/public/stylesheets/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding: 50px;
3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
4 | }
5 |
6 | a {
7 | color: #00B7FF;
8 | }
9 |
--------------------------------------------------------------------------------
/nodecms/routes.js:
--------------------------------------------------------------------------------
1 | var express = require('express');
2 | var router = express.Router();
3 | var controllers = require('./controllers');
4 | var config = require('./config');
5 |
6 | /*
7 | * UI part
8 | */
9 | router.get('/', controllers.Page.home);
10 | router.get('/login', controllers.User.login);
11 | router.post('/login', controllers.User.dologin);
12 | router.get('/register', controllers.User.register);
13 | router.post('/register', controllers.User.doregister);
14 |
15 | router.get('/logout', controllers.User.logout);
16 |
17 | module.exports = router;
--------------------------------------------------------------------------------
/nodecms/views/error.ejs:
--------------------------------------------------------------------------------
1 | <%= message %>
2 | <%= error.status %>
3 | <%= error.stack %>
4 |
--------------------------------------------------------------------------------
/nodecms/views/index.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 个人中心
5 |
6 |
7 |
8 | 用户中心
9 | <% if(typeof(User)!=='undefined'&&User) {%>
10 | 欢迎你--<%=User.user_name%>
11 | 退出
12 | <% }else{ %>
13 | 登录
14 | 注册
15 | <% } %>
16 |
17 |
18 |
--------------------------------------------------------------------------------
/nodecms/views/login.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 登录
5 |
6 |
7 | 登录
8 |
14 | <% if(typeof(error)!=='undefined'&&error){%>
15 | <%=error%>
16 | <%}%>
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/nodecms/views/register.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 注册
6 |
7 |
8 | 注册
9 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/font/iconfont-full.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/junhey/Angular-Cnodejs/de965423c5a6ae16e2678e0f70dd3bce8924853c/src/font/iconfont-full.ttf
--------------------------------------------------------------------------------
/src/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/junhey/Angular-Cnodejs/de965423c5a6ae16e2678e0f70dd3bce8924853c/src/font/iconfont.ttf
--------------------------------------------------------------------------------