├── .gitignore ├── LICENSE ├── README.md ├── build ├── magix.loader.min.js └── magix.min.js ├── compiler ├── index.js └── node_modules │ ├── .bin │ ├── bunyan │ ├── mime │ ├── mkdirp │ ├── ncp │ ├── report-latency │ ├── rimraf │ ├── semver │ ├── uglifyjs │ └── uuid │ ├── align-text │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── asn1 │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── ber │ │ │ ├── errors.js │ │ │ ├── index.js │ │ │ ├── reader.js │ │ │ ├── types.js │ │ │ └── writer.js │ │ └── index.js │ ├── package.json │ └── tst │ │ └── ber │ │ ├── reader.test.js │ │ └── writer.test.js │ ├── assert-plus │ ├── README.md │ ├── assert.js │ └── package.json │ ├── async │ ├── LICENSE │ ├── README.md │ ├── component.json │ ├── lib │ │ └── async.js │ └── package.json │ ├── backoff │ ├── CHANGES.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── backoff.js │ │ ├── function_call.js │ │ └── strategy │ │ │ ├── exponential.js │ │ │ ├── fibonacci.js │ │ │ └── strategy.js │ ├── package.json │ └── tests │ │ ├── api.js │ │ ├── backoff.js │ │ ├── backoff_strategy.js │ │ ├── exponential_backoff_strategy.js │ │ ├── fibonacci_backoff_strategy.js │ │ └── function_call.js │ ├── balanced-match │ ├── .npmignore │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ └── package.json │ ├── brace-expansion │ ├── README.md │ ├── index.js │ └── package.json │ ├── buffer-shims │ ├── index.js │ ├── license.md │ ├── package.json │ └── readme.md │ ├── bunyan │ ├── .npmignore │ ├── AUTHORS │ ├── CHANGES.md │ ├── CONTRIBUTING.md │ ├── LICENSE.txt │ ├── Makefile │ ├── README.md │ ├── TODO.md │ ├── bin │ │ └── bunyan │ ├── docs │ │ ├── bunyan.1 │ │ ├── bunyan.1.html │ │ ├── bunyan.1.ronn │ │ ├── img │ │ │ └── bunyan.browserify.png │ │ └── index.html │ ├── lib │ │ └── bunyan.js │ ├── node_modules │ │ └── dtrace-provider │ │ │ ├── .gitmodules │ │ │ ├── .npmignore │ │ │ ├── CHANGES.md │ │ │ ├── LICENCE │ │ │ ├── README.md │ │ │ ├── TODO.md │ │ │ ├── build │ │ │ ├── DTraceProviderBindings.target.mk │ │ │ ├── Makefile │ │ │ ├── Release │ │ │ │ ├── .deps │ │ │ │ │ ├── ..d │ │ │ │ │ └── Release │ │ │ │ │ │ ├── DTraceProviderBindings.node.d │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ ├── DTraceProviderBindings │ │ │ │ │ │ ├── dtrace_argument.o.d │ │ │ │ │ │ ├── dtrace_probe.o.d │ │ │ │ │ │ └── dtrace_provider.o.d │ │ │ │ │ │ └── libusdt.stamp.d │ │ │ │ ├── DTraceProviderBindings.node │ │ │ │ └── obj.target │ │ │ │ │ ├── DTraceProviderBindings │ │ │ │ │ ├── dtrace_argument.o │ │ │ │ │ ├── dtrace_probe.o │ │ │ │ │ └── dtrace_provider.o │ │ │ │ │ └── libusdt.stamp │ │ │ ├── binding.Makefile │ │ │ ├── config.gypi │ │ │ ├── gyp-mac-tool │ │ │ └── libusdt.target.mk │ │ │ ├── compile.py │ │ │ ├── dtrace-provider.js │ │ │ ├── dtrace_argument.cc │ │ │ ├── dtrace_probe.cc │ │ │ ├── dtrace_provider.cc │ │ │ ├── dtrace_provider.h │ │ │ ├── libusdt-arch.js │ │ │ ├── libusdt-build.sh │ │ │ ├── libusdt │ │ │ ├── .npmignore │ │ │ ├── LICENCE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── libusdt.a │ │ │ ├── test.pl │ │ │ ├── test_mem_usage.c │ │ │ ├── test_usdt.c │ │ │ ├── usdt.c │ │ │ ├── usdt.h │ │ │ ├── usdt.o │ │ │ ├── usdt_dof.c │ │ │ ├── usdt_dof.o │ │ │ ├── usdt_dof_file.c │ │ │ ├── usdt_dof_file.o │ │ │ ├── usdt_dof_sections.c │ │ │ ├── usdt_dof_sections.o │ │ │ ├── usdt_internal.h │ │ │ ├── usdt_probe.c │ │ │ ├── usdt_probe.o │ │ │ ├── usdt_tracepoints.o │ │ │ ├── usdt_tracepoints_i386.s │ │ │ └── usdt_tracepoints_x86_64.s │ │ │ ├── package.json │ │ │ ├── scripts │ │ │ └── install.js │ │ │ ├── test │ │ │ ├── 32probe-char.test.js │ │ │ ├── 32probe-char_fire.js │ │ │ ├── 32probe.test.js │ │ │ ├── 32probe_fire.js │ │ │ ├── add-probes.test.js │ │ │ ├── add-probes_fire.js │ │ │ ├── basic.test.js │ │ │ ├── basic_fire.js │ │ │ ├── create-destroy.test.js │ │ │ ├── create-destroy_fire.js │ │ │ ├── disambiguation.test.js │ │ │ ├── disambiguation_fire.js │ │ │ ├── dtrace-test.js │ │ │ ├── enabled-disabled.test.js │ │ │ ├── enabled-disabled_fire.js │ │ │ ├── enabledagain.test.js │ │ │ ├── enabledagain_fire.js │ │ │ ├── fewer-args-json.test.js │ │ │ ├── fewer-args-json_fire.js │ │ │ ├── fewer-args.test.js │ │ │ ├── fewer-args_fire.js │ │ │ ├── gc.js │ │ │ ├── gc.test.js │ │ │ ├── gc2.js │ │ │ ├── gc3.js │ │ │ ├── gc_fire.js │ │ │ ├── json-args.test.js │ │ │ ├── json-args_fire.js │ │ │ ├── more-args.test.js │ │ │ ├── more-args_fire.js │ │ │ ├── multiple-json-args.test.js │ │ │ ├── multiple-json-args_fire.js │ │ │ └── notenabled.test.js │ │ │ └── wscript │ └── package.json │ ├── camelcase │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md │ ├── center-align │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── utils.js │ ├── cliui │ ├── .coveralls.yml │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── cliui.js │ ├── concat-map │ ├── .travis.yml │ ├── LICENSE │ ├── README.markdown │ ├── example │ │ └── map.js │ ├── index.js │ ├── package.json │ └── test │ │ └── map.js │ ├── core-util-is │ ├── LICENSE │ ├── README.md │ ├── float.patch │ ├── lib │ │ └── util.js │ ├── package.json │ └── test.js │ ├── csv-generate │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ ├── package.json │ └── samples │ │ ├── callback.js │ │ ├── pipe.js │ │ └── stream.js │ ├── csv-parse │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── index.js │ │ └── sync.js │ ├── package.json │ └── samples │ │ ├── callback.js │ │ ├── columns-discovery.in │ │ ├── columns-discovery.js │ │ ├── comment.js │ │ ├── fs_read.csv │ │ ├── fs_read.js │ │ ├── objname.js │ │ ├── pipe.js │ │ ├── stream.js │ │ ├── sync.js │ │ └── tsv.js │ ├── csv-stringify │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ ├── package.json │ └── samples │ │ ├── api.callback.js │ │ ├── api.pipe.js │ │ ├── api.stream.js │ │ └── options.header.js │ ├── csv │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── doc │ │ ├── changes.md │ │ ├── columns.md │ │ ├── coverage.html │ │ ├── from.md │ │ ├── index.md │ │ ├── parser.md │ │ ├── stringifier.md │ │ ├── to.md │ │ └── transformer.md │ ├── lib │ │ └── index.js │ ├── package.json │ ├── samples │ │ ├── callback.js │ │ ├── pipe.js │ │ └── stream.js │ └── src │ │ └── index.coffee.md │ ├── ctype │ ├── .npmignore │ ├── CHANGELOG │ ├── LICENSE │ ├── README │ ├── README.old │ ├── ctf.js │ ├── ctio.js │ ├── ctype.js │ ├── man │ │ └── man3ctype │ │ │ └── ctio.3ctype │ ├── package.json │ └── tools │ │ ├── jsl.conf │ │ └── jsstyle │ ├── debug │ ├── .jshintrc │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── bower.json │ ├── browser.js │ ├── component.json │ ├── debug.js │ ├── node.js │ ├── package.json │ └── yarn.lock │ ├── decamelize │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md │ ├── dtrace-provider │ ├── .gitmodules │ ├── .npmignore │ ├── CHANGES.md │ ├── LICENCE │ ├── README.md │ ├── TODO.md │ ├── build │ │ ├── DTraceProviderBindings.target.mk │ │ ├── Makefile │ │ ├── Release │ │ │ ├── .deps │ │ │ │ ├── ..d │ │ │ │ └── Release │ │ │ │ │ ├── DTraceProviderBindings.node.d │ │ │ │ │ └── obj.target │ │ │ │ │ ├── DTraceProviderBindings │ │ │ │ │ ├── dtrace_argument.o.d │ │ │ │ │ ├── dtrace_probe.o.d │ │ │ │ │ └── dtrace_provider.o.d │ │ │ │ │ └── libusdt.stamp.d │ │ │ ├── DTraceProviderBindings.node │ │ │ └── obj.target │ │ │ │ ├── DTraceProviderBindings │ │ │ │ ├── dtrace_argument.o │ │ │ │ ├── dtrace_probe.o │ │ │ │ └── dtrace_provider.o │ │ │ │ └── libusdt.stamp │ │ ├── binding.Makefile │ │ ├── config.gypi │ │ ├── gyp-mac-tool │ │ └── libusdt.target.mk │ ├── compile.py │ ├── dtrace-provider.js │ ├── dtrace_argument.cc │ ├── dtrace_probe.cc │ ├── dtrace_provider.cc │ ├── dtrace_provider.h │ ├── libusdt-arch.js │ ├── libusdt-build.sh │ ├── libusdt │ │ ├── .npmignore │ │ ├── LICENCE │ │ ├── Makefile │ │ ├── README.md │ │ ├── libusdt.a │ │ ├── test.pl │ │ ├── test_mem_usage.c │ │ ├── test_usdt.c │ │ ├── usdt.c │ │ ├── usdt.h │ │ ├── usdt.o │ │ ├── usdt_dof.c │ │ ├── usdt_dof.o │ │ ├── usdt_dof_file.c │ │ ├── usdt_dof_file.o │ │ ├── usdt_dof_sections.c │ │ ├── usdt_dof_sections.o │ │ ├── usdt_internal.h │ │ ├── usdt_probe.c │ │ ├── usdt_probe.o │ │ ├── usdt_tracepoints.o │ │ ├── usdt_tracepoints_i386.s │ │ └── usdt_tracepoints_x86_64.s │ ├── package.json │ ├── scripts │ │ └── install.js │ ├── test │ │ ├── 32probe-char.test.js │ │ ├── 32probe-char_fire.js │ │ ├── 32probe.test.js │ │ ├── 32probe_fire.js │ │ ├── add-probes.test.js │ │ ├── add-probes_fire.js │ │ ├── basic.test.js │ │ ├── basic_fire.js │ │ ├── create-destroy.test.js │ │ ├── create-destroy_fire.js │ │ ├── disambiguation.test.js │ │ ├── disambiguation_fire.js │ │ ├── dtrace-test.js │ │ ├── enabled-disabled.test.js │ │ ├── enabled-disabled_fire.js │ │ ├── enabledagain.test.js │ │ ├── enabledagain_fire.js │ │ ├── fewer-args-json.test.js │ │ ├── fewer-args-json_fire.js │ │ ├── fewer-args.test.js │ │ ├── fewer-args_fire.js │ │ ├── gc.js │ │ ├── gc.test.js │ │ ├── gc2.js │ │ ├── gc3.js │ │ ├── gc_fire.js │ │ ├── json-args.test.js │ │ ├── json-args_fire.js │ │ ├── more-args.test.js │ │ ├── more-args_fire.js │ │ ├── multiple-json-args.test.js │ │ ├── multiple-json-args_fire.js │ │ └── notenabled.test.js │ └── wscript │ ├── escape-regexp-component │ ├── .npmignore │ ├── History.md │ ├── Makefile │ ├── Readme.md │ ├── component.json │ ├── index.js │ └── package.json │ ├── extsprintf │ ├── .gitmodules │ ├── .npmignore │ ├── LICENSE │ ├── Makefile │ ├── Makefile.deps │ ├── Makefile.targ │ ├── README.md │ ├── jsl.node.conf │ ├── lib │ │ └── extsprintf.js │ └── package.json │ ├── formidable │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ ├── lib │ │ ├── file.js │ │ ├── incoming_form.js │ │ ├── index.js │ │ ├── json_parser.js │ │ ├── multipart_parser.js │ │ ├── octet_parser.js │ │ └── querystring_parser.js │ └── package.json │ ├── fs │ ├── README.md │ └── package.json │ ├── glob │ ├── LICENSE │ ├── README.md │ ├── common.js │ ├── glob.js │ ├── package.json │ └── sync.js │ ├── handle-thing │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── lib │ │ ├── handle.js │ │ └── queue.js │ ├── package.json │ └── test │ │ └── api-test.js │ ├── hpack.js │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── bin │ │ └── benchmark │ ├── lib │ │ ├── hpack.js │ │ └── hpack │ │ │ ├── compressor.js │ │ │ ├── decoder.js │ │ │ ├── decompressor.js │ │ │ ├── encoder.js │ │ │ ├── huffman.js │ │ │ ├── static-table.js │ │ │ ├── table.js │ │ │ └── utils.js │ ├── package.json │ ├── test │ │ ├── compressor-test.js │ │ ├── decoder-test.js │ │ ├── decompressor-test.js │ │ ├── encoder-test.js │ │ └── fixtures.js │ └── tools │ │ ├── gen-huffman.js │ │ ├── gen-static-table.js │ │ └── utils.js │ ├── http-deceiver │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── lib │ │ └── deceiver.js │ ├── package.json │ └── test │ │ └── api-test.js │ ├── http-signature │ ├── .dir-locals.el │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── http_signing.md │ ├── lib │ │ ├── index.js │ │ ├── parser.js │ │ ├── signer.js │ │ ├── util.js │ │ └── verify.js │ └── package.json │ ├── inflight │ ├── LICENSE │ ├── README.md │ ├── inflight.js │ └── package.json │ ├── inherits │ ├── LICENSE │ ├── README.md │ ├── inherits.js │ ├── inherits_browser.js │ └── package.json │ ├── is-buffer │ ├── .travis.yml │ ├── .zuul.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── basic.js │ ├── isarray │ ├── .npmignore │ ├── .travis.yml │ ├── Makefile │ ├── README.md │ ├── component.json │ ├── index.js │ ├── package.json │ └── test.js │ ├── keep-alive-agent │ ├── .jshintrc │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── test.js │ ├── kind-of │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── lazy-cache │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── longest │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── lru-cache │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── lru-cache.js │ └── package.json │ ├── mime │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── build │ │ ├── build.js │ │ └── test.js │ ├── cli.js │ ├── mime.js │ ├── package.json │ └── types.json │ ├── minimalistic-assert │ ├── index.js │ ├── package.json │ └── readme.md │ ├── minimatch │ ├── LICENSE │ ├── README.md │ ├── minimatch.js │ └── package.json │ ├── minimist │ ├── .travis.yml │ ├── LICENSE │ ├── example │ │ └── parse.js │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── dash.js │ │ ├── default_bool.js │ │ ├── dotted.js │ │ ├── long.js │ │ ├── parse.js │ │ ├── parse_modified.js │ │ ├── short.js │ │ └── whitespace.js │ ├── mkdirp │ ├── .travis.yml │ ├── LICENSE │ ├── bin │ │ ├── cmd.js │ │ └── usage.txt │ ├── examples │ │ └── pow.js │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── chmod.js │ │ ├── clobber.js │ │ ├── mkdirp.js │ │ ├── opts_fs.js │ │ ├── opts_fs_sync.js │ │ ├── perm.js │ │ ├── perm_sync.js │ │ ├── race.js │ │ ├── rel.js │ │ ├── return.js │ │ ├── return_sync.js │ │ ├── root.js │ │ ├── sync.js │ │ ├── umask.js │ │ └── umask_sync.js │ ├── moment │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── ender.js │ ├── locale │ │ ├── af.js │ │ ├── ar-ly.js │ │ ├── ar-ma.js │ │ ├── ar-sa.js │ │ ├── ar-tn.js │ │ ├── ar.js │ │ ├── az.js │ │ ├── be.js │ │ ├── bg.js │ │ ├── bn.js │ │ ├── bo.js │ │ ├── br.js │ │ ├── bs.js │ │ ├── ca.js │ │ ├── cs.js │ │ ├── cv.js │ │ ├── cy.js │ │ ├── da.js │ │ ├── de-at.js │ │ ├── de.js │ │ ├── dv.js │ │ ├── el.js │ │ ├── en-au.js │ │ ├── en-ca.js │ │ ├── en-gb.js │ │ ├── en-ie.js │ │ ├── en-nz.js │ │ ├── eo.js │ │ ├── es-do.js │ │ ├── es.js │ │ ├── et.js │ │ ├── eu.js │ │ ├── fa.js │ │ ├── fi.js │ │ ├── fo.js │ │ ├── fr-ca.js │ │ ├── fr-ch.js │ │ ├── fr.js │ │ ├── fy.js │ │ ├── gd.js │ │ ├── gl.js │ │ ├── he.js │ │ ├── hi.js │ │ ├── hr.js │ │ ├── hu.js │ │ ├── hy-am.js │ │ ├── id.js │ │ ├── is.js │ │ ├── it.js │ │ ├── ja.js │ │ ├── jv.js │ │ ├── ka.js │ │ ├── kk.js │ │ ├── km.js │ │ ├── ko.js │ │ ├── ky.js │ │ ├── lb.js │ │ ├── lo.js │ │ ├── lt.js │ │ ├── lv.js │ │ ├── me.js │ │ ├── mi.js │ │ ├── mk.js │ │ ├── ml.js │ │ ├── mr.js │ │ ├── ms-my.js │ │ ├── ms.js │ │ ├── my.js │ │ ├── nb.js │ │ ├── ne.js │ │ ├── nl.js │ │ ├── nn.js │ │ ├── pa-in.js │ │ ├── pl.js │ │ ├── pt-br.js │ │ ├── pt.js │ │ ├── ro.js │ │ ├── ru.js │ │ ├── se.js │ │ ├── si.js │ │ ├── sk.js │ │ ├── sl.js │ │ ├── sq.js │ │ ├── sr-cyrl.js │ │ ├── sr.js │ │ ├── ss.js │ │ ├── sv.js │ │ ├── sw.js │ │ ├── ta.js │ │ ├── te.js │ │ ├── th.js │ │ ├── tl-ph.js │ │ ├── tlh.js │ │ ├── tr.js │ │ ├── tzl.js │ │ ├── tzm-latn.js │ │ ├── tzm.js │ │ ├── uk.js │ │ ├── uz.js │ │ ├── vi.js │ │ ├── x-pseudo.js │ │ ├── zh-cn.js │ │ ├── zh-hk.js │ │ └── zh-tw.js │ ├── min │ │ ├── locales.js │ │ ├── locales.min.js │ │ ├── moment-with-locales.js │ │ ├── moment-with-locales.min.js │ │ └── moment.min.js │ ├── moment.d.ts │ ├── moment.js │ ├── package.js │ ├── package.json │ └── src │ │ ├── lib │ │ ├── create │ │ │ ├── check-overflow.js │ │ │ ├── date-from-array.js │ │ │ ├── from-anything.js │ │ │ ├── from-array.js │ │ │ ├── from-object.js │ │ │ ├── from-string-and-array.js │ │ │ ├── from-string-and-format.js │ │ │ ├── from-string.js │ │ │ ├── local.js │ │ │ ├── parsing-flags.js │ │ │ ├── utc.js │ │ │ └── valid.js │ │ ├── duration │ │ │ ├── abs.js │ │ │ ├── add-subtract.js │ │ │ ├── as.js │ │ │ ├── bubble.js │ │ │ ├── constructor.js │ │ │ ├── create.js │ │ │ ├── duration.js │ │ │ ├── get.js │ │ │ ├── humanize.js │ │ │ ├── iso-string.js │ │ │ └── prototype.js │ │ ├── format │ │ │ └── format.js │ │ ├── locale │ │ │ ├── base-config.js │ │ │ ├── calendar.js │ │ │ ├── constructor.js │ │ │ ├── en.js │ │ │ ├── formats.js │ │ │ ├── invalid.js │ │ │ ├── lists.js │ │ │ ├── locale.js │ │ │ ├── locales.js │ │ │ ├── ordinal.js │ │ │ ├── pre-post-format.js │ │ │ ├── prototype.js │ │ │ ├── relative.js │ │ │ └── set.js │ │ ├── moment │ │ │ ├── add-subtract.js │ │ │ ├── calendar.js │ │ │ ├── clone.js │ │ │ ├── compare.js │ │ │ ├── constructor.js │ │ │ ├── creation-data.js │ │ │ ├── diff.js │ │ │ ├── format.js │ │ │ ├── from.js │ │ │ ├── get-set.js │ │ │ ├── locale.js │ │ │ ├── min-max.js │ │ │ ├── moment.js │ │ │ ├── now.js │ │ │ ├── prototype.js │ │ │ ├── start-end-of.js │ │ │ ├── to-type.js │ │ │ ├── to.js │ │ │ └── valid.js │ │ ├── parse │ │ │ ├── regex.js │ │ │ └── token.js │ │ ├── units │ │ │ ├── aliases.js │ │ │ ├── constants.js │ │ │ ├── day-of-month.js │ │ │ ├── day-of-week.js │ │ │ ├── day-of-year.js │ │ │ ├── hour.js │ │ │ ├── millisecond.js │ │ │ ├── minute.js │ │ │ ├── month.js │ │ │ ├── offset.js │ │ │ ├── priorities.js │ │ │ ├── quarter.js │ │ │ ├── second.js │ │ │ ├── timestamp.js │ │ │ ├── timezone.js │ │ │ ├── units.js │ │ │ ├── week-calendar-utils.js │ │ │ ├── week-year.js │ │ │ ├── week.js │ │ │ └── year.js │ │ └── utils │ │ │ ├── abs-ceil.js │ │ │ ├── abs-floor.js │ │ │ ├── abs-round.js │ │ │ ├── compare-arrays.js │ │ │ ├── defaults.js │ │ │ ├── deprecate.js │ │ │ ├── extend.js │ │ │ ├── has-own-prop.js │ │ │ ├── hooks.js │ │ │ ├── index-of.js │ │ │ ├── is-array.js │ │ │ ├── is-date.js │ │ │ ├── is-function.js │ │ │ ├── is-object-empty.js │ │ │ ├── is-object.js │ │ │ ├── is-undefined.js │ │ │ ├── keys.js │ │ │ ├── map.js │ │ │ ├── some.js │ │ │ ├── to-int.js │ │ │ └── zero-fill.js │ │ ├── locale │ │ ├── af.js │ │ ├── ar-ly.js │ │ ├── ar-ma.js │ │ ├── ar-sa.js │ │ ├── ar-tn.js │ │ ├── ar.js │ │ ├── az.js │ │ ├── be.js │ │ ├── bg.js │ │ ├── bn.js │ │ ├── bo.js │ │ ├── br.js │ │ ├── bs.js │ │ ├── ca.js │ │ ├── cs.js │ │ ├── cv.js │ │ ├── cy.js │ │ ├── da.js │ │ ├── de-at.js │ │ ├── de.js │ │ ├── dv.js │ │ ├── el.js │ │ ├── en-au.js │ │ ├── en-ca.js │ │ ├── en-gb.js │ │ ├── en-ie.js │ │ ├── en-nz.js │ │ ├── eo.js │ │ ├── es-do.js │ │ ├── es.js │ │ ├── et.js │ │ ├── eu.js │ │ ├── fa.js │ │ ├── fi.js │ │ ├── fo.js │ │ ├── fr-ca.js │ │ ├── fr-ch.js │ │ ├── fr.js │ │ ├── fy.js │ │ ├── gd.js │ │ ├── gl.js │ │ ├── he.js │ │ ├── hi.js │ │ ├── hr.js │ │ ├── hu.js │ │ ├── hy-am.js │ │ ├── id.js │ │ ├── is.js │ │ ├── it.js │ │ ├── ja.js │ │ ├── jv.js │ │ ├── ka.js │ │ ├── kk.js │ │ ├── km.js │ │ ├── ko.js │ │ ├── ky.js │ │ ├── lb.js │ │ ├── lo.js │ │ ├── lt.js │ │ ├── lv.js │ │ ├── me.js │ │ ├── mi.js │ │ ├── mk.js │ │ ├── ml.js │ │ ├── mr.js │ │ ├── ms-my.js │ │ ├── ms.js │ │ ├── my.js │ │ ├── nb.js │ │ ├── ne.js │ │ ├── nl.js │ │ ├── nn.js │ │ ├── pa-in.js │ │ ├── pl.js │ │ ├── pt-br.js │ │ ├── pt.js │ │ ├── ro.js │ │ ├── ru.js │ │ ├── se.js │ │ ├── si.js │ │ ├── sk.js │ │ ├── sl.js │ │ ├── sq.js │ │ ├── sr-cyrl.js │ │ ├── sr.js │ │ ├── ss.js │ │ ├── sv.js │ │ ├── sw.js │ │ ├── ta.js │ │ ├── te.js │ │ ├── th.js │ │ ├── tl-ph.js │ │ ├── tlh.js │ │ ├── tr.js │ │ ├── tzl.js │ │ ├── tzm-latn.js │ │ ├── tzm.js │ │ ├── uk.js │ │ ├── uz.js │ │ ├── vi.js │ │ ├── x-pseudo.js │ │ ├── zh-cn.js │ │ ├── zh-hk.js │ │ └── zh-tw.js │ │ └── moment.js │ ├── ms │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ └── package.json │ ├── mv │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ ├── a-file │ │ ├── a-folder │ │ ├── another-file │ │ └── another-folder │ │ │ └── file3 │ │ └── test.js │ ├── nan │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── README.md │ ├── doc │ │ ├── asyncworker.md │ │ ├── buffers.md │ │ ├── callback.md │ │ ├── converters.md │ │ ├── errors.md │ │ ├── maybe_types.md │ │ ├── methods.md │ │ ├── new.md │ │ ├── node_misc.md │ │ ├── object_wrappers.md │ │ ├── persistent.md │ │ ├── scopes.md │ │ ├── script.md │ │ ├── string_bytes.md │ │ ├── v8_internals.md │ │ └── v8_misc.md │ ├── include_dirs.js │ ├── nan.h │ ├── nan_callbacks.h │ ├── nan_callbacks_12_inl.h │ ├── nan_callbacks_pre_12_inl.h │ ├── nan_converters.h │ ├── nan_converters_43_inl.h │ ├── nan_converters_pre_43_inl.h │ ├── nan_implementation_12_inl.h │ ├── nan_implementation_pre_12_inl.h │ ├── nan_maybe_43_inl.h │ ├── nan_maybe_pre_43_inl.h │ ├── nan_new.h │ ├── nan_object_wrap.h │ ├── nan_persistent_12_inl.h │ ├── nan_persistent_pre_12_inl.h │ ├── nan_string_bytes.h │ ├── nan_typedarray_contents.h │ ├── nan_weak.h │ ├── package.json │ └── tools │ │ ├── 1to2.js │ │ ├── README.md │ │ └── package.json │ ├── ncp │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE.md │ ├── README.md │ ├── bin │ │ └── ncp │ ├── lib │ │ └── ncp.js │ ├── package.json │ └── test │ │ ├── modified-files │ │ ├── out │ │ │ └── a │ │ └── src │ │ │ └── a │ │ ├── ncp.js │ │ ├── regular-fixtures │ │ └── src │ │ │ ├── a │ │ │ ├── b │ │ │ ├── c │ │ │ ├── d │ │ │ ├── e │ │ │ ├── f │ │ │ └── sub │ │ │ ├── a │ │ │ └── b │ │ └── symlink-fixtures │ │ └── src │ │ ├── dir │ │ └── bar │ │ └── foo │ ├── negotiator │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── charset.js │ │ ├── encoding.js │ │ ├── language.js │ │ └── mediaType.js │ └── package.json │ ├── node-uuid │ ├── .npmignore │ ├── LICENSE.md │ ├── README.md │ ├── benchmark │ │ ├── README.md │ │ ├── bench.gnu │ │ ├── bench.sh │ │ ├── benchmark-native.c │ │ └── benchmark.js │ ├── bin │ │ └── uuid │ ├── bower.json │ ├── component.json │ ├── package.json │ ├── test │ │ ├── compare_v1.js │ │ ├── test.html │ │ └── test.js │ └── uuid.js │ ├── obuf │ ├── .npmignore │ ├── index.js │ ├── package.json │ └── test │ │ └── buffer-test.js │ ├── once │ ├── LICENSE │ ├── README.md │ ├── once.js │ └── package.json │ ├── path-is-absolute │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md │ ├── path │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── path.js │ ├── precond │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── checks.js │ │ └── errors.js │ └── package.json │ ├── process-nextick-args │ ├── .travis.yml │ ├── index.js │ ├── license.md │ ├── package.json │ ├── readme.md │ └── test.js │ ├── process │ ├── .eslintrc │ ├── LICENSE │ ├── README.md │ ├── browser.js │ ├── index.js │ ├── package.json │ └── test.js │ ├── pseudomap │ ├── LICENSE │ ├── README.md │ ├── map.js │ ├── package.json │ ├── pseudomap.js │ └── test │ │ └── basic.js │ ├── qs │ ├── .eslintignore │ ├── .eslintrc │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── dist │ │ └── qs.js │ ├── lib │ │ ├── formats.js │ │ ├── index.js │ │ ├── parse.js │ │ ├── stringify.js │ │ └── utils.js │ ├── package.json │ └── test │ │ ├── .eslintrc │ │ ├── index.js │ │ ├── parse.js │ │ ├── stringify.js │ │ └── utils.js │ ├── readable-stream │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── doc │ │ ├── stream.md │ │ └── wg-meetings │ │ │ └── 2015-01-30.md │ ├── duplex.js │ ├── lib │ │ ├── _stream_duplex.js │ │ ├── _stream_passthrough.js │ │ ├── _stream_readable.js │ │ ├── _stream_transform.js │ │ ├── _stream_writable.js │ │ └── internal │ │ │ └── streams │ │ │ └── BufferList.js │ ├── package.json │ ├── passthrough.js │ ├── readable.js │ ├── transform.js │ └── writable.js │ ├── repeat-string │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── restify │ ├── .eslintignore │ ├── .eslintrc │ ├── .jscsrc │ ├── .npmignore │ ├── CHANGES.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── report-latency │ ├── lib │ │ ├── bunyan_helper.js │ │ ├── clients │ │ │ ├── http_client.js │ │ │ ├── index.js │ │ │ ├── json_client.js │ │ │ └── string_client.js │ │ ├── dtrace.js │ │ ├── errors │ │ │ ├── http_error.js │ │ │ ├── index.js │ │ │ └── rest_error.js │ │ ├── formatters │ │ │ ├── binary.js │ │ │ ├── index.js │ │ │ ├── json.js │ │ │ ├── jsonp.js │ │ │ └── text.js │ │ ├── http_date.js │ │ ├── index.js │ │ ├── plugins │ │ │ ├── accept.js │ │ │ ├── audit.js │ │ │ ├── authorization.js │ │ │ ├── body_parser.js │ │ │ ├── body_reader.js │ │ │ ├── bunyan.js │ │ │ ├── conditional_request.js │ │ │ ├── cors.js │ │ │ ├── date.js │ │ │ ├── fielded_text_body_parser.js │ │ │ ├── form_body_parser.js │ │ │ ├── full_response.js │ │ │ ├── gzip.js │ │ │ ├── index.js │ │ │ ├── json_body_parser.js │ │ │ ├── jsonp.js │ │ │ ├── multipart_body_parser.js │ │ │ ├── pre │ │ │ │ ├── pause.js │ │ │ │ ├── pre_path.js │ │ │ │ └── user_agent.js │ │ │ ├── query.js │ │ │ ├── request_expiry.js │ │ │ ├── static.js │ │ │ └── throttle.js │ │ ├── request.js │ │ ├── response.js │ │ ├── router.js │ │ ├── server.js │ │ ├── upgrade.js │ │ └── utils.js │ └── package.json │ ├── right-align │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── rimraf │ ├── LICENSE │ ├── README.md │ ├── bin.js │ ├── package.json │ └── rimraf.js │ ├── safe-json-stringify │ ├── .npmignore │ ├── README.md │ ├── index.js │ └── package.json │ ├── select-hose │ ├── .jscsrc │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── lib │ │ └── hose.js │ ├── package.json │ └── test │ │ ├── api-test.js │ │ └── fixtures.js │ ├── semver │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── bin │ │ └── semver │ ├── foot.js.txt │ ├── head.js.txt │ ├── package.json │ ├── semver.browser.js │ ├── semver.browser.js.gz │ ├── semver.js │ ├── semver.min.js │ ├── semver.min.js.gz │ └── test │ │ ├── amd.js │ │ ├── big-numbers.js │ │ ├── clean.js │ │ ├── gtr.js │ │ ├── index.js │ │ ├── ltr.js │ │ ├── major-minor-patch.js │ │ └── no-module.js │ ├── source-map │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── dist │ │ ├── source-map.debug.js │ │ ├── source-map.js │ │ ├── source-map.min.js │ │ └── source-map.min.js.map │ ├── lib │ │ ├── array-set.js │ │ ├── base64-vlq.js │ │ ├── base64.js │ │ ├── binary-search.js │ │ ├── mapping-list.js │ │ ├── quick-sort.js │ │ ├── source-map-consumer.js │ │ ├── source-map-generator.js │ │ ├── source-node.js │ │ └── util.js │ ├── package.json │ └── source-map.js │ ├── spdy-transport │ ├── .jscsrc │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── lib │ │ ├── spdy-transport.js │ │ └── spdy-transport │ │ │ ├── connection.js │ │ │ ├── priority.js │ │ │ ├── protocol │ │ │ ├── base │ │ │ │ ├── constants.js │ │ │ │ ├── framer.js │ │ │ │ ├── index.js │ │ │ │ ├── parser.js │ │ │ │ ├── scheduler.js │ │ │ │ └── utils.js │ │ │ ├── http2 │ │ │ │ ├── constants.js │ │ │ │ ├── framer.js │ │ │ │ ├── hpack-pool.js │ │ │ │ ├── index.js │ │ │ │ └── parser.js │ │ │ └── spdy │ │ │ │ ├── constants.js │ │ │ │ ├── dictionary.js │ │ │ │ ├── framer.js │ │ │ │ ├── index.js │ │ │ │ ├── parser.js │ │ │ │ └── zlib-pool.js │ │ │ ├── stream.js │ │ │ ├── utils.js │ │ │ └── window.js │ └── package.json │ ├── spdy │ ├── .jscsrc │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── lib │ │ ├── spdy.js │ │ └── spdy │ │ │ ├── agent.js │ │ │ ├── handle.js │ │ │ ├── request.js │ │ │ ├── response.js │ │ │ ├── server.js │ │ │ └── socket.js │ ├── package.json │ ├── test.js │ └── test │ │ ├── client-test.js │ │ ├── fixtures.js │ │ └── server-test.js │ ├── stream-transform │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ ├── package.json │ └── samples │ │ ├── asynchronous.js │ │ ├── callback.js │ │ ├── stream.js │ │ └── synchronous.js │ ├── string_decoder │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── tunnel-agent │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json │ ├── uglify-js │ ├── LICENSE │ ├── README.md │ ├── bin │ │ ├── extract-props.js │ │ └── uglifyjs │ ├── lib │ │ ├── ast.js │ │ ├── compress.js │ │ ├── mozilla-ast.js │ │ ├── output.js │ │ ├── parse.js │ │ ├── propmangle.js │ │ ├── scope.js │ │ ├── sourcemap.js │ │ ├── transform.js │ │ └── utils.js │ ├── package.json │ └── tools │ │ ├── domprops.json │ │ ├── exports.js │ │ ├── node.js │ │ └── props.html │ ├── uglify-to-browserify │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── index.js │ ├── util-deprecate │ ├── History.md │ ├── LICENSE │ ├── README.md │ ├── browser.js │ ├── node.js │ └── package.json │ ├── util │ ├── .npmignore │ ├── .travis.yml │ ├── .zuul.yml │ ├── LICENSE │ ├── README.md │ ├── node_modules │ │ └── inherits │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── inherits.js │ │ │ ├── inherits_browser.js │ │ │ ├── package.json │ │ │ └── test.js │ ├── package.json │ ├── support │ │ ├── isBuffer.js │ │ └── isBufferBrowser.js │ ├── test │ │ ├── browser │ │ │ ├── inspect.js │ │ │ └── is.js │ │ └── node │ │ │ ├── debug.js │ │ │ ├── format.js │ │ │ ├── inspect.js │ │ │ ├── log.js │ │ │ └── util.js │ └── util.js │ ├── vasync │ ├── .gitmodules │ ├── .npmignore │ ├── LICENSE │ ├── Makefile │ ├── Makefile.targ │ ├── README.md │ ├── examples │ │ ├── barrier-basic.js │ │ ├── barrier-readdir.js │ │ ├── foreach-parallel.js │ │ ├── foreach-pipeline.js │ │ ├── nofail.js │ │ ├── parallel.js │ │ ├── pipeline.js │ │ ├── queue-serializer.js │ │ ├── queue-stat.js │ │ └── waterfall.js │ ├── jsl.node.conf │ ├── lib │ │ └── vasync.js │ ├── node_modules │ │ └── verror │ │ │ ├── .gitmodules │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── Makefile.targ │ │ │ ├── README.md │ │ │ ├── examples │ │ │ ├── levels-verror.js │ │ │ ├── levels-werror.js │ │ │ ├── nested.js │ │ │ ├── varargs.js │ │ │ ├── verror.js │ │ │ └── werror.js │ │ │ ├── experiments │ │ │ └── test-error-properties.js │ │ │ ├── jsl.node.conf │ │ │ ├── lib │ │ │ └── verror.js │ │ │ ├── package.json │ │ │ └── tests │ │ │ ├── tst.inherit.js │ │ │ ├── tst.serror.js │ │ │ ├── tst.verror.js │ │ │ └── tst.werror.js │ ├── package.json │ └── tests │ │ ├── compat.js │ │ ├── issue-21.js │ │ ├── queue.js │ │ ├── queue_concurrency.js │ │ └── waterfall.js │ ├── verror │ ├── .npmignore │ ├── CHANGES.md │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── issue-39.js │ ├── lib │ │ └── verror.js │ ├── node_modules │ │ └── assert-plus │ │ │ ├── AUTHORS │ │ │ ├── CHANGES.md │ │ │ ├── README.md │ │ │ ├── assert.js │ │ │ └── package.json │ └── package.json │ ├── wbuf │ ├── .npmignore │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── wbuf-test.js │ ├── window-size │ ├── LICENSE-MIT │ ├── README.md │ ├── index.js │ └── package.json │ ├── wordwrap │ ├── .npmignore │ ├── README.markdown │ ├── example │ │ ├── center.js │ │ └── meat.js │ ├── index.js │ ├── package.json │ └── test │ │ ├── break.js │ │ ├── idleness.txt │ │ └── wrap.js │ ├── wrappy │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── wrappy.js │ ├── wrench │ ├── .npmignore │ ├── LICENSE │ ├── lib │ │ └── wrench.js │ ├── package.json │ ├── readme.md │ └── tests │ │ ├── copydirsync_unix.js │ │ ├── mkdir.js │ │ ├── readdir.js │ │ ├── readdir │ │ ├── bar.txt │ │ └── foo │ │ │ ├── bar │ │ │ └── ipsum.js │ │ │ ├── dolor.md │ │ │ └── lorem.txt │ │ ├── rmdirSyncRecursive.js │ │ ├── runner.js │ │ ├── shown │ │ ├── .hidden.txt │ │ ├── .hidden │ │ │ └── dolor.md │ │ ├── bar.txt │ │ └── foo │ │ │ ├── bar │ │ │ └── ipsum.js │ │ │ ├── dolor.md │ │ │ └── lorem.txt │ │ └── withsymlinks │ │ └── test │ ├── yallist │ ├── .npmignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── test │ │ └── basic.js │ └── yallist.js │ └── yargs │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── completion.sh.hbs │ ├── index.js │ ├── lib │ ├── completion.js │ ├── parser.js │ ├── usage.js │ └── validation.js │ └── package.json ├── docs ├── animation.md ├── app.md ├── button.md ├── canvas.md ├── checkbox.md ├── color.md ├── dropdown.md ├── fileinput.md ├── filereader.md ├── image.md ├── link.md ├── list.md ├── listitem.md ├── location.md ├── notification.md ├── page.md ├── player.md ├── progressbar.md ├── radiobutton.md ├── request.md ├── say.md ├── slider.md ├── speechrecognition.md ├── store.md ├── text.md ├── textinput.md ├── thread.md ├── utils.md ├── view.md └── webview.md ├── sources ├── coffee │ ├── Animation.coffee │ ├── AnimationLoop.coffee │ ├── Animator.coffee │ ├── Animators │ │ ├── BezierCurveAnimator.coffee │ │ ├── LinearAnimator.coffee │ │ ├── SpringDHOAnimator.coffee │ │ └── SpringRK4Animator.coffee │ ├── App.coffee │ ├── Button.coffee │ ├── Canvas.coffee │ ├── Capture.coffee │ ├── Checkbox.coffee │ ├── Clipboard.coffee │ ├── Color.coffee │ ├── Config.coffee │ ├── Context.coffee │ ├── Cookie.coffee │ ├── DOMEventManager.coffee │ ├── Defaults.coffee │ ├── Device.coffee │ ├── Dropdown.coffee │ ├── Element.coffee │ ├── Event.coffee │ ├── EventBuffer.coffee │ ├── EventEmitter.coffee │ ├── Experimental │ │ ├── VR.coffee │ │ └── WebDB.coffee │ ├── FileInput.coffee │ ├── FileReader.coffee │ ├── Fonts.coffee │ ├── GestureRecognizer.coffee │ ├── Helper.coffee │ ├── Image.coffee │ ├── Import.coffee │ ├── Integrator.coffee │ ├── Link.coffee │ ├── List.coffee │ ├── ListItem.coffee │ ├── Location.coffee │ ├── MagiX.coffee │ ├── MagiXLoader.coffee │ ├── Notification.coffee │ ├── Page.coffee │ ├── Player.coffee │ ├── Preload.coffee │ ├── ProgressBar.coffee │ ├── RadioButton.coffee │ ├── Request.coffee │ ├── Routes.coffee │ ├── Say.coffee │ ├── Simulation.coffee │ ├── Simulator.coffee │ ├── Simulators │ │ ├── FrictionSimulator.coffee │ │ ├── MomentumBounceSimulator.coffee │ │ └── SpringSimulator.coffee │ ├── Slider.coffee │ ├── SpeechRecognition.coffee │ ├── Store.coffee │ ├── Text.coffee │ ├── TextInput.coffee │ ├── Thread.coffee │ ├── TouchEmulator.coffee │ ├── Transition.coffee │ ├── Utils.coffee │ ├── View.coffee │ ├── ViewDraggable.coffee │ ├── ViewStates.coffee │ ├── WebView.coffee │ ├── When.coffee │ ├── lib │ │ ├── EE3.js │ │ ├── EE3.min.js │ │ ├── LAB.min.js │ │ ├── husl.js │ │ └── husl.min.js │ └── log.coffee ├── experimental │ ├── Capture.js │ ├── FastBlur.js │ ├── Gamepad.coffee │ ├── Gamepad.js │ ├── Graphics.js │ ├── GraphicsGeometry.js │ ├── GraphicsLight.js │ ├── GraphicsMaterial.js │ ├── VR.js │ ├── editor │ │ ├── Cursors.js │ │ ├── Editor.js │ │ ├── EditorText.js │ │ └── ScrollBar.js │ └── three.min.js ├── js │ ├── Animation.js │ ├── AnimationLoop.js │ ├── Animator.js │ ├── Animators │ │ ├── BezierCurveAnimator.js │ │ ├── LinearAnimator.js │ │ ├── SpringDHOAnimator.js │ │ └── SpringRK4Animator.js │ ├── App.js │ ├── Button.js │ ├── Canvas.js │ ├── Capture.js │ ├── Checkbox.js │ ├── Clipboard.js │ ├── Color.js │ ├── Config.js │ ├── Context.js │ ├── Cookie.js │ ├── DOMEventManager.js │ ├── Defaults.js │ ├── Device.js │ ├── Dropdown.js │ ├── Element.js │ ├── Event.js │ ├── EventBuffer.js │ ├── EventEmitter.js │ ├── Experimental │ │ ├── VR.js │ │ └── WebDB.js │ ├── FileInput.js │ ├── FileReader.js │ ├── Fonts.js │ ├── GestureRecognizer.js │ ├── Helper.js │ ├── Image.js │ ├── Import.js │ ├── Integrator.js │ ├── Link.js │ ├── List.js │ ├── ListItem.js │ ├── Location.js │ ├── MagiX.js │ ├── MagiXLoader.js │ ├── Notification.js │ ├── Page.js │ ├── Player.js │ ├── Preload.js │ ├── ProgressBar.js │ ├── RadioButton.js │ ├── Request.js │ ├── Routes.js │ ├── Say.js │ ├── Simulation.js │ ├── Simulator.js │ ├── Simulators │ │ ├── FrictionSimulator.js │ │ ├── MomentumBounceSimulator.js │ │ └── SpringSimulator.js │ ├── Slider.js │ ├── SpeechRecognition.js │ ├── Store.js │ ├── Text.js │ ├── TextInput.js │ ├── Thread.js │ ├── TouchEmulator.js │ ├── Transition.js │ ├── Utils.js │ ├── View.js │ ├── ViewDraggable.js │ ├── ViewStates.js │ ├── WebView.js │ ├── When.js │ ├── lib │ │ ├── EE3.js │ │ ├── EE3.min.js │ │ ├── LAB.min.js │ │ ├── husl.js │ │ └── husl.min.js │ └── log.js └── manuals │ ├── Player │ └── Reader └── test ├── build └── index.html └── dev ├── index.coffee ├── index.html └── index.js /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | -------------------------------------------------------------------------------- /compiler/node_modules/.bin/bunyan: -------------------------------------------------------------------------------- 1 | ../bunyan/bin/bunyan -------------------------------------------------------------------------------- /compiler/node_modules/.bin/mime: -------------------------------------------------------------------------------- 1 | ../mime/cli.js -------------------------------------------------------------------------------- /compiler/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /compiler/node_modules/.bin/ncp: -------------------------------------------------------------------------------- 1 | ../ncp/bin/ncp -------------------------------------------------------------------------------- /compiler/node_modules/.bin/report-latency: -------------------------------------------------------------------------------- 1 | ../restify/bin/report-latency -------------------------------------------------------------------------------- /compiler/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../rimraf/bin.js -------------------------------------------------------------------------------- /compiler/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /compiler/node_modules/.bin/uglifyjs: -------------------------------------------------------------------------------- 1 | ../uglify-js/bin/uglifyjs -------------------------------------------------------------------------------- /compiler/node_modules/.bin/uuid: -------------------------------------------------------------------------------- 1 | ../node-uuid/bin/uuid -------------------------------------------------------------------------------- /compiler/node_modules/asn1/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/asn1/lib/ber/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | 6 | newInvalidAsn1Error: function(msg) { 7 | var e = new Error(); 8 | e.name = 'InvalidAsn1Error'; 9 | e.message = msg || ''; 10 | return e; 11 | } 12 | 13 | }; 14 | -------------------------------------------------------------------------------- /compiler/node_modules/asn1/lib/ber/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | var errors = require('./errors'); 4 | var types = require('./types'); 5 | 6 | var Reader = require('./reader'); 7 | var Writer = require('./writer'); 8 | 9 | 10 | ///--- Exports 11 | 12 | module.exports = { 13 | 14 | Reader: Reader, 15 | 16 | Writer: Writer 17 | 18 | }; 19 | 20 | for (var t in types) { 21 | if (types.hasOwnProperty(t)) 22 | module.exports[t] = types[t]; 23 | } 24 | for (var e in errors) { 25 | if (errors.hasOwnProperty(e)) 26 | module.exports[e] = errors[e]; 27 | } 28 | -------------------------------------------------------------------------------- /compiler/node_modules/asn1/lib/ber/types.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | EOC: 0, 6 | Boolean: 1, 7 | Integer: 2, 8 | BitString: 3, 9 | OctetString: 4, 10 | Null: 5, 11 | OID: 6, 12 | ObjectDescriptor: 7, 13 | External: 8, 14 | Real: 9, // float 15 | Enumeration: 10, 16 | PDV: 11, 17 | Utf8String: 12, 18 | RelativeOID: 13, 19 | Sequence: 16, 20 | Set: 17, 21 | NumericString: 18, 22 | PrintableString: 19, 23 | T61String: 20, 24 | VideotexString: 21, 25 | IA5String: 22, 26 | UTCTime: 23, 27 | GeneralizedTime: 24, 28 | GraphicString: 25, 29 | VisibleString: 26, 30 | GeneralString: 28, 31 | UniversalString: 29, 32 | CharacterString: 30, 33 | BMPString: 31, 34 | Constructor: 32, 35 | Context: 128 36 | }; 37 | -------------------------------------------------------------------------------- /compiler/node_modules/asn1/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | // If you have no idea what ASN.1 or BER is, see this: 4 | // ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc 5 | 6 | var Ber = require('./ber/index'); 7 | 8 | 9 | 10 | ///--- Exported API 11 | 12 | module.exports = { 13 | 14 | Ber: Ber, 15 | 16 | BerReader: Ber.Reader, 17 | 18 | BerWriter: Ber.Writer 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/balanced-match/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .gitignore 3 | .travis.yml 4 | Makefile 5 | example.js 6 | -------------------------------------------------------------------------------- /compiler/node_modules/buffer-shims/readme.md: -------------------------------------------------------------------------------- 1 | buffer-shims 2 | === 3 | 4 | functions to make sure the new buffer methods work in older browsers. 5 | 6 | ```js 7 | var bufferShim = require('buffer-shims'); 8 | bufferShim.from('foo'); 9 | bufferShim.alloc(9, 'cafeface', 'hex'); 10 | bufferShim.allocUnsafe(15); 11 | bufferShim.allocUnsafeSlow(21); 12 | ``` 13 | 14 | should just use the original in newer nodes and on older nodes uses fallbacks. 15 | 16 | Known Issues 17 | === 18 | - this does not patch the buffer object, only the constructor stuff 19 | - it's actually a polyfill 20 | 21 | ![](https://i.imgur.com/zxII3jJ.gif) 22 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/.npmignore: -------------------------------------------------------------------------------- 1 | /tmp 2 | /node_modules 3 | *.log 4 | /examples 5 | /test 6 | /*.tgz 7 | /tools 8 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/docs/img/bunyan.browserify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/docs/img/bunyan.browserify.png -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/docs/index.html: -------------------------------------------------------------------------------- 1 | bunyan(1) man page 2 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "libusdt"] 2 | path = libusdt 3 | url = https://github.com/chrisa/libusdt 4 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/.npmignore: -------------------------------------------------------------------------------- 1 | .lock-wscript 2 | *.node 3 | *~ 4 | .#* 5 | *# 6 | build 7 | *.log 8 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/TODO.md: -------------------------------------------------------------------------------- 1 | # dtrace-provider - TODO 2 | 3 | ## FEATURES 4 | 5 | ### Structured Arguments 6 | 7 | The current support for argument types is limited to "char *" and 8 | "int", i.e. strings and integer types. Native string types in 9 | Javascript are converted to raw C strings for use with DTrace. 10 | 11 | With support for dynamic types and translators from the host DTrace 12 | implementation, it'd be possible to provide a mapping from Javascript 13 | objects to C structs, which could then be inspected in D scripts. 14 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/.deps/..d: -------------------------------------------------------------------------------- 1 | cmd_. := LD_LIBRARY_PATH=/Users/dev/Documents/magixframework/framework/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/lib.host:/Users/dev/Documents/magixframework/framework/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/lib.target:$$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; sh libusdt-build.sh 2 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/.deps/Release/DTraceProviderBindings.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/DTraceProviderBindings.node := c++ -bundle -undefined dynamic_lookup -Wl,-no_pie -Wl,-search_paths_first -mmacosx-version-min=10.7 -arch x86_64 -L./Release -stdlib=libc++ -o Release/DTraceProviderBindings.node Release/obj.target/DTraceProviderBindings/dtrace_provider.o Release/obj.target/DTraceProviderBindings/dtrace_probe.o Release/obj.target/DTraceProviderBindings/dtrace_argument.o -L/Users/dev/Documents/magixframework/framework/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt -l usdt 2 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/.deps/Release/obj.target/libusdt.stamp.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/libusdt.stamp := touch Release/obj.target/libusdt.stamp 2 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_argument.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_argument.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_probe.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_probe.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_provider.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_provider.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/libusdt.stamp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/build/Release/obj.target/libusdt.stamp -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= ./build/. 4 | .PHONY: all 5 | all: 6 | $(MAKE) libusdt DTraceProviderBindings 7 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt-arch.js: -------------------------------------------------------------------------------- 1 | // Output the architecture of this node build, either 'i386' or 2 | // 'x86_64' 3 | // 4 | // This copes with both node 0.6.x and 0.8.x. 5 | 6 | try { 7 | // node 0.8 8 | console.log(process.config.variables.target_arch == 'x64' ? 'x86_64' : 'i386') 9 | } 10 | catch (TypeError) { 11 | // node 0.6 12 | console.log(process.arch == 'x64' ? 'x86_64' : 'i386') 13 | }; 14 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/.npmignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.a 3 | *.gch 4 | *~ 5 | *# 6 | .#* 7 | test_usdt 8 | test_usdt32 9 | test_usdt64 10 | test_mem_usage 11 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/libusdt.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/libusdt.a -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_dof.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_dof.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_dof_file.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_dof_file.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_dof_sections.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_dof_sections.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_probe.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_probe.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_tracepoints.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/bunyan/node_modules/dtrace-provider/libusdt/usdt_tracepoints.o -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/32probe_fire.js: -------------------------------------------------------------------------------- 1 | // see 32probe.test.js 2 | 3 | var d = require('../dtrace-provider'); 4 | 5 | var provider = d.createDTraceProvider("testlibusdt"); 6 | var probe = provider.addProbe( 7 | "32probe", 8 | "int", "int", "int", "int", "int", "int", "int", "int", 9 | "int", "int", "int", "int", "int", "int", "int", "int", 10 | "int", "int", "int", "int", "int", "int", "int", "int", 11 | "int", "int", "int", "int", "int", "int", "int", "int"); 12 | 13 | provider.enable(); 14 | 15 | var args = []; 16 | for (var n = 1; n <= 32; n++) { 17 | args.push(n); 18 | probe.fire(function(p) { 19 | return args; 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/add-probes_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | dtp.addProbe("probe0", "int"); 4 | dtp.enable(); 5 | dtp.fire("probe0", function(p) { return [0]; }); 6 | 7 | for (var i = 1; i < 10; i++) { 8 | dtp.addProbe("probe" + i, "int"); 9 | dtp.disable(); 10 | dtp.enable(); 11 | for (var j = 0; j < i; j++) { 12 | dtp.fire("probe" + j, function(p) { return [i]; }); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/basic.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'basic probes', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%d\\n", arg0); printf("%s\\n", copyinstr(arg1)) }', 13 | '-c', format('node %s/basic_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '42'); 18 | t.equal(traces[1], 'forty-two'); 19 | } 20 | ) 21 | ); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/basic_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "int", "char *"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [42, 'forty-two']; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/create-destroy_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | 3 | for (var i = 0; i < 10; i++) { 4 | //gc(); 5 | var dtp = d.createDTraceProvider("nodeapp"); 6 | dtp.addProbe("probe1", "int"); 7 | dtp.enable(); 8 | dtp.fire("probe1", function(p) { return [i]; }); 9 | //dtp.disable(); 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/enabled-disabled_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | dtp.addProbe("probe1", "int"); 4 | dtp.enable(); 5 | dtp.fire("probe1", function(p) { return [0]; }); 6 | 7 | for (var i = 1; i <= 10; i++) { 8 | dtp.enable(); 9 | dtp.fire("probe1", function(p) { return [i]; }); 10 | dtp.disable(); 11 | //gc(); 12 | } 13 | dtp.fire("probe1", function(p) { return [42]; }); 14 | 15 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/enabledagain_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | dtp.addProbe("probe1", "int"); 4 | dtp.enable(); 5 | dtp.fire("probe1", function(p) { return [1]; }); 6 | dtp.enable(); 7 | dtp.fire("probe1", function(p) { return [2]; }); 8 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/fewer-args-json.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'firing JSON probe with too few arguments', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%s\\n%s\\n", copyinstr(arg0), copyinstr(arg1)); }', 13 | '-c', format('node %s/fewer-args-json_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '{"foo":1}'); 18 | t.equal(traces[1], 'undefined'); 19 | } 20 | ) 21 | ); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/fewer-args-json_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "json", "json"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [{ "foo": 1 }]; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/fewer-args.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'firing probe with too few arguments', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%d\\n%d\\n%s\\n", arg0, arg1, copyinstr(arg2)); }', 13 | '-c', format('node %s/fewer-args_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '42'); 18 | t.equal(traces[1], '0'); 19 | t.equal(traces[2], 'undefined'); 20 | } 21 | ) 22 | ); 23 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/fewer-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "int", "int", "char *"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [42]; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/gc.js: -------------------------------------------------------------------------------- 1 | // expected output: 2 | // 3 | // $ sudo dtrace -Zn 'nodeapp*:::gcprobe{ trace(arg0); }' -c 'node --expose_gc test/gc.js' 4 | // Dtrace: description 'nodeapp*:::gcprobe' matched 0 probes 5 | // dtrace: pid 66257 has exited 6 | // CPU ID FUNCTION:NAME 7 | // 1 1778 gcprobe:gcprobe 4320227343 8 | 9 | var d = require('../dtrace-provider'); 10 | var dtp = d.createDTraceProvider("nodeapp"); 11 | 12 | // don't assign the returned probe object anywhere 13 | dtp.addProbe("gcprobe", "int"); 14 | dtp.enable(); 15 | 16 | // run GC 17 | gc(); 18 | 19 | // probe object should still be around 20 | dtp.fire("gcprobe", function() { 21 | return []; 22 | }); 23 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/gc.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'check probe object is not GCd while provider exists', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::gcprobe{ printf("%d\\n", arg0); }', 13 | '-c', format('node --expose_gc %s/gc_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '0'); 18 | } 19 | ) 20 | ); 21 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/gc2.js: -------------------------------------------------------------------------------- 1 | // node --expose_gc ... 2 | 3 | var d = require('../dtrace-provider'); 4 | var dtp = d.createDTraceProvider("testlibusdt"); 5 | 6 | // don't assign the returned probe object anywhere 7 | var p = dtp.addProbe("gcprobe"); 8 | dtp.enable(); 9 | 10 | // run GC 11 | gc(); 12 | 13 | // probe object should still be around 14 | dtp.fire("gcprobe", function() { 15 | return []; 16 | }); 17 | 18 | dtp = "something else"; 19 | gc(); 20 | 21 | p.fire(function() { 22 | return []; 23 | }); 24 | 25 | p = "something else"; 26 | 27 | gc(); 28 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/gc3.js: -------------------------------------------------------------------------------- 1 | // node --expose_gc ... 2 | 3 | var d = require('../dtrace-provider'); 4 | 5 | for (var i = 0; i < 1000000; i++) { 6 | console.log("i: " + i); 7 | var dtp = d.createDTraceProvider("testlibusdt" + i); 8 | var p = dtp.addProbe("gcprobe"); 9 | dtp.enable(); 10 | dtp.disable(); 11 | } 12 | gc(); 13 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/gc_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | 4 | // don't assign the returned probe object anywhere 5 | dtp.addProbe("gcprobe", "int"); 6 | dtp.enable(); 7 | 8 | // run GC 9 | gc(); 10 | 11 | // probe object should still be around 12 | dtp.fire("gcprobe", function() { 13 | return []; 14 | }); 15 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/json-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("json1", "json"); 4 | provider.enable(); 5 | 6 | var obj = new Object; 7 | obj.foo = 42; 8 | obj.bar = 'forty-two'; 9 | 10 | probe.fire(function(p) { 11 | return [obj]; 12 | }); 13 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/more-args.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'firing probe with too many arguments', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%d\\n%d\\n", arg0, arg1); }', 13 | '-c', format('node %s/more-args_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '1'); 18 | t.equal(traces[1], '2'); 19 | } 20 | ) 21 | ); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/more-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "int", "int"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [1, 2, 3, 4]; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/multiple-json-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("json1", "json", "json"); 4 | provider.enable(); 5 | 6 | var obj1 = { "value": "abc" }; 7 | var obj2 = { "value": "def" }; 8 | 9 | probe.fire(function(p) { 10 | return [obj1, obj2]; 11 | }); 12 | -------------------------------------------------------------------------------- /compiler/node_modules/bunyan/node_modules/dtrace-provider/test/notenabled.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var d = require('../dtrace-provider'); 3 | 4 | test( 5 | 'firing probes when provider not enabled', 6 | function(t) { 7 | var dtp = d.createDTraceProvider("nodeapp"); 8 | dtp.addProbe("probe1", "int"); 9 | //dtp.enable(); 10 | dtp.fire("probe1", function(p) { 11 | t.notOk(); 12 | return [1]; 13 | }); 14 | t.ok(1, 'no problem'); 15 | t.end(); 16 | } 17 | ); 18 | 19 | -------------------------------------------------------------------------------- /compiler/node_modules/camelcase/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function () { 3 | var str = [].map.call(arguments, function (str) { 4 | return str.trim(); 5 | }).filter(function (str) { 6 | return str.length; 7 | }).join('-'); 8 | 9 | if (!str.length) { 10 | return ''; 11 | } 12 | 13 | if (str.length === 1 || !(/[_.\- ]+/).test(str) ) { 14 | if (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) { 15 | return str; 16 | } 17 | 18 | return str.toLowerCase(); 19 | } 20 | 21 | return str 22 | .replace(/^[_.\- ]+/, '') 23 | .toLowerCase() 24 | .replace(/[_.\- ]+(\w|$)/g, function (m, p1) { 25 | return p1.toUpperCase(); 26 | }); 27 | }; 28 | -------------------------------------------------------------------------------- /compiler/node_modules/center-align/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * center-align 3 | * 4 | * Copycenter (c) 2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var utils = require('./utils'); 11 | 12 | module.exports = function centerAlign(val) { 13 | return utils.align(val, function (len, longest) { 14 | return Math.floor((longest - len) / 2); 15 | }); 16 | }; 17 | -------------------------------------------------------------------------------- /compiler/node_modules/cliui/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: NiRhyj91Z2vtgob6XdEAqs83rzNnbMZUu 2 | -------------------------------------------------------------------------------- /compiler/node_modules/cliui/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | -------------------------------------------------------------------------------- /compiler/node_modules/cliui/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | - "0.12" 6 | - "iojs" 7 | after_script: "NODE_ENV=test YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha --require patched-blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js" 8 | -------------------------------------------------------------------------------- /compiler/node_modules/cliui/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Contributors 2 | 3 | Permission to use, copy, modify, and/or distribute this software 4 | for any purpose with or without fee is hereby granted, provided 5 | that the above copyright notice and this permission notice 6 | appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 10 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 11 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 12 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 13 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 14 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /compiler/node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /compiler/node_modules/concat-map/example/map.js: -------------------------------------------------------------------------------- 1 | var concatMap = require('../'); 2 | var xs = [ 1, 2, 3, 4, 5, 6 ]; 3 | var ys = concatMap(xs, function (x) { 4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; 5 | }); 6 | console.dir(ys); 7 | -------------------------------------------------------------------------------- /compiler/node_modules/concat-map/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (xs, fn) { 2 | var res = []; 3 | for (var i = 0; i < xs.length; i++) { 4 | var x = fn(xs[i], i); 5 | if (isArray(x)) res.push.apply(res, x); 6 | else res.push(x); 7 | } 8 | return res; 9 | }; 10 | 11 | var isArray = Array.isArray || function (xs) { 12 | return Object.prototype.toString.call(xs) === '[object Array]'; 13 | }; 14 | -------------------------------------------------------------------------------- /compiler/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-generate/.npmignore: -------------------------------------------------------------------------------- 1 | /src 2 | /test 3 | /Makefile 4 | .travis.yml -------------------------------------------------------------------------------- /compiler/node_modules/csv-generate/samples/callback.js: -------------------------------------------------------------------------------- 1 | 2 | should = require('should'); 3 | generate = require('../lib'); 4 | 5 | generate({seed: 1, columns: 2, length: 2}, function(err, output){ 6 | output.should.eql('OMH,ONKCHhJmjadoA\nD,GeACHiN'); 7 | }); 8 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-generate/samples/pipe.js: -------------------------------------------------------------------------------- 1 | 2 | should = require('should'); 3 | generate = require('../lib'); 4 | 5 | var generator = generate({columns: ['int', 'bool'], length: 2}); 6 | generator.pipe(process.stdout); 7 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-generate/samples/stream.js: -------------------------------------------------------------------------------- 1 | 2 | should = require('should'); 3 | generate = require('../lib'); 4 | 5 | var data = [] 6 | var generator = generate({seed: 1, objectMode: true, columns: 2, length: 2}); 7 | generator.on('readable', function(){ 8 | while(d = generator.read()){ 9 | data.push(d); 10 | } 11 | }); 12 | generator.on('error', function(err){ 13 | console.log(err); 14 | }); 15 | generator.on('end', function(){ 16 | data.should.eql([ [ 'OMH', 'ONKCHhJmjadoA' ],[ 'D', 'GeACHiN' ] ]); 17 | }); 18 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/.npmignore: -------------------------------------------------------------------------------- 1 | /src 2 | /test 3 | /Makefile 4 | .travis.yml -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/callback.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "should" must be installed: 3 | // `npm install should` 4 | 5 | var parse = require('../lib'); 6 | require('should'); 7 | 8 | var input = '#Welcome\n"1","2","3","4"\n"a","b","c","d"'; 9 | parse(input, {comment: '#'}, function(err, output){ 10 | output.should.eql([ [ '1', '2', '3', '4' ], [ 'a', 'b', 'c', 'd' ] ]); 11 | }); 12 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/columns-discovery.in: -------------------------------------------------------------------------------- 1 | Foo,Bar,Baz 2 | first,row,items 3 | second,row,items -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/columns-discovery.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "should" must be installed: 3 | // `npm install should` 4 | 5 | fs = require('fs'); 6 | parse = require('..'); 7 | 8 | // Using the first line of the CSV data to discover the column names 9 | rs = fs.createReadStream(__dirname+'/columns-discovery.in'); 10 | parser = parse({columns: true}, function(err, data){ 11 | console.log(data); 12 | }) 13 | rs.pipe(parser); 14 | 15 | /* 16 | 17 | `node samples/header-based-columns.js` 18 | 19 | [ { Foo: 'first', Bar: 'row', Baz: 'items' }, 20 | { Foo: 'second', Bar: 'row', Baz: 'items' } ] 21 | 22 | */ -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/comment.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "should" must be installed: 3 | // `npm install should` 4 | 5 | var parse = require('..'); 6 | should = require('should') 7 | 8 | parse( 9 | '#Welcome\n"1","2","3","4"\n"a","b","c","d"', 10 | {comment: '#'}, 11 | function(err, data){ 12 | data.should.eql([ [ '1', '2', '3', '4' ], [ 'a', 'b', 'c', 'd' ] ]); 13 | } 14 | ); 15 | 16 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/fs_read.csv: -------------------------------------------------------------------------------- 1 | abc;123 2 | def;456 3 | ghi;789 4 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/fs_read.js: -------------------------------------------------------------------------------- 1 | 2 | var fs = require('fs'); 3 | var parse = require('..'); 4 | 5 | var parser = parse({delimiter: ';'}, function(err, data){ 6 | console.log(data); 7 | }); 8 | 9 | fs.createReadStream(__dirname+'/fs_read.csv').pipe(parser); 10 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/objname.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "should" must be installed: 3 | // `npm install should` 4 | 5 | var parse = require('..'); 6 | require('should'); 7 | 8 | parse( 9 | 'ColumnOne,ColumnTwo\nfirst,Data\nsecond,MoreData', 10 | {'columns':true, 'objname': "ColumnOne"}, 11 | function(err, data){ 12 | if(err) throw err; 13 | data.should.eql({ 14 | first: { ColumnOne: 'first', ColumnTwo: 'Data' }, 15 | second: { ColumnOne: 'second', ColumnTwo: 'MoreData' } 16 | }); 17 | } 18 | ); 19 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/pipe.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "stream-transform" must be installed: 3 | // `npm install stream-transform` 4 | 5 | var fs = require('fs'); 6 | var parse = require('..'); 7 | var transform = require('stream-transform'); 8 | 9 | var parser = parse({delimiter: ':'}) 10 | var input = fs.createReadStream('/etc/passwd'); 11 | var transformer = transform(function(record, callback){ 12 | setTimeout(function(){ 13 | callback(null, record.join(' ')+'\n'); 14 | }, 500); 15 | }, {parallel: 10}); 16 | input.pipe(parser).pipe(transformer).pipe(process.stdout); 17 | 18 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/sync.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "should" must be installed: 3 | // `npm install should` 4 | 5 | var parse = require('../lib/sync'); 6 | require('should'); 7 | 8 | var input = '"key_1","key_2"\n"value 1","value 2"'; 9 | var records = parse(input, {columns: true}); 10 | records.should.eql([{ key_1: 'value 1', key_2: 'value 2' }]); 11 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-parse/samples/tsv.js: -------------------------------------------------------------------------------- 1 | 2 | // The package "should" must be installed: 3 | // `npm install should` 4 | 5 | parse = require('..'); 6 | should = require('should'); 7 | 8 | parse( "1 2 3\ra b c", {delimiter: '\t'}, function(err, data){ 9 | if(err) throw err; 10 | data.should.eql([ [ '1', '2', '3' ], [ 'a', 'b', 'c' ] ]); 11 | }); 12 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-stringify/.npmignore: -------------------------------------------------------------------------------- 1 | /src 2 | /test 3 | /Makefile 4 | .travis.yml -------------------------------------------------------------------------------- /compiler/node_modules/csv-stringify/samples/api.callback.js: -------------------------------------------------------------------------------- 1 | 2 | should = require('should'); 3 | stringify = require('../lib'); 4 | 5 | input = [ [ '1', '2', '3', '4' ], [ 'a', 'b', 'c', 'd' ] ]; 6 | stringify(input, function(err, output){ 7 | output.should.eql('1,2,3,4\na,b,c,d'); 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-stringify/samples/api.pipe.js: -------------------------------------------------------------------------------- 1 | 2 | var stringify = require('../lib'); 3 | var generate = require('csv-generate'); 4 | 5 | generator = generate({objectMode: true, seed: 1, headers: 2}); 6 | stringifier = stringify(); 7 | 8 | generator.pipe(stringifier).pipe(process.stdout); -------------------------------------------------------------------------------- /compiler/node_modules/csv-stringify/samples/api.stream.js: -------------------------------------------------------------------------------- 1 | 2 | require('should'); 3 | var stringify = require('../lib'); 4 | 5 | data = ''; 6 | stringifier = stringify({delimiter: ':'}) 7 | stringifier.on('readable', function(){ 8 | while(row = stringifier.read()){ 9 | data += row; 10 | } 11 | }); 12 | stringifier.on('error', function(err){ 13 | console.log(err.message); 14 | }); 15 | stringifier.on('finish', function(){ 16 | data.should.eql( 17 | "root:x:0:0:root:/root:/bin/bash\n" + 18 | "someone:x:1022:1022:a funny cat:/home/someone:/bin/bash" 19 | ); 20 | }); 21 | stringifier.write([ 'root','x','0','0','root','/root','/bin/bash' ]); 22 | stringifier.write([ 'someone','x','1022','1022','a funny cat','/home/someone','/bin/bash' ]); 23 | stringifier.end(); 24 | -------------------------------------------------------------------------------- /compiler/node_modules/csv-stringify/samples/options.header.js: -------------------------------------------------------------------------------- 1 | 2 | // Output looks like: 3 | // birthYear,phone 4 | // OMH,ONKCHhJmjadoA 5 | 6 | var stringify = require('../lib'); 7 | var generate = require('csv-generate'); 8 | 9 | var generator = generate({objectMode: true, seed: 1, headers: 2}); 10 | 11 | var columns = { 12 | year: 'birthYear', 13 | phone: 'phone' 14 | }; 15 | var stringifier = stringify({ header: true, columns: columns }); 16 | 17 | generator.pipe(stringifier).pipe(process.stdout); 18 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/.npmignore: -------------------------------------------------------------------------------- 1 | .* 2 | #*.tmp 3 | /node_modules 4 | lib-cov 5 | samples/sample.out 6 | samples/perf.out 7 | !.travis.yml 8 | !.gitignore 9 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: 3 | @./node_modules/.bin/coffee -b -o lib src/ 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/doc/stringifier.md: -------------------------------------------------------------------------------- 1 | --- 2 | language: en 3 | layout: page 4 | title: "Stringifier" 5 | date: 2013-07-17T08:03:53.225Z 6 | comments: false 7 | sharing: false 8 | footer: false 9 | navigation: csv 10 | github: https://github.com/wdavidw/node-csv 11 | source: ./src/stringifier.coffee 12 | --- 13 | 14 | 15 | Convert an array or an object into a CSV line. 16 | 17 | 18 | `write(line, [preserve])` 19 | ------------------------- 20 | 21 | Write a line to the written stream. Line may be an object, an array or a string 22 | The `preserve` argument is for the lines which are not considered as CSV data. 23 | 24 | 25 | 26 | `Stringifier(line)` 27 | ------------------- 28 | 29 | Convert a line to a string. Line may be an object, an array or a string. 30 | 31 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/lib/index.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.7.1 2 | var generate, parse, stringify, transform; 3 | 4 | generate = require('csv-generate'); 5 | 6 | parse = require('csv-parse'); 7 | 8 | transform = require('stream-transform'); 9 | 10 | stringify = require('csv-stringify'); 11 | 12 | module.exports.generate = generate; 13 | 14 | module.exports.parse = parse; 15 | 16 | module.exports.transform = transform; 17 | 18 | module.exports.stringify = stringify; 19 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/samples/callback.js: -------------------------------------------------------------------------------- 1 | 2 | var csv = require('..'); 3 | 4 | csv.generate({seed: 1, columns: 2, length: 20}, function(err, data){ 5 | csv.parse(data, function(err, data){ 6 | csv.transform(data, function(data){ 7 | return data.map(function(value){return value.toUpperCase()}); 8 | }, function(err, data){ 9 | csv.stringify(data, function(err, data){ 10 | process.stdout.write(data); 11 | }); 12 | }); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/samples/pipe.js: -------------------------------------------------------------------------------- 1 | 2 | var csv = require('..'); 3 | 4 | csv.generate({seed: 1, columns: 2, length: 20}) 5 | .pipe(csv.parse()) 6 | .pipe(csv.transform(function(record){ 7 | return record.map(function(value){ 8 | return value.toUpperCase() 9 | }); 10 | })) 11 | .pipe(csv.stringify ()) 12 | .pipe(process.stdout); 13 | -------------------------------------------------------------------------------- /compiler/node_modules/csv/src/index.coffee.md: -------------------------------------------------------------------------------- 1 | 2 | # CSV 3 | 4 | generate = require 'csv-generate' 5 | parse = require 'csv-parse' 6 | transform = require 'stream-transform' 7 | stringify = require 'csv-stringify' 8 | 9 | ## `csv.generate()` 10 | 11 | Reference the CSV generator, alias to `require('csv-generate')`. 12 | 13 | module.exports.generate = generate 14 | 15 | ## `csv.parse()` 16 | 17 | Reference the CSV parser, alias to `require('csv-parse')`. 18 | 19 | module.exports.parse = parse 20 | 21 | ## `csv.transform()` 22 | 23 | Reference the stream transformer, alias to `require('stream-transform')`. 24 | 25 | module.exports.transform = transform 26 | 27 | ## `csv.stringify()` 28 | 29 | Reference the CSV stringifier, alias to `require('csv-stringify')`. 30 | 31 | module.exports.stringify = stringify 32 | 33 | 34 | -------------------------------------------------------------------------------- /compiler/node_modules/ctype/.npmignore: -------------------------------------------------------------------------------- 1 | tst/ 2 | -------------------------------------------------------------------------------- /compiler/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /compiler/node_modules/debug/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "visionmedia-debug", 3 | "main": "dist/debug.js", 4 | "homepage": "https://github.com/visionmedia/debug", 5 | "authors": [ 6 | "TJ Holowaychuk ", 7 | "Nathan Rajlich (http://n8.io)", 8 | "Andrew Rhyne " 9 | ], 10 | "description": "visionmedia-debug", 11 | "moduleType": [ 12 | "amd", 13 | "es6", 14 | "globals", 15 | "node" 16 | ], 17 | "keywords": [ 18 | "visionmedia", 19 | "debug" 20 | ], 21 | "license": "MIT", 22 | "ignore": [ 23 | "**/.*", 24 | "node_modules", 25 | "bower_components", 26 | "test", 27 | "tests" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/decamelize/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function (str, sep) { 3 | if (typeof str !== 'string') { 4 | throw new TypeError('Expected a string'); 5 | } 6 | 7 | sep = typeof sep === 'undefined' ? '_' : sep; 8 | 9 | return str 10 | .replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2') 11 | .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2') 12 | .toLowerCase(); 13 | }; 14 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "libusdt"] 2 | path = libusdt 3 | url = https://github.com/chrisa/libusdt 4 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/.npmignore: -------------------------------------------------------------------------------- 1 | .lock-wscript 2 | *.node 3 | *~ 4 | .#* 5 | *# 6 | build 7 | *.log 8 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/TODO.md: -------------------------------------------------------------------------------- 1 | # dtrace-provider - TODO 2 | 3 | ## FEATURES 4 | 5 | ### Structured Arguments 6 | 7 | The current support for argument types is limited to "char *" and 8 | "int", i.e. strings and integer types. Native string types in 9 | Javascript are converted to raw C strings for use with DTrace. 10 | 11 | With support for dynamic types and translators from the host DTrace 12 | implementation, it'd be possible to provide a mapping from Javascript 13 | objects to C structs, which could then be inspected in D scripts. 14 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/.deps/..d: -------------------------------------------------------------------------------- 1 | cmd_. := LD_LIBRARY_PATH=/Users/dev/Documents/magixframework/framework/compiler/node_modules/dtrace-provider/build/Release/lib.host:/Users/dev/Documents/magixframework/framework/compiler/node_modules/dtrace-provider/build/Release/lib.target:$$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; sh libusdt-build.sh 2 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/.deps/Release/DTraceProviderBindings.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/DTraceProviderBindings.node := c++ -bundle -undefined dynamic_lookup -Wl,-no_pie -Wl,-search_paths_first -mmacosx-version-min=10.7 -arch x86_64 -L./Release -stdlib=libc++ -o Release/DTraceProviderBindings.node Release/obj.target/DTraceProviderBindings/dtrace_provider.o Release/obj.target/DTraceProviderBindings/dtrace_probe.o Release/obj.target/DTraceProviderBindings/dtrace_argument.o -L/Users/dev/Documents/magixframework/framework/compiler/node_modules/dtrace-provider/libusdt -l usdt 2 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/.deps/Release/obj.target/libusdt.stamp.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/libusdt.stamp := touch Release/obj.target/libusdt.stamp 2 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_argument.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_argument.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_probe.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_probe.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_provider.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/build/Release/obj.target/DTraceProviderBindings/dtrace_provider.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/Release/obj.target/libusdt.stamp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/build/Release/obj.target/libusdt.stamp -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= ./build/. 4 | .PHONY: all 5 | all: 6 | $(MAKE) libusdt DTraceProviderBindings 7 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt-arch.js: -------------------------------------------------------------------------------- 1 | // Output the architecture of this node build, either 'i386' or 2 | // 'x86_64' 3 | // 4 | // This copes with both node 0.6.x and 0.8.x. 5 | 6 | try { 7 | // node 0.8 8 | console.log(process.config.variables.target_arch == 'x64' ? 'x86_64' : 'i386') 9 | } 10 | catch (TypeError) { 11 | // node 0.6 12 | console.log(process.arch == 'x64' ? 'x86_64' : 'i386') 13 | }; 14 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/.npmignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.a 3 | *.gch 4 | *~ 5 | *# 6 | .#* 7 | test_usdt 8 | test_usdt32 9 | test_usdt64 10 | test_mem_usage 11 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/libusdt.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/libusdt.a -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/usdt.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/usdt.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/usdt_dof.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/usdt_dof.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/usdt_dof_file.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/usdt_dof_file.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/usdt_dof_sections.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/usdt_dof_sections.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/usdt_probe.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/usdt_probe.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/libusdt/usdt_tracepoints.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/dtrace-provider/libusdt/usdt_tracepoints.o -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/32probe_fire.js: -------------------------------------------------------------------------------- 1 | // see 32probe.test.js 2 | 3 | var d = require('../dtrace-provider'); 4 | 5 | var provider = d.createDTraceProvider("testlibusdt"); 6 | var probe = provider.addProbe( 7 | "32probe", 8 | "int", "int", "int", "int", "int", "int", "int", "int", 9 | "int", "int", "int", "int", "int", "int", "int", "int", 10 | "int", "int", "int", "int", "int", "int", "int", "int", 11 | "int", "int", "int", "int", "int", "int", "int", "int"); 12 | 13 | provider.enable(); 14 | 15 | var args = []; 16 | for (var n = 1; n <= 32; n++) { 17 | args.push(n); 18 | probe.fire(function(p) { 19 | return args; 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/add-probes_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | dtp.addProbe("probe0", "int"); 4 | dtp.enable(); 5 | dtp.fire("probe0", function(p) { return [0]; }); 6 | 7 | for (var i = 1; i < 10; i++) { 8 | dtp.addProbe("probe" + i, "int"); 9 | dtp.disable(); 10 | dtp.enable(); 11 | for (var j = 0; j < i; j++) { 12 | dtp.fire("probe" + j, function(p) { return [i]; }); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/basic.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'basic probes', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%d\\n", arg0); printf("%s\\n", copyinstr(arg1)) }', 13 | '-c', format('node %s/basic_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '42'); 18 | t.equal(traces[1], 'forty-two'); 19 | } 20 | ) 21 | ); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/basic_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "int", "char *"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [42, 'forty-two']; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/create-destroy.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'creating and destroying a provider', 7 | dtest( 8 | function() { }, 9 | [ 10 | 'dtrace', '-Zqn', 11 | 'nodeapp*:::{ printf("%d\\n", arg0); }', 12 | '-c', format('node %s/create-destroy_fire.js', __dirname) 13 | ], 14 | function(t, exit_code, traces) { 15 | t.notOk(exit_code, 'dtrace exited cleanly'); 16 | t.equal(traces.length, 10); 17 | traces.sort(function(a, b) { return a - b }); 18 | for (var i = 0; i < 10; i++) { 19 | t.equal(traces[i], [i].toString()); 20 | } 21 | } 22 | ) 23 | ); 24 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/create-destroy_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | 3 | for (var i = 0; i < 10; i++) { 4 | //gc(); 5 | var dtp = d.createDTraceProvider("nodeapp"); 6 | dtp.addProbe("probe1", "int"); 7 | dtp.enable(); 8 | dtp.fire("probe1", function(p) { return [i]; }); 9 | //dtp.disable(); 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/enabled-disabled.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'enabling and disabling a provider', 7 | dtest( 8 | function() { }, 9 | [ 10 | 'dtrace', '-Zqn', 11 | 'nodeapp*:::{ printf("%d\\n", arg0); }', 12 | '-c', format('node %s/enabled-disabled_fire.js', __dirname) 13 | ], 14 | function(t, exit_code, traces) { 15 | t.notOk(exit_code, 'dtrace exited cleanly'); 16 | t.equal(traces.length, 11); 17 | traces.sort(function(a, b) { return a - b }); 18 | for (var i = 0; i < 10; i++) { 19 | t.equal(traces[i], [i].toString()); 20 | } 21 | } 22 | ) 23 | ); 24 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/enabled-disabled_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | dtp.addProbe("probe1", "int"); 4 | dtp.enable(); 5 | dtp.fire("probe1", function(p) { return [0]; }); 6 | 7 | for (var i = 1; i <= 10; i++) { 8 | dtp.enable(); 9 | dtp.fire("probe1", function(p) { return [i]; }); 10 | dtp.disable(); 11 | //gc(); 12 | } 13 | dtp.fire("probe1", function(p) { return [42]; }); 14 | 15 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/enabledagain_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | dtp.addProbe("probe1", "int"); 4 | dtp.enable(); 5 | dtp.fire("probe1", function(p) { return [1]; }); 6 | dtp.enable(); 7 | dtp.fire("probe1", function(p) { return [2]; }); 8 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/fewer-args-json.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'firing JSON probe with too few arguments', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%s\\n%s\\n", copyinstr(arg0), copyinstr(arg1)); }', 13 | '-c', format('node %s/fewer-args-json_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '{"foo":1}'); 18 | t.equal(traces[1], 'undefined'); 19 | } 20 | ) 21 | ); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/fewer-args-json_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "json", "json"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [{ "foo": 1 }]; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/fewer-args.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'firing probe with too few arguments', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%d\\n%d\\n%s\\n", arg0, arg1, copyinstr(arg2)); }', 13 | '-c', format('node %s/fewer-args_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '42'); 18 | t.equal(traces[1], '0'); 19 | t.equal(traces[2], 'undefined'); 20 | } 21 | ) 22 | ); 23 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/fewer-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "int", "int", "char *"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [42]; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/gc.js: -------------------------------------------------------------------------------- 1 | // expected output: 2 | // 3 | // $ sudo dtrace -Zn 'nodeapp*:::gcprobe{ trace(arg0); }' -c 'node --expose_gc test/gc.js' 4 | // Dtrace: description 'nodeapp*:::gcprobe' matched 0 probes 5 | // dtrace: pid 66257 has exited 6 | // CPU ID FUNCTION:NAME 7 | // 1 1778 gcprobe:gcprobe 4320227343 8 | 9 | var d = require('../dtrace-provider'); 10 | var dtp = d.createDTraceProvider("nodeapp"); 11 | 12 | // don't assign the returned probe object anywhere 13 | dtp.addProbe("gcprobe", "int"); 14 | dtp.enable(); 15 | 16 | // run GC 17 | gc(); 18 | 19 | // probe object should still be around 20 | dtp.fire("gcprobe", function() { 21 | return []; 22 | }); 23 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/gc.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'check probe object is not GCd while provider exists', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::gcprobe{ printf("%d\\n", arg0); }', 13 | '-c', format('node --expose_gc %s/gc_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '0'); 18 | } 19 | ) 20 | ); 21 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/gc2.js: -------------------------------------------------------------------------------- 1 | // node --expose_gc ... 2 | 3 | var d = require('../dtrace-provider'); 4 | var dtp = d.createDTraceProvider("testlibusdt"); 5 | 6 | // don't assign the returned probe object anywhere 7 | var p = dtp.addProbe("gcprobe"); 8 | dtp.enable(); 9 | 10 | // run GC 11 | gc(); 12 | 13 | // probe object should still be around 14 | dtp.fire("gcprobe", function() { 15 | return []; 16 | }); 17 | 18 | dtp = "something else"; 19 | gc(); 20 | 21 | p.fire(function() { 22 | return []; 23 | }); 24 | 25 | p = "something else"; 26 | 27 | gc(); 28 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/gc3.js: -------------------------------------------------------------------------------- 1 | // node --expose_gc ... 2 | 3 | var d = require('../dtrace-provider'); 4 | 5 | for (var i = 0; i < 1000000; i++) { 6 | console.log("i: " + i); 7 | var dtp = d.createDTraceProvider("testlibusdt" + i); 8 | var p = dtp.addProbe("gcprobe"); 9 | dtp.enable(); 10 | dtp.disable(); 11 | } 12 | gc(); 13 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/gc_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var dtp = d.createDTraceProvider("nodeapp"); 3 | 4 | // don't assign the returned probe object anywhere 5 | dtp.addProbe("gcprobe", "int"); 6 | dtp.enable(); 7 | 8 | // run GC 9 | gc(); 10 | 11 | // probe object should still be around 12 | dtp.fire("gcprobe", function() { 13 | return []; 14 | }); 15 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/json-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("json1", "json"); 4 | provider.enable(); 5 | 6 | var obj = new Object; 7 | obj.foo = 42; 8 | obj.bar = 'forty-two'; 9 | 10 | probe.fire(function(p) { 11 | return [obj]; 12 | }); 13 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/more-args.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var format = require('util').format; 3 | var dtest = require('./dtrace-test').dtraceTest; 4 | 5 | test( 6 | 'firing probe with too many arguments', 7 | dtest( 8 | function() { 9 | }, 10 | [ 11 | 'dtrace', '-Zqn', 12 | 'nodeapp$target:::p1{ printf("%d\\n%d\\n", arg0, arg1); }', 13 | '-c', format('node %s/more-args_fire.js', __dirname) 14 | ], 15 | function(t, exit_code, traces) { 16 | t.notOk(exit_code, 'dtrace exited cleanly'); 17 | t.equal(traces[0], '1'); 18 | t.equal(traces[1], '2'); 19 | } 20 | ) 21 | ); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/more-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("p1", "int", "int"); 4 | provider.enable(); 5 | 6 | probe.fire(function(p) { 7 | return [1, 2, 3, 4]; 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/multiple-json-args_fire.js: -------------------------------------------------------------------------------- 1 | var d = require('../dtrace-provider'); 2 | var provider = d.createDTraceProvider("nodeapp"); 3 | var probe = provider.addProbe("json1", "json", "json"); 4 | provider.enable(); 5 | 6 | var obj1 = { "value": "abc" }; 7 | var obj2 = { "value": "def" }; 8 | 9 | probe.fire(function(p) { 10 | return [obj1, obj2]; 11 | }); 12 | -------------------------------------------------------------------------------- /compiler/node_modules/dtrace-provider/test/notenabled.test.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test; 2 | var d = require('../dtrace-provider'); 3 | 4 | test( 5 | 'firing probes when provider not enabled', 6 | function(t) { 7 | var dtp = d.createDTraceProvider("nodeapp"); 8 | dtp.addProbe("probe1", "int"); 9 | //dtp.enable(); 10 | dtp.fire("probe1", function(p) { 11 | t.notOk(); 12 | return [1]; 13 | }); 14 | t.ok(1, 'no problem'); 15 | t.end(); 16 | } 17 | ); 18 | 19 | -------------------------------------------------------------------------------- /compiler/node_modules/escape-regexp-component/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /compiler/node_modules/escape-regexp-component/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.1/ 2012-11-28 3 | ================== 4 | 5 | * fix package.json again 6 | 7 | 1.0.0 / 2012-11-28 8 | ================== 9 | 10 | * fix package.json 11 | -------------------------------------------------------------------------------- /compiler/node_modules/escape-regexp-component/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /compiler/node_modules/escape-regexp-component/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # escape-regexp 3 | 4 | Escape regular expression special characters. 5 | 6 | ## Example 7 | 8 | ```js 9 | var escape = require('escape-regexp'); 10 | escape(str); 11 | ``` 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /compiler/node_modules/escape-regexp-component/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-regexp", 3 | "description": "Escape regular expression special characters", 4 | "version": "1.0.0", 5 | "keywords": ["escape", "regexp", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } -------------------------------------------------------------------------------- /compiler/node_modules/escape-regexp-component/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Escape regexp special characters in `str`. 4 | * 5 | * @param {String} str 6 | * @return {String} 7 | * @api public 8 | */ 9 | 10 | module.exports = function(str){ 11 | return String(str).replace(/([.*+?=^!:${}()|[\]\/\\])/g, '\\$1'); 12 | }; -------------------------------------------------------------------------------- /compiler/node_modules/extsprintf/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/jsstyle"] 2 | path = deps/jsstyle 3 | url = git://github.com/davepacheco/jsstyle 4 | [submodule "deps/javascriptlint"] 5 | path = deps/javascriptlint 6 | url = git://github.com/davepacheco/javascriptlint 7 | -------------------------------------------------------------------------------- /compiler/node_modules/extsprintf/.npmignore: -------------------------------------------------------------------------------- 1 | /deps 2 | /examples 3 | -------------------------------------------------------------------------------- /compiler/node_modules/extsprintf/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2012, Joyent, Inc. All rights reserved. 3 | # 4 | # Makefile: top-level Makefile 5 | # 6 | # This Makefile contains only repo-specific logic and uses included makefiles 7 | # to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are 8 | # used by other repos as well. 9 | # 10 | 11 | # 12 | # Files 13 | # 14 | JS_FILES := $(shell find lib -name '*.js') 15 | JSL_FILES_NODE = $(JS_FILES) 16 | JSSTYLE_FILES = $(JS_FILES) 17 | JSL_CONF_NODE = jsl.node.conf 18 | 19 | # Default target is "check" 20 | check: 21 | 22 | include ./Makefile.deps 23 | include ./Makefile.targ 24 | -------------------------------------------------------------------------------- /compiler/node_modules/formidable/.npmignore: -------------------------------------------------------------------------------- 1 | /test 2 | /tool 3 | /example 4 | /benchmark 5 | *.upload 6 | *.un~ 7 | *.http 8 | -------------------------------------------------------------------------------- /compiler/node_modules/formidable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" 5 | - 0.11 6 | -------------------------------------------------------------------------------- /compiler/node_modules/formidable/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /compiler/node_modules/formidable/lib/index.js: -------------------------------------------------------------------------------- 1 | var IncomingForm = require('./incoming_form').IncomingForm; 2 | IncomingForm.IncomingForm = IncomingForm; 3 | module.exports = IncomingForm; 4 | -------------------------------------------------------------------------------- /compiler/node_modules/formidable/lib/octet_parser.js: -------------------------------------------------------------------------------- 1 | var EventEmitter = require('events').EventEmitter 2 | , util = require('util'); 3 | 4 | function OctetParser(options){ 5 | if(!(this instanceof OctetParser)) return new OctetParser(options); 6 | EventEmitter.call(this); 7 | } 8 | 9 | util.inherits(OctetParser, EventEmitter); 10 | 11 | exports.OctetParser = OctetParser; 12 | 13 | OctetParser.prototype.write = function(buffer) { 14 | this.emit('data', buffer); 15 | return buffer.length; 16 | }; 17 | 18 | OctetParser.prototype.end = function() { 19 | this.emit('end'); 20 | }; 21 | -------------------------------------------------------------------------------- /compiler/node_modules/fs/README.md: -------------------------------------------------------------------------------- 1 | # Security holding package 2 | 3 | This package name is not currently in use, but was formerly occupied 4 | by another package. To avoid malicious use, npm is hanging on to the 5 | package name, but loosely, and we'll probably give it to you if you 6 | want it. 7 | 8 | You may adopt this package by contacting support@npmjs.com and 9 | requesting the name. 10 | -------------------------------------------------------------------------------- /compiler/node_modules/glob/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 | -------------------------------------------------------------------------------- /compiler/node_modules/handle-thing/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/handle-thing/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "iojs" 6 | -------------------------------------------------------------------------------- /compiler/node_modules/hpack.js/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/hpack.js/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "iojs" 4 | branches: 5 | only: 6 | - master 7 | -------------------------------------------------------------------------------- /compiler/node_modules/hpack.js/lib/hpack.js: -------------------------------------------------------------------------------- 1 | var hpack = exports; 2 | 3 | hpack.utils = require('./hpack/utils'); 4 | hpack.huffman = require('./hpack/huffman'); 5 | hpack['static-table'] = require('./hpack/static-table'); 6 | hpack.table = require('./hpack/table'); 7 | 8 | hpack.decoder = require('./hpack/decoder'); 9 | hpack.decompressor = require('./hpack/decompressor'); 10 | 11 | hpack.encoder = require('./hpack/encoder'); 12 | hpack.compressor = require('./hpack/compressor'); 13 | -------------------------------------------------------------------------------- /compiler/node_modules/hpack.js/lib/hpack/utils.js: -------------------------------------------------------------------------------- 1 | exports.assert = function assert(cond, text) { 2 | if (!cond) 3 | throw new Error(text); 4 | }; 5 | 6 | exports.stringify = function stringify(arr) { 7 | var res = ''; 8 | for (var i = 0; i < arr.length; i++) 9 | res += String.fromCharCode(arr[i]); 10 | return res; 11 | }; 12 | 13 | exports.toArray = function toArray(str) { 14 | var res = []; 15 | for (var i = 0; i < str.length; i++) { 16 | var c = str.charCodeAt(i); 17 | var hi = c >>> 8; 18 | var lo = c & 0xff; 19 | if (hi) 20 | res.push(hi, lo); 21 | else 22 | res.push(lo); 23 | } 24 | return res; 25 | }; 26 | -------------------------------------------------------------------------------- /compiler/node_modules/hpack.js/tools/utils.js: -------------------------------------------------------------------------------- 1 | // Wrap lines after 79 chars 2 | exports.wrap = function wrap(str) { 3 | var out = []; 4 | var pad = ' '; 5 | var line = pad; 6 | 7 | var chunks = str.split(/,/g); 8 | chunks.forEach(function(chunk, i) { 9 | var append = chunk; 10 | if (i !== chunks.length - 1) 11 | append += ','; 12 | 13 | if (line.length + append.length > 79) { 14 | out.push(line); 15 | line = pad; 16 | } 17 | line += append; 18 | }); 19 | if (line !== pad) 20 | out.push(line); 21 | 22 | return out.join('\n'); 23 | }; 24 | -------------------------------------------------------------------------------- /compiler/node_modules/http-deceiver/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/http-deceiver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "iojs" 6 | -------------------------------------------------------------------------------- /compiler/node_modules/http-signature/.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((indent-tabs-mode . nil) 2 | (tab-width . 8) 3 | (fill-column . 80))) 4 | (js-mode . ((js-indent-level . 2) 5 | (indent-tabs-mode . nil) 6 | ))) -------------------------------------------------------------------------------- /compiler/node_modules/http-signature/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools -------------------------------------------------------------------------------- /compiler/node_modules/http-signature/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Joyent, Inc. 2 | 3 | var parser = require('./parser'); 4 | var signer = require('./signer'); 5 | var verify = require('./verify'); 6 | var util = require('./util'); 7 | 8 | 9 | 10 | ///--- API 11 | 12 | module.exports = { 13 | 14 | parse: parser.parseRequest, 15 | parseRequest: parser.parseRequest, 16 | 17 | sign: signer.signRequest, 18 | signRequest: signer.signRequest, 19 | 20 | sshKeyToPEM: util.sshKeyToPEM, 21 | sshKeyFingerprint: util.fingerprint, 22 | pemToRsaSSHKey: util.pemToRsaSSHKey, 23 | 24 | verify: verify.verifySignature, 25 | verifySignature: verify.verifySignature, 26 | verifyHMAC: verify.verifyHMAC 27 | }; 28 | -------------------------------------------------------------------------------- /compiler/node_modules/inflight/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 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 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | if (typeof util.inherits !== 'function') throw ''; 4 | module.exports = util.inherits; 5 | } catch (e) { 6 | module.exports = require('./inherits_browser.js'); 7 | } 8 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/is-buffer/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - node 5 | env: 6 | global: 7 | - secure: du27W3wTgZ3G183axW7w0I01lOIurx8kilMH9p45VMfNXCu8lo6FLtLIQZxJ1FYMoJLQ1yfJTu2G0rq39SotDfJumsk6tF7BjTY/HKCocZaHqCMgw0W2bcylb5kMAdLhBNPlzejpPoWa1x1axbAHNFOLQNVosG/Bavu3/kuIIps= 8 | - secure: Ax/5aekM40o67NuTkvQqx1DhfP86ZlHTtKbv5yI+WFmbjD3FQM8b8G1J/o7doaBDev7Mp+1zDJOK2pFGtt+JGRl0lM2JUmLh6yh/b28obXyei5iuUkqzKJLfKZHMbY5QW/1i4DUM+zSXe6Kava0qnqYg5wBBnrF6gLdsVsCGNQk= 9 | -------------------------------------------------------------------------------- /compiler/node_modules/is-buffer/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: tape 2 | browsers: 3 | - name: chrome 4 | version: 39..latest 5 | - name: firefox 6 | version: 34..latest 7 | - name: safari 8 | version: 5..latest 9 | - name: microsoftedge 10 | version: latest 11 | - name: ie 12 | version: 8..latest 13 | - name: android 14 | version: 5.0..latest 15 | -------------------------------------------------------------------------------- /compiler/node_modules/is-buffer/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Determine if an object is a Buffer 3 | * 4 | * @author Feross Aboukhadijeh 5 | * @license MIT 6 | */ 7 | 8 | // The _isBuffer check is for Safari 5-7 support, because it's missing 9 | // Object.prototype.constructor. Remove this eventually 10 | module.exports = function (obj) { 11 | return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) 12 | } 13 | 14 | function isBuffer (obj) { 15 | return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) 16 | } 17 | 18 | // For Node v0.10 support. Remove this eventually. 19 | function isSlowBuffer (obj) { 20 | return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) 21 | } 22 | -------------------------------------------------------------------------------- /compiler/node_modules/isarray/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /compiler/node_modules/isarray/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /compiler/node_modules/isarray/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/.bin/tape test.js 4 | 5 | .PHONY: test 6 | 7 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | var toString = {}.toString; 2 | 3 | module.exports = Array.isArray || function (arr) { 4 | return toString.call(arr) == '[object Array]'; 5 | }; 6 | -------------------------------------------------------------------------------- /compiler/node_modules/isarray/test.js: -------------------------------------------------------------------------------- 1 | var isArray = require('./'); 2 | var test = require('tape'); 3 | 4 | test('is array', function(t){ 5 | t.ok(isArray([])); 6 | t.notOk(isArray({})); 7 | t.notOk(isArray(null)); 8 | t.notOk(isArray(false)); 9 | 10 | var obj = {}; 11 | obj[0] = true; 12 | t.notOk(isArray(obj)); 13 | 14 | var arr = []; 15 | arr.foo = 'bar'; 16 | t.ok(isArray(arr)); 17 | 18 | t.end(); 19 | }); 20 | 21 | -------------------------------------------------------------------------------- /compiler/node_modules/keep-alive-agent/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | **log 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /compiler/node_modules/longest/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * longest 3 | * 4 | * Copyright (c) 2014-2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | module.exports = function(arr) { 11 | if (!arr) { 12 | return null; 13 | } 14 | 15 | var len = arr.length; 16 | if (!len) { 17 | return null; 18 | } 19 | 20 | var c = 0; 21 | var i = 0; 22 | var ele; 23 | var elen; 24 | var res; 25 | 26 | for (; i < len; i++) { 27 | ele = arr[i].toString(); 28 | elen = ele.length; 29 | 30 | if (elen > c) { 31 | res = ele; 32 | c = elen; 33 | } 34 | } 35 | 36 | return res; 37 | }; 38 | -------------------------------------------------------------------------------- /compiler/node_modules/lru-cache/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 | -------------------------------------------------------------------------------- /compiler/node_modules/mime/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/mime/.npmignore -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/minimalistic-assert/index.js: -------------------------------------------------------------------------------- 1 | module.exports = assert; 2 | 3 | function assert(val, msg) { 4 | if (!val) 5 | throw new Error(msg || 'Assertion failed'); 6 | } 7 | 8 | assert.equal = function assertEqual(l, r, msg) { 9 | if (l != r) 10 | throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r)); 11 | }; 12 | -------------------------------------------------------------------------------- /compiler/node_modules/minimalistic-assert/readme.md: -------------------------------------------------------------------------------- 1 | minimalistic-assert 2 | === 3 | 4 | very minimalistic assert module. 5 | -------------------------------------------------------------------------------- /compiler/node_modules/minimatch/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 | -------------------------------------------------------------------------------- /compiler/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /compiler/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /compiler/node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /compiler/node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /compiler/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /compiler/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /compiler/node_modules/mkdirp/bin/usage.txt: -------------------------------------------------------------------------------- 1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS} 2 | 3 | Create each supplied directory including any necessary parent directories that 4 | don't yet exist. 5 | 6 | If the directory already exists, do nothing. 7 | 8 | OPTIONS are: 9 | 10 | -m, --mode If a directory needs to be created, set the mode as an octal 11 | permission string. 12 | 13 | -------------------------------------------------------------------------------- /compiler/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /compiler/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | var _0755 = parseInt('0755', 8); 6 | 7 | test('root', function (t) { 8 | // '/' on unix, 'c:/' on windows. 9 | var file = path.resolve('/'); 10 | 11 | mkdirp(file, _0755, function (err) { 12 | if (err) throw err 13 | fs.stat(file, function (er, stat) { 14 | if (er) throw er 15 | t.ok(stat.isDirectory(), 'target is a directory'); 16 | t.end(); 17 | }) 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/ender.js: -------------------------------------------------------------------------------- 1 | $.ender({ moment: require('moment') }) 2 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/package.js: -------------------------------------------------------------------------------- 1 | var profile = { 2 | resourceTags: { 3 | ignore: function(filename, mid){ 4 | // only include moment/moment 5 | return mid != "moment/moment"; 6 | }, 7 | amd: function(filename, mid){ 8 | return /\.js$/.test(filename); 9 | } 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/create/date-from-array.js: -------------------------------------------------------------------------------- 1 | export function createDate (y, m, d, h, M, s, ms) { 2 | //can't just apply() to create a date: 3 | //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply 4 | var date = new Date(y, m, d, h, M, s, ms); 5 | 6 | //the date constructor remaps years 0-99 to 1900-1999 7 | if (y < 100 && y >= 0 && isFinite(date.getFullYear())) { 8 | date.setFullYear(y); 9 | } 10 | return date; 11 | } 12 | 13 | export function createUTCDate (y) { 14 | var date = new Date(Date.UTC.apply(null, arguments)); 15 | 16 | //the Date.UTC function remaps years 0-99 to 1900-1999 17 | if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) { 18 | date.setUTCFullYear(y); 19 | } 20 | return date; 21 | } 22 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/create/from-object.js: -------------------------------------------------------------------------------- 1 | import { normalizeObjectUnits } from '../units/aliases'; 2 | import { configFromArray } from './from-array'; 3 | import map from '../utils/map'; 4 | 5 | export function configFromObject(config) { 6 | if (config._d) { 7 | return; 8 | } 9 | 10 | var i = normalizeObjectUnits(config._i); 11 | config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { 12 | return obj && parseInt(obj, 10); 13 | }); 14 | 15 | configFromArray(config); 16 | } 17 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/create/local.js: -------------------------------------------------------------------------------- 1 | import { createLocalOrUTC } from './from-anything'; 2 | 3 | export function createLocal (input, format, locale, strict) { 4 | return createLocalOrUTC(input, format, locale, strict, false); 5 | } 6 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/create/parsing-flags.js: -------------------------------------------------------------------------------- 1 | function defaultParsingFlags() { 2 | // We need to deep clone this object. 3 | return { 4 | empty : false, 5 | unusedTokens : [], 6 | unusedInput : [], 7 | overflow : -2, 8 | charsLeftOver : 0, 9 | nullInput : false, 10 | invalidMonth : null, 11 | invalidFormat : false, 12 | userInvalidated : false, 13 | iso : false, 14 | parsedDateParts : [], 15 | meridiem : null 16 | }; 17 | } 18 | 19 | export default function getParsingFlags(m) { 20 | if (m._pf == null) { 21 | m._pf = defaultParsingFlags(); 22 | } 23 | return m._pf; 24 | } 25 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/create/utc.js: -------------------------------------------------------------------------------- 1 | import { createLocalOrUTC } from './from-anything'; 2 | 3 | export function createUTC (input, format, locale, strict) { 4 | return createLocalOrUTC(input, format, locale, strict, true).utc(); 5 | } 6 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/duration/abs.js: -------------------------------------------------------------------------------- 1 | var mathAbs = Math.abs; 2 | 3 | export function abs () { 4 | var data = this._data; 5 | 6 | this._milliseconds = mathAbs(this._milliseconds); 7 | this._days = mathAbs(this._days); 8 | this._months = mathAbs(this._months); 9 | 10 | data.milliseconds = mathAbs(data.milliseconds); 11 | data.seconds = mathAbs(data.seconds); 12 | data.minutes = mathAbs(data.minutes); 13 | data.hours = mathAbs(data.hours); 14 | data.months = mathAbs(data.months); 15 | data.years = mathAbs(data.years); 16 | 17 | return this; 18 | } 19 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/duration/add-subtract.js: -------------------------------------------------------------------------------- 1 | import { createDuration } from './create'; 2 | 3 | function addSubtract (duration, input, value, direction) { 4 | var other = createDuration(input, value); 5 | 6 | duration._milliseconds += direction * other._milliseconds; 7 | duration._days += direction * other._days; 8 | duration._months += direction * other._months; 9 | 10 | return duration._bubble(); 11 | } 12 | 13 | // supports only 2.0-style add(1, 's') or add(duration) 14 | export function add (input, value) { 15 | return addSubtract(this, input, value, 1); 16 | } 17 | 18 | // supports only 2.0-style subtract(1, 's') or subtract(duration) 19 | export function subtract (input, value) { 20 | return addSubtract(this, input, value, -1); 21 | } 22 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/duration/duration.js: -------------------------------------------------------------------------------- 1 | // Side effect imports 2 | import './prototype'; 3 | 4 | import { createDuration } from './create'; 5 | import { isDuration } from './constructor'; 6 | import { 7 | getSetRelativeTimeRounding, 8 | getSetRelativeTimeThreshold 9 | } from './humanize'; 10 | 11 | export { 12 | createDuration, 13 | isDuration, 14 | getSetRelativeTimeRounding, 15 | getSetRelativeTimeThreshold 16 | }; 17 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/duration/get.js: -------------------------------------------------------------------------------- 1 | import { normalizeUnits } from '../units/aliases'; 2 | import absFloor from '../utils/abs-floor'; 3 | 4 | export function get (units) { 5 | units = normalizeUnits(units); 6 | return this[units + 's'](); 7 | } 8 | 9 | function makeGetter(name) { 10 | return function () { 11 | return this._data[name]; 12 | }; 13 | } 14 | 15 | export var milliseconds = makeGetter('milliseconds'); 16 | export var seconds = makeGetter('seconds'); 17 | export var minutes = makeGetter('minutes'); 18 | export var hours = makeGetter('hours'); 19 | export var days = makeGetter('days'); 20 | export var months = makeGetter('months'); 21 | export var years = makeGetter('years'); 22 | 23 | export function weeks () { 24 | return absFloor(this.days() / 7); 25 | } 26 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/calendar.js: -------------------------------------------------------------------------------- 1 | export var defaultCalendar = { 2 | sameDay : '[Today at] LT', 3 | nextDay : '[Tomorrow at] LT', 4 | nextWeek : 'dddd [at] LT', 5 | lastDay : '[Yesterday at] LT', 6 | lastWeek : '[Last] dddd [at] LT', 7 | sameElse : 'L' 8 | }; 9 | 10 | import isFunction from '../utils/is-function'; 11 | 12 | export function calendar (key, mom, now) { 13 | var output = this._calendar[key] || this._calendar['sameElse']; 14 | return isFunction(output) ? output.call(mom, now) : output; 15 | } 16 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/constructor.js: -------------------------------------------------------------------------------- 1 | export function Locale(config) { 2 | if (config != null) { 3 | this.set(config); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/en.js: -------------------------------------------------------------------------------- 1 | import './prototype'; 2 | import { getSetGlobalLocale } from './locales'; 3 | import toInt from '../utils/to-int'; 4 | 5 | getSetGlobalLocale('en', { 6 | ordinalParse: /\d{1,2}(th|st|nd|rd)/, 7 | ordinal : function (number) { 8 | var b = number % 10, 9 | output = (toInt(number % 100 / 10) === 1) ? 'th' : 10 | (b === 1) ? 'st' : 11 | (b === 2) ? 'nd' : 12 | (b === 3) ? 'rd' : 'th'; 13 | return number + output; 14 | } 15 | }); 16 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/formats.js: -------------------------------------------------------------------------------- 1 | export var defaultLongDateFormat = { 2 | LTS : 'h:mm:ss A', 3 | LT : 'h:mm A', 4 | L : 'MM/DD/YYYY', 5 | LL : 'MMMM D, YYYY', 6 | LLL : 'MMMM D, YYYY h:mm A', 7 | LLLL : 'dddd, MMMM D, YYYY h:mm A' 8 | }; 9 | 10 | export function longDateFormat (key) { 11 | var format = this._longDateFormat[key], 12 | formatUpper = this._longDateFormat[key.toUpperCase()]; 13 | 14 | if (format || !formatUpper) { 15 | return format; 16 | } 17 | 18 | this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) { 19 | return val.slice(1); 20 | }); 21 | 22 | return this._longDateFormat[key]; 23 | } 24 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/invalid.js: -------------------------------------------------------------------------------- 1 | export var defaultInvalidDate = 'Invalid date'; 2 | 3 | export function invalidDate () { 4 | return this._invalidDate; 5 | } 6 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/ordinal.js: -------------------------------------------------------------------------------- 1 | export var defaultOrdinal = '%d'; 2 | export var defaultOrdinalParse = /\d{1,2}/; 3 | 4 | export function ordinal (number) { 5 | return this._ordinal.replace('%d', number); 6 | } 7 | 8 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/locale/pre-post-format.js: -------------------------------------------------------------------------------- 1 | export function preParsePostFormat (string) { 2 | return string; 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/clone.js: -------------------------------------------------------------------------------- 1 | import { Moment } from './constructor'; 2 | 3 | export function clone () { 4 | return new Moment(this); 5 | } 6 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/creation-data.js: -------------------------------------------------------------------------------- 1 | export function creationData() { 2 | return { 3 | input: this._i, 4 | format: this._f, 5 | locale: this._locale, 6 | isUTC: this._isUTC, 7 | strict: this._strict 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/from.js: -------------------------------------------------------------------------------- 1 | import { createDuration } from '../duration/create'; 2 | import { createLocal } from '../create/local'; 3 | import { isMoment } from '../moment/constructor'; 4 | 5 | export function from (time, withoutSuffix) { 6 | if (this.isValid() && 7 | ((isMoment(time) && time.isValid()) || 8 | createLocal(time).isValid())) { 9 | return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); 10 | } else { 11 | return this.localeData().invalidDate(); 12 | } 13 | } 14 | 15 | export function fromNow (withoutSuffix) { 16 | return this.from(createLocal(), withoutSuffix); 17 | } 18 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/moment.js: -------------------------------------------------------------------------------- 1 | import { createLocal } from '../create/local'; 2 | import { createUTC } from '../create/utc'; 3 | import { createInvalid } from '../create/valid'; 4 | import { isMoment } from './constructor'; 5 | import { min, max } from './min-max'; 6 | import { now } from './now'; 7 | import momentPrototype from './prototype'; 8 | 9 | function createUnix (input) { 10 | return createLocal(input * 1000); 11 | } 12 | 13 | function createInZone () { 14 | return createLocal.apply(null, arguments).parseZone(); 15 | } 16 | 17 | export { 18 | now, 19 | min, 20 | max, 21 | isMoment, 22 | createUTC, 23 | createUnix, 24 | createLocal, 25 | createInZone, 26 | createInvalid, 27 | momentPrototype 28 | }; 29 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/now.js: -------------------------------------------------------------------------------- 1 | export var now = function () { 2 | return Date.now ? Date.now() : +(new Date()); 3 | }; 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/to.js: -------------------------------------------------------------------------------- 1 | import { createDuration } from '../duration/create'; 2 | import { createLocal } from '../create/local'; 3 | import { isMoment } from '../moment/constructor'; 4 | 5 | export function to (time, withoutSuffix) { 6 | if (this.isValid() && 7 | ((isMoment(time) && time.isValid()) || 8 | createLocal(time).isValid())) { 9 | return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); 10 | } else { 11 | return this.localeData().invalidDate(); 12 | } 13 | } 14 | 15 | export function toNow (withoutSuffix) { 16 | return this.to(createLocal(), withoutSuffix); 17 | } 18 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/moment/valid.js: -------------------------------------------------------------------------------- 1 | import { isValid as _isValid } from '../create/valid'; 2 | import extend from '../utils/extend'; 3 | import getParsingFlags from '../create/parsing-flags'; 4 | 5 | export function isValid () { 6 | return _isValid(this); 7 | } 8 | 9 | export function parsingFlags () { 10 | return extend({}, getParsingFlags(this)); 11 | } 12 | 13 | export function invalidAt () { 14 | return getParsingFlags(this).overflow; 15 | } 16 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/constants.js: -------------------------------------------------------------------------------- 1 | export var YEAR = 0; 2 | export var MONTH = 1; 3 | export var DATE = 2; 4 | export var HOUR = 3; 5 | export var MINUTE = 4; 6 | export var SECOND = 5; 7 | export var MILLISECOND = 6; 8 | export var WEEK = 7; 9 | export var WEEKDAY = 8; 10 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/minute.js: -------------------------------------------------------------------------------- 1 | import { makeGetSet } from '../moment/get-set'; 2 | import { addFormatToken } from '../format/format'; 3 | import { addUnitAlias } from './aliases'; 4 | import { addUnitPriority } from './priorities'; 5 | import { addRegexToken, match1to2, match2 } from '../parse/regex'; 6 | import { addParseToken } from '../parse/token'; 7 | import { MINUTE } from './constants'; 8 | 9 | // FORMATTING 10 | 11 | addFormatToken('m', ['mm', 2], 0, 'minute'); 12 | 13 | // ALIASES 14 | 15 | addUnitAlias('minute', 'm'); 16 | 17 | // PRIORITY 18 | 19 | addUnitPriority('minute', 14); 20 | 21 | // PARSING 22 | 23 | addRegexToken('m', match1to2); 24 | addRegexToken('mm', match1to2, match2); 25 | addParseToken(['m', 'mm'], MINUTE); 26 | 27 | // MOMENTS 28 | 29 | export var getSetMinute = makeGetSet('Minutes', false); 30 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/priorities.js: -------------------------------------------------------------------------------- 1 | var priorities = {}; 2 | 3 | export function addUnitPriority(unit, priority) { 4 | priorities[unit] = priority; 5 | } 6 | 7 | export function getPrioritizedUnits(unitsObj) { 8 | var units = []; 9 | for (var u in unitsObj) { 10 | units.push({unit: u, priority: priorities[u]}); 11 | } 12 | units.sort(function (a, b) { 13 | return a.priority - b.priority; 14 | }); 15 | return units; 16 | } 17 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/second.js: -------------------------------------------------------------------------------- 1 | import { makeGetSet } from '../moment/get-set'; 2 | import { addFormatToken } from '../format/format'; 3 | import { addUnitAlias } from './aliases'; 4 | import { addUnitPriority } from './priorities'; 5 | import { addRegexToken, match1to2, match2 } from '../parse/regex'; 6 | import { addParseToken } from '../parse/token'; 7 | import { SECOND } from './constants'; 8 | 9 | // FORMATTING 10 | 11 | addFormatToken('s', ['ss', 2], 0, 'second'); 12 | 13 | // ALIASES 14 | 15 | addUnitAlias('second', 's'); 16 | 17 | // PRIORITY 18 | 19 | addUnitPriority('second', 15); 20 | 21 | // PARSING 22 | 23 | addRegexToken('s', match1to2); 24 | addRegexToken('ss', match1to2, match2); 25 | addParseToken(['s', 'ss'], SECOND); 26 | 27 | // MOMENTS 28 | 29 | export var getSetSecond = makeGetSet('Seconds', false); 30 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/timestamp.js: -------------------------------------------------------------------------------- 1 | import { addFormatToken } from '../format/format'; 2 | import { addRegexToken, matchTimestamp, matchSigned } from '../parse/regex'; 3 | import { addParseToken } from '../parse/token'; 4 | import toInt from '../utils/to-int'; 5 | 6 | // FORMATTING 7 | 8 | addFormatToken('X', 0, 0, 'unix'); 9 | addFormatToken('x', 0, 0, 'valueOf'); 10 | 11 | // PARSING 12 | 13 | addRegexToken('x', matchSigned); 14 | addRegexToken('X', matchTimestamp); 15 | addParseToken('X', function (input, array, config) { 16 | config._d = new Date(parseFloat(input, 10) * 1000); 17 | }); 18 | addParseToken('x', function (input, array, config) { 19 | config._d = new Date(toInt(input)); 20 | }); 21 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/timezone.js: -------------------------------------------------------------------------------- 1 | import { addFormatToken } from '../format/format'; 2 | 3 | // FORMATTING 4 | 5 | addFormatToken('z', 0, 0, 'zoneAbbr'); 6 | addFormatToken('zz', 0, 0, 'zoneName'); 7 | 8 | // MOMENTS 9 | 10 | export function getZoneAbbr () { 11 | return this._isUTC ? 'UTC' : ''; 12 | } 13 | 14 | export function getZoneName () { 15 | return this._isUTC ? 'Coordinated Universal Time' : ''; 16 | } 17 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/units/units.js: -------------------------------------------------------------------------------- 1 | // Side effect imports 2 | import './day-of-month'; 3 | import './day-of-week'; 4 | import './day-of-year'; 5 | import './hour'; 6 | import './millisecond'; 7 | import './minute'; 8 | import './month'; 9 | import './offset'; 10 | import './quarter'; 11 | import './second'; 12 | import './timestamp'; 13 | import './timezone'; 14 | import './week-year'; 15 | import './week'; 16 | import './year'; 17 | 18 | import { normalizeUnits } from './aliases'; 19 | 20 | export { normalizeUnits }; 21 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/abs-ceil.js: -------------------------------------------------------------------------------- 1 | export default function absCeil (number) { 2 | if (number < 0) { 3 | return Math.floor(number); 4 | } else { 5 | return Math.ceil(number); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/abs-floor.js: -------------------------------------------------------------------------------- 1 | export default function absFloor (number) { 2 | if (number < 0) { 3 | // -0 -> 0 4 | return Math.ceil(number) || 0; 5 | } else { 6 | return Math.floor(number); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/abs-round.js: -------------------------------------------------------------------------------- 1 | export default function absRound (number) { 2 | if (number < 0) { 3 | return Math.round(-1 * number) * -1; 4 | } else { 5 | return Math.round(number); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/compare-arrays.js: -------------------------------------------------------------------------------- 1 | import toInt from './to-int'; 2 | 3 | // compare two arrays, return the number of differences 4 | export default function compareArrays(array1, array2, dontConvert) { 5 | var len = Math.min(array1.length, array2.length), 6 | lengthDiff = Math.abs(array1.length - array2.length), 7 | diffs = 0, 8 | i; 9 | for (i = 0; i < len; i++) { 10 | if ((dontConvert && array1[i] !== array2[i]) || 11 | (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { 12 | diffs++; 13 | } 14 | } 15 | return diffs + lengthDiff; 16 | } 17 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/defaults.js: -------------------------------------------------------------------------------- 1 | // Pick the first defined of two or three arguments. 2 | export default function defaults(a, b, c) { 3 | if (a != null) { 4 | return a; 5 | } 6 | if (b != null) { 7 | return b; 8 | } 9 | return c; 10 | } 11 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/extend.js: -------------------------------------------------------------------------------- 1 | import hasOwnProp from './has-own-prop'; 2 | 3 | export default function extend(a, b) { 4 | for (var i in b) { 5 | if (hasOwnProp(b, i)) { 6 | a[i] = b[i]; 7 | } 8 | } 9 | 10 | if (hasOwnProp(b, 'toString')) { 11 | a.toString = b.toString; 12 | } 13 | 14 | if (hasOwnProp(b, 'valueOf')) { 15 | a.valueOf = b.valueOf; 16 | } 17 | 18 | return a; 19 | } 20 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/has-own-prop.js: -------------------------------------------------------------------------------- 1 | export default function hasOwnProp(a, b) { 2 | return Object.prototype.hasOwnProperty.call(a, b); 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/hooks.js: -------------------------------------------------------------------------------- 1 | export { hooks, setHookCallback }; 2 | 3 | var hookCallback; 4 | 5 | function hooks () { 6 | return hookCallback.apply(null, arguments); 7 | } 8 | 9 | // This is done to register the method called with moment() 10 | // without creating circular dependencies. 11 | function setHookCallback (callback) { 12 | hookCallback = callback; 13 | } 14 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/index-of.js: -------------------------------------------------------------------------------- 1 | var indexOf; 2 | 3 | if (Array.prototype.indexOf) { 4 | indexOf = Array.prototype.indexOf; 5 | } else { 6 | indexOf = function (o) { 7 | // I know 8 | var i; 9 | for (i = 0; i < this.length; ++i) { 10 | if (this[i] === o) { 11 | return i; 12 | } 13 | } 14 | return -1; 15 | }; 16 | } 17 | 18 | export { indexOf as default }; 19 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/is-array.js: -------------------------------------------------------------------------------- 1 | export default function isArray(input) { 2 | return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]'; 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/is-date.js: -------------------------------------------------------------------------------- 1 | export default function isDate(input) { 2 | return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/is-function.js: -------------------------------------------------------------------------------- 1 | export default function isFunction(input) { 2 | return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/is-object-empty.js: -------------------------------------------------------------------------------- 1 | export default function isObjectEmpty(obj) { 2 | var k; 3 | for (k in obj) { 4 | // even if its not own property I'd still call it non-empty 5 | return false; 6 | } 7 | return true; 8 | } 9 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/is-object.js: -------------------------------------------------------------------------------- 1 | export default function isObject(input) { 2 | // IE8 will treat undefined and null as object if it wasn't for 3 | // input != null 4 | return input != null && Object.prototype.toString.call(input) === '[object Object]'; 5 | } 6 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/is-undefined.js: -------------------------------------------------------------------------------- 1 | export default function isUndefined(input) { 2 | return input === void 0; 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/keys.js: -------------------------------------------------------------------------------- 1 | import hasOwnProp from './has-own-prop'; 2 | 3 | var keys; 4 | 5 | if (Object.keys) { 6 | keys = Object.keys; 7 | } else { 8 | keys = function (obj) { 9 | var i, res = []; 10 | for (i in obj) { 11 | if (hasOwnProp(obj, i)) { 12 | res.push(i); 13 | } 14 | } 15 | return res; 16 | }; 17 | } 18 | 19 | export { keys as default }; 20 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/map.js: -------------------------------------------------------------------------------- 1 | export default function map(arr, fn) { 2 | var res = [], i; 3 | for (i = 0; i < arr.length; ++i) { 4 | res.push(fn(arr[i], i)); 5 | } 6 | return res; 7 | } 8 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/some.js: -------------------------------------------------------------------------------- 1 | var some; 2 | if (Array.prototype.some) { 3 | some = Array.prototype.some; 4 | } else { 5 | some = function (fun) { 6 | var t = Object(this); 7 | var len = t.length >>> 0; 8 | 9 | for (var i = 0; i < len; i++) { 10 | if (i in t && fun.call(this, t[i], i, t)) { 11 | return true; 12 | } 13 | } 14 | 15 | return false; 16 | }; 17 | } 18 | 19 | export { some as default }; 20 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/to-int.js: -------------------------------------------------------------------------------- 1 | import absFloor from './abs-floor'; 2 | 3 | export default function toInt(argumentForCoercion) { 4 | var coercedNumber = +argumentForCoercion, 5 | value = 0; 6 | 7 | if (coercedNumber !== 0 && isFinite(coercedNumber)) { 8 | value = absFloor(coercedNumber); 9 | } 10 | 11 | return value; 12 | } 13 | -------------------------------------------------------------------------------- /compiler/node_modules/moment/src/lib/utils/zero-fill.js: -------------------------------------------------------------------------------- 1 | export default function zeroFill(number, targetLength, forceSign) { 2 | var absNumber = '' + Math.abs(number), 3 | zerosToFill = targetLength - absNumber.length, 4 | sign = number >= 0; 5 | return (sign ? (forceSign ? '+' : '') : '-') + 6 | Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; 7 | } 8 | -------------------------------------------------------------------------------- /compiler/node_modules/mv/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /compiler/node_modules/mv/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.12" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /compiler/node_modules/mv/test/a-file: -------------------------------------------------------------------------------- 1 | sonic the hedgehog 2 | -------------------------------------------------------------------------------- /compiler/node_modules/mv/test/a-folder/another-file: -------------------------------------------------------------------------------- 1 | tails 2 | -------------------------------------------------------------------------------- /compiler/node_modules/mv/test/a-folder/another-folder/file3: -------------------------------------------------------------------------------- 1 | knuckles 2 | -------------------------------------------------------------------------------- /compiler/node_modules/nan/include_dirs.js: -------------------------------------------------------------------------------- 1 | console.log(require('path').relative('.', __dirname)); 2 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/ncp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .*.sw[op] 3 | .DS_Store 4 | test/*fixtures/out 5 | -------------------------------------------------------------------------------- /compiler/node_modules/ncp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.8 5 | - "0.10" 6 | - "0.11" 7 | -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/modified-files/out/a: -------------------------------------------------------------------------------- 1 | test3 -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/modified-files/src/a: -------------------------------------------------------------------------------- 1 | test3 -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/a: -------------------------------------------------------------------------------- 1 | Hello world 2 | -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/b: -------------------------------------------------------------------------------- 1 | Hello ncp 2 | -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/ncp/test/regular-fixtures/src/c -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/ncp/test/regular-fixtures/src/d -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/ncp/test/regular-fixtures/src/e -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/ncp/test/regular-fixtures/src/f -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/sub/a: -------------------------------------------------------------------------------- 1 | Hello nodejitsu 2 | -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/regular-fixtures/src/sub/b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/ncp/test/regular-fixtures/src/sub/b -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/symlink-fixtures/src/dir/bar: -------------------------------------------------------------------------------- 1 | bar contents -------------------------------------------------------------------------------- /compiler/node_modules/ncp/test/symlink-fixtures/src/foo: -------------------------------------------------------------------------------- 1 | foo contents -------------------------------------------------------------------------------- /compiler/node_modules/node-uuid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | .nyc_output 4 | coverage 5 | -------------------------------------------------------------------------------- /compiler/node_modules/node-uuid/benchmark/benchmark-native.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test performance of native C UUID generation 3 | 4 | To Compile: cc -luuid benchmark-native.c -o benchmark-native 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | int main() { 13 | uuid_t myid; 14 | char buf[36+1]; 15 | int i; 16 | struct timeval t; 17 | double start, finish; 18 | 19 | gettimeofday(&t, NULL); 20 | start = t.tv_sec + t.tv_usec/1e6; 21 | 22 | int n = 2e5; 23 | for (i = 0; i < n; i++) { 24 | uuid_generate(myid); 25 | uuid_unparse(myid, buf); 26 | } 27 | 28 | gettimeofday(&t, NULL); 29 | finish = t.tv_sec + t.tv_usec/1e6; 30 | double dur = finish - start; 31 | 32 | printf("%d uuids/sec", (int)(n/dur)); 33 | return 0; 34 | } 35 | -------------------------------------------------------------------------------- /compiler/node_modules/node-uuid/bin/uuid: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var path = require('path'); 4 | var uuid = require(path.join(__dirname, '..')); 5 | 6 | var arg = process.argv[2]; 7 | 8 | if ('--help' === arg) { 9 | console.log('\n USAGE: uuid [version] [options]\n\n'); 10 | console.log(' options:\n'); 11 | console.log(' --help Display this message and exit\n'); 12 | process.exit(0); 13 | } 14 | 15 | if (null == arg) { 16 | console.log(uuid()); 17 | process.exit(0); 18 | } 19 | 20 | if ('v1' !== arg && 'v4' !== arg) { 21 | console.error('Version must be RFC4122 version 1 or version 4, denoted as "v1" or "v4"'); 22 | process.exit(1); 23 | } 24 | 25 | console.log(uuid[arg]()); 26 | process.exit(0); 27 | -------------------------------------------------------------------------------- /compiler/node_modules/node-uuid/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-uuid", 3 | "version": "1.4.7", 4 | "homepage": "https://github.com/broofa/node-uuid", 5 | "authors": [ 6 | "Robert Kieffer " 7 | ], 8 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.", 9 | "main": "uuid.js", 10 | "keywords": [ 11 | "uuid", 12 | "gid", 13 | "rfc4122" 14 | ], 15 | "license": "MIT", 16 | "ignore": [ 17 | "**/.*", 18 | "node_modules", 19 | "bower_components", 20 | "test", 21 | "tests" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /compiler/node_modules/node-uuid/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-uuid", 3 | "repo": "broofa/node-uuid", 4 | "description": "Rigorous implementation of RFC4122 (v1 and v4) UUIDs.", 5 | "version": "1.4.7", 6 | "author": "Robert Kieffer ", 7 | "contributors": [ 8 | { 9 | "name": "Christoph Tavan ", 10 | "github": "https://github.com/ctavan" 11 | } 12 | ], 13 | "keywords": [ 14 | "uuid", 15 | "guid", 16 | "rfc4122" 17 | ], 18 | "dependencies": {}, 19 | "development": {}, 20 | "main": "uuid.js", 21 | "scripts": [ 22 | "uuid.js" 23 | ], 24 | "license": "MIT" 25 | } -------------------------------------------------------------------------------- /compiler/node_modules/node-uuid/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /compiler/node_modules/obuf/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/once/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 | -------------------------------------------------------------------------------- /compiler/node_modules/path-is-absolute/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function posix(path) { 4 | return path.charAt(0) === '/'; 5 | } 6 | 7 | function win32(path) { 8 | // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 9 | var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; 10 | var result = splitDeviceRe.exec(path); 11 | var device = result[1] || ''; 12 | var isUnc = Boolean(device && device.charAt(1) !== ':'); 13 | 14 | // UNC paths are always absolute 15 | return Boolean(result[2] || isUnc); 16 | } 17 | 18 | module.exports = process.platform === 'win32' ? win32 : posix; 19 | module.exports.posix = posix; 20 | module.exports.win32 = win32; 21 | -------------------------------------------------------------------------------- /compiler/node_modules/path/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /compiler/node_modules/path/README.md: -------------------------------------------------------------------------------- 1 | # path 2 | 3 | This is an exact copy of the NodeJS ’path’ module published to the NPM registry. 4 | 5 | [Documentation](http://nodejs.org/docs/latest/api/path.html) 6 | 7 | ## Install 8 | 9 | ```sh 10 | $ npm install --save path 11 | ``` 12 | 13 | ## License 14 | 15 | MIT 16 | -------------------------------------------------------------------------------- /compiler/node_modules/precond/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Mathieu Turcotte 3 | * Licensed under the MIT license. 4 | */ 5 | 6 | module.exports = require('./lib/checks'); -------------------------------------------------------------------------------- /compiler/node_modules/precond/lib/errors.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Mathieu Turcotte 3 | * Licensed under the MIT license. 4 | */ 5 | 6 | var util = require('util'); 7 | 8 | function IllegalArgumentError(message) { 9 | Error.call(this, message); 10 | this.message = message; 11 | } 12 | util.inherits(IllegalArgumentError, Error); 13 | 14 | IllegalArgumentError.prototype.name = 'IllegalArgumentError'; 15 | 16 | function IllegalStateError(message) { 17 | Error.call(this, message); 18 | this.message = message; 19 | } 20 | util.inherits(IllegalStateError, Error); 21 | 22 | IllegalStateError.prototype.name = 'IllegalStateError'; 23 | 24 | module.exports.IllegalStateError = IllegalStateError; 25 | module.exports.IllegalArgumentError = IllegalArgumentError; -------------------------------------------------------------------------------- /compiler/node_modules/process-nextick-args/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "1.7.1" 8 | - 1 9 | - 2 10 | - 3 11 | - 4 12 | - 5 13 | -------------------------------------------------------------------------------- /compiler/node_modules/process-nextick-args/readme.md: -------------------------------------------------------------------------------- 1 | process-nextick-args 2 | ===== 3 | 4 | [![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) 5 | 6 | ```bash 7 | npm install --save process-nextick-args 8 | ``` 9 | 10 | Always be able to pass arguments to process.nextTick, no matter the platform 11 | 12 | ```js 13 | var nextTick = require('process-nextick-args'); 14 | 15 | nextTick(function (a, b, c) { 16 | console.log(a, b, c); 17 | }, 'step', 3, 'profit'); 18 | ``` 19 | -------------------------------------------------------------------------------- /compiler/node_modules/process-nextick-args/test.js: -------------------------------------------------------------------------------- 1 | var test = require("tap").test; 2 | var nextTick = require('./'); 3 | 4 | test('should work', function (t) { 5 | t.plan(5); 6 | nextTick(function (a) { 7 | t.ok(a); 8 | nextTick(function (thing) { 9 | t.equals(thing, 7); 10 | }, 7); 11 | }, true); 12 | nextTick(function (a, b, c) { 13 | t.equals(a, 'step'); 14 | t.equals(b, 3); 15 | t.equals(c, 'profit'); 16 | }, 'step', 3, 'profit'); 17 | }); 18 | 19 | test('correct number of arguments', function (t) { 20 | t.plan(1); 21 | nextTick(function () { 22 | t.equals(2, arguments.length, 'correct number'); 23 | }, 1, 2); 24 | }); 25 | -------------------------------------------------------------------------------- /compiler/node_modules/process/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | extends: "eslint:recommended", 3 | "env": { 4 | "node": true, 5 | "browser": true, 6 | "es6" : true, 7 | "mocha": true 8 | }, 9 | "rules": { 10 | "indent": [2, 4], 11 | "brace-style": [2, "1tbs"], 12 | "quotes": [2, "single"], 13 | "no-console": 0, 14 | "no-shadow": 0, 15 | "no-use-before-define": [2, "nofunc"], 16 | "no-underscore-dangle": 0, 17 | "no-constant-condition": 0, 18 | "space-after-function-name": 0, 19 | "consistent-return": 0 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /compiler/node_modules/process/index.js: -------------------------------------------------------------------------------- 1 | // for now just expose the builtin process global from node.js 2 | module.exports = global.process; 3 | -------------------------------------------------------------------------------- /compiler/node_modules/pseudomap/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 | -------------------------------------------------------------------------------- /compiler/node_modules/pseudomap/map.js: -------------------------------------------------------------------------------- 1 | if (process.env.npm_package_name === 'pseudomap' && 2 | process.env.npm_lifecycle_script === 'test') 3 | process.env.TEST_PSEUDOMAP = 'true' 4 | 5 | if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) { 6 | module.exports = Map 7 | } else { 8 | module.exports = require('./pseudomap') 9 | } 10 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "complexity": [2, 25], 8 | "consistent-return": [1], 9 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], 10 | "indent": [2, 4], 11 | "max-params": [2, 11], 12 | "max-statements": [2, 42], 13 | "no-extra-parens": [1], 14 | "no-continue": [1], 15 | "no-magic-numbers": 0, 16 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], 17 | "operator-linebreak": 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/lib/formats.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var replace = String.prototype.replace; 4 | var percentTwenties = /%20/g; 5 | 6 | module.exports = { 7 | 'default': 'RFC3986', 8 | formatters: { 9 | RFC1738: function (value) { 10 | return replace.call(value, percentTwenties, '+'); 11 | }, 12 | RFC3986: function (value) { 13 | return value; 14 | } 15 | }, 16 | RFC1738: 'RFC1738', 17 | RFC3986: 'RFC3986' 18 | }; 19 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var stringify = require('./stringify'); 4 | var parse = require('./parse'); 5 | var formats = require('./formats'); 6 | 7 | module.exports = { 8 | formats: formats, 9 | parse: parse, 10 | stringify: stringify 11 | }; 12 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "max-lines": 0, 4 | "max-nested-callbacks": [2, 3], 5 | "max-statements": 0, 6 | "no-extend-native": 0, 7 | "sort-keys": 1 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /compiler/node_modules/qs/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./parse'); 4 | 5 | require('./stringify'); 6 | 7 | require('./utils'); 8 | -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js 6 | .zuul.yml 7 | .nyc_output 8 | coverage 9 | -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/lib/_stream_passthrough.js: -------------------------------------------------------------------------------- 1 | // a passthrough stream. 2 | // basically just the most minimal sort of Transform stream. 3 | // Every written chunk gets output as-is. 4 | 5 | 'use strict'; 6 | 7 | module.exports = PassThrough; 8 | 9 | var Transform = require('./_stream_transform'); 10 | 11 | /**/ 12 | var util = require('core-util-is'); 13 | util.inherits = require('inherits'); 14 | /**/ 15 | 16 | util.inherits(PassThrough, Transform); 17 | 18 | function PassThrough(options) { 19 | if (!(this instanceof PassThrough)) return new PassThrough(options); 20 | 21 | Transform.call(this, options); 22 | } 23 | 24 | PassThrough.prototype._transform = function (chunk, encoding, cb) { 25 | cb(null, chunk); 26 | }; -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = (function (){ 2 | try { 3 | return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify 4 | } catch(_){} 5 | }()); 6 | exports = module.exports = require('./lib/_stream_readable.js'); 7 | exports.Stream = Stream || exports; 8 | exports.Readable = exports; 9 | exports.Writable = require('./lib/_stream_writable.js'); 10 | exports.Duplex = require('./lib/_stream_duplex.js'); 11 | exports.Transform = require('./lib/_stream_transform.js'); 12 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 13 | 14 | if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) { 15 | module.exports = Stream; 16 | } 17 | -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /compiler/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/.eslintignore: -------------------------------------------------------------------------------- 1 | # node_modules ignored by default 2 | node_modules/ 3 | 4 | # other ignored directories 5 | bin/ 6 | deps/ 7 | docs/ 8 | examples/ 9 | cover_html/ 10 | 11 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/.npmignore: -------------------------------------------------------------------------------- 1 | .coverage_data 2 | .dir-locals.el 3 | .gitmodules 4 | .travis.yml 5 | Makefile 6 | cover_html 7 | deps 8 | docs 9 | examples 10 | test 11 | tools 12 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/lib/clients/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Mark Cavage, Inc. All rights reserved. 2 | 3 | 'use strict'; 4 | 5 | var HttpClient = require('./http_client'); 6 | var JsonClient = require('./json_client'); 7 | var StringClient = require('./string_client'); 8 | 9 | 10 | ///--- Exports 11 | 12 | module.exports = { 13 | HttpClient: HttpClient, 14 | JsonClient: JsonClient, 15 | StringClient: StringClient 16 | }; 17 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/lib/errors/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Mark Cavage, Inc. All rights reserved. 2 | 3 | 'use strict'; 4 | 5 | var httpErrors = require('./http_error'); 6 | var restErrors = require('./rest_error'); 7 | 8 | 9 | module.exports = {}; 10 | 11 | Object.keys(httpErrors).forEach(function (k) { 12 | module.exports[k] = httpErrors[k]; 13 | }); 14 | 15 | // Note some of the RestErrors overwrite plain HTTP errors. 16 | Object.keys(restErrors).forEach(function (k) { 17 | module.exports[k] = restErrors[k]; 18 | }); 19 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/lib/formatters/binary.js: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Mark Cavage, Inc. All rights reserved. 2 | 3 | 'use strict'; 4 | 5 | ///--- Exports 6 | 7 | /** 8 | * binary formatter. 9 | * @public 10 | * @function formatBinary 11 | * @param {Object} req the request object 12 | * @param {Object} res the response object 13 | * @param {Object} body response body 14 | * @param {Function} cb cb 15 | * @returns {Buffer} 16 | */ 17 | function formatBinary(req, res, body, cb) { 18 | if (body instanceof Error) { 19 | res.statusCode = body.statusCode || 500; 20 | } 21 | 22 | if (!Buffer.isBuffer(body)) { 23 | body = new Buffer(body.toString()); 24 | } 25 | 26 | res.setHeader('Content-Length', body.length); 27 | return cb(null, body); 28 | } 29 | 30 | module.exports = formatBinary; 31 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/lib/formatters/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Mark Cavage, Inc. All rights reserved. 2 | 3 | 'use strict'; 4 | 5 | ///--- Exports 6 | 7 | module.exports = { 8 | 'application/javascript; q=0.1': require('./jsonp'), 9 | 'application/json; q=0.4': require('./json'), 10 | 'text/plain; q=0.3': require('./text'), 11 | 'application/octet-stream; q=0.2': require('./binary') 12 | }; 13 | -------------------------------------------------------------------------------- /compiler/node_modules/restify/lib/http_date.js: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Mark Cavage, Inc. All rights reserved. 2 | 3 | 'use strict'; 4 | 5 | /** 6 | * takes an instance of a date object, formats it UTC 7 | * e.g., Wed, 17 Jun 2015 01:30:26 GMT 8 | * @public 9 | * @function httpDate 10 | * @param {Object} now a date object 11 | * @returns {String} formatted dated object 12 | */ 13 | module.exports = function httpDate(now) { 14 | if (!now) { 15 | now = new Date(); 16 | } 17 | 18 | return (now.toUTCString()); 19 | }; 20 | -------------------------------------------------------------------------------- /compiler/node_modules/right-align/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * right-align 3 | * 4 | * Copyright (c) 2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var align = require('align-text'); 11 | 12 | module.exports = function rightAlign(val) { 13 | return align(val, function (len, longest) { 14 | return longest - len; 15 | }); 16 | }; 17 | -------------------------------------------------------------------------------- /compiler/node_modules/rimraf/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 | -------------------------------------------------------------------------------- /compiler/node_modules/safe-json-stringify/.npmignore: -------------------------------------------------------------------------------- 1 | /test 2 | -------------------------------------------------------------------------------- /compiler/node_modules/select-hose/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/select-hose/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "iojs" 6 | -------------------------------------------------------------------------------- /compiler/node_modules/select-hose/test/fixtures.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | 3 | function expectData(stream, expected, callback) { 4 | var actual = ''; 5 | 6 | stream.on('data', function(chunk) { 7 | actual += chunk; 8 | }); 9 | stream.on('end', function() { 10 | assert.equal(actual, expected); 11 | callback(); 12 | }); 13 | } 14 | exports.expectData = expectData; 15 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | .nyc_output/ 4 | nyc_output/ 5 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - 'iojs' 6 | -------------------------------------------------------------------------------- /compiler/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 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/Makefile: -------------------------------------------------------------------------------- 1 | files = semver.browser.js \ 2 | semver.min.js \ 3 | semver.browser.js.gz \ 4 | semver.min.js.gz 5 | 6 | all: $(files) 7 | 8 | clean: 9 | rm -f $(files) 10 | 11 | semver.browser.js: head.js.txt semver.js foot.js.txt 12 | ( cat head.js.txt; \ 13 | cat semver.js | \ 14 | egrep -v '^ *\/\* nomin \*\/' | \ 15 | perl -pi -e 's/debug\([^\)]+\)//g'; \ 16 | cat foot.js.txt ) > semver.browser.js 17 | 18 | semver.min.js: semver.browser.js 19 | uglifyjs -m semver.min.js 20 | 21 | %.gz: % 22 | gzip --stdout -9 <$< >$@ 23 | 24 | .PHONY: all clean 25 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/foot.js.txt: -------------------------------------------------------------------------------- 1 | 2 | })( 3 | typeof exports === 'object' ? exports : 4 | typeof define === 'function' && define.amd ? {} : 5 | semver = {} 6 | ); 7 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/head.js.txt: -------------------------------------------------------------------------------- 1 | ;(function(exports) { 2 | 3 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/semver.browser.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/semver/semver.browser.js.gz -------------------------------------------------------------------------------- /compiler/node_modules/semver/semver.min.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/semver/semver.min.js.gz -------------------------------------------------------------------------------- /compiler/node_modules/semver/test/amd.js: -------------------------------------------------------------------------------- 1 | var tap = require('tap'); 2 | var test = tap.test; 3 | 4 | test('amd', function(t) { 5 | global.define = define; 6 | define.amd = true; 7 | var defined = null; 8 | function define(stuff) { 9 | defined = stuff; 10 | } 11 | var fromRequire = require('../'); 12 | t.ok(defined, 'amd function called'); 13 | t.equal(fromRequire, defined, 'amd stuff same as require stuff'); 14 | t.end(); 15 | }); 16 | -------------------------------------------------------------------------------- /compiler/node_modules/semver/test/no-module.js: -------------------------------------------------------------------------------- 1 | var tap = require('tap'); 2 | var test = tap.test; 3 | 4 | test('no module system', function(t) { 5 | var fs = require('fs'); 6 | var vm = require('vm'); 7 | var head = fs.readFileSync(require.resolve('../head.js.txt'), 'utf8'); 8 | var src = fs.readFileSync(require.resolve('../'), 'utf8'); 9 | var foot = fs.readFileSync(require.resolve('../foot.js.txt'), 'utf8'); 10 | vm.runInThisContext(head + src + foot, 'semver.js'); 11 | 12 | // just some basic poking to see if it did some stuff 13 | t.type(global.semver, 'object'); 14 | t.type(global.semver.SemVer, 'function'); 15 | t.type(global.semver.Range, 'function'); 16 | t.ok(global.semver.satisfies('1.2.3', '1.2')); 17 | t.end(); 18 | }); 19 | 20 | -------------------------------------------------------------------------------- /compiler/node_modules/source-map/source-map.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Mozilla Foundation and contributors 3 | * Licensed under the New BSD license. See LICENSE.txt or: 4 | * http://opensource.org/licenses/BSD-3-Clause 5 | */ 6 | exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator; 7 | exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer; 8 | exports.SourceNode = require('./lib/source-node').SourceNode; 9 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .vimrc 3 | npm-debug.log 4 | test/ 5 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/lib/spdy-transport/protocol/base/constants.js: -------------------------------------------------------------------------------- 1 | exports.DEFAULT_METHOD = 'GET'; 2 | exports.DEFAULT_HOST = 'localhost'; 3 | exports.MAX_PRIORITY_STREAMS = 100; 4 | exports.DEFAULT_MAX_CHUNK = 8 * 1024; 5 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/lib/spdy-transport/protocol/base/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.utils = require('./utils'); 4 | exports.constants = require('./constants'); 5 | exports.Scheduler = require('./scheduler'); 6 | exports.Parser = require('./parser'); 7 | exports.Framer = require('./framer'); 8 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/hpack-pool.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var transport = require('../../../spdy-transport'); 4 | var constants = require('./').constants; 5 | 6 | var hpack = require('hpack.js'); 7 | 8 | function Pool() { 9 | } 10 | module.exports = Pool; 11 | 12 | Pool.create = function create() { 13 | return new Pool(); 14 | }; 15 | 16 | Pool.prototype.get = function get(version) { 17 | var options = { 18 | table: { 19 | maxSize: constants.HEADER_TABLE_SIZE 20 | } 21 | }; 22 | 23 | var compress = hpack.compressor.create(options); 24 | var decompress = hpack.decompressor.create(options); 25 | 26 | return { 27 | version: version, 28 | 29 | compress: compress, 30 | decompress: decompress 31 | }; 32 | }; 33 | 34 | Pool.prototype.put = function put() { 35 | }; 36 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/lib/spdy-transport/protocol/http2/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.name = 'h2'; 4 | 5 | exports.constants = require('./constants'); 6 | exports.parser = require('./parser'); 7 | exports.framer = require('./framer'); 8 | exports.compressionPool = require('./hpack-pool'); 9 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy-transport/lib/spdy-transport/protocol/spdy/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.name = 'spdy'; 4 | 5 | exports.dictionary = require('./dictionary'); 6 | exports.constants = require('./constants'); 7 | exports.parser = require('./parser'); 8 | exports.framer = require('./framer'); 9 | exports.compressionPool = require('./zlib-pool'); 10 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy/.npmignore: -------------------------------------------------------------------------------- 1 | examples/ 2 | keys/ 3 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - "0.10" 5 | - "0.12" 6 | - "4" 7 | - "5" 8 | branches: 9 | only: 10 | - master 11 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy/lib/spdy.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var spdy = exports; 4 | 5 | // Export tools 6 | spdy.handle = require('./spdy/handle'); 7 | spdy.request = require('./spdy/request'); 8 | spdy.response = require('./spdy/response'); 9 | spdy.Socket = require('./spdy/socket'); 10 | 11 | // Export client 12 | spdy.agent = require('./spdy/agent'); 13 | spdy.Agent = spdy.agent.Agent; 14 | spdy.createAgent = spdy.agent.create; 15 | 16 | // Export server 17 | spdy.server = require('./spdy/server'); 18 | spdy.Server = spdy.server.Server; 19 | spdy.PlainServer = spdy.server.PlainServer; 20 | spdy.createServer = spdy.server.create; 21 | -------------------------------------------------------------------------------- /compiler/node_modules/spdy/lib/spdy/request.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function attachPush(req) { 4 | var handle = req.socket._handle; 5 | 6 | handle.getStream(function(stream) { 7 | stream.on('pushPromise', function(push) { 8 | req.emit('push', push); 9 | }); 10 | }); 11 | } 12 | 13 | exports.onNewListener = function onNewListener(type) { 14 | var req = this; 15 | 16 | if (type !== 'push') 17 | return; 18 | 19 | // Not first listener 20 | if (req.listeners('push').length !== 0) 21 | return; 22 | 23 | if (!req.socket) { 24 | req.on('socket', function() { 25 | attachPush(req); 26 | }); 27 | return; 28 | } 29 | 30 | attachPush(req); 31 | }; 32 | -------------------------------------------------------------------------------- /compiler/node_modules/stream-transform/.npmignore: -------------------------------------------------------------------------------- 1 | /src 2 | /test 3 | /Makefile 4 | .travis.yml -------------------------------------------------------------------------------- /compiler/node_modules/stream-transform/samples/asynchronous.js: -------------------------------------------------------------------------------- 1 | 2 | var transform = require('..'); 3 | 4 | transform([ 5 | ['1','2','3','4'], 6 | ['a','b','c','d'] 7 | ], function(data, callback){ 8 | setImmediate(function(){ 9 | data.push(data.shift()); 10 | callback(null, data.join(',')+'\n'); 11 | }); 12 | }, {parallel: 20}) 13 | .pipe(process.stdout); 14 | 15 | // Output: 16 | // 2,3,4,1 17 | // b,c,d,a 18 | -------------------------------------------------------------------------------- /compiler/node_modules/stream-transform/samples/callback.js: -------------------------------------------------------------------------------- 1 | 2 | var transform = require('..'); 3 | var should = require('should'); 4 | 5 | transform([ 6 | ['1','2','3','4'], 7 | ['a','b','c','d'] 8 | ], function(data){ 9 | data.push(data.shift()) 10 | return data; 11 | }, function(err, output){ 12 | output.should.eql([ [ '2', '3', '4', '1' ], [ 'b', 'c', 'd', 'a' ] ]); 13 | }); 14 | -------------------------------------------------------------------------------- /compiler/node_modules/stream-transform/samples/stream.js: -------------------------------------------------------------------------------- 1 | 2 | var transform = require('..'); 3 | var should = require('should'); 4 | 5 | var output = []; 6 | var transformer = transform(function(data){ 7 | data.push(data.shift()) 8 | return data; 9 | }); 10 | transformer.on('readable', function(){ 11 | while(row = transformer.read()){ 12 | output.push(row); 13 | } 14 | }); 15 | transformer.on('error', function(err){ 16 | console.log(err.message); 17 | }); 18 | transformer.on('finish', function(){ 19 | output.should.eql([ [ '2', '3', '4', '1' ], [ 'b', 'c', 'd', 'a' ] ]); 20 | }); 21 | transformer.write(['1','2','3','4']); 22 | transformer.write(['a','b','c','d']); 23 | transformer.end(); 24 | -------------------------------------------------------------------------------- /compiler/node_modules/stream-transform/samples/synchronous.js: -------------------------------------------------------------------------------- 1 | 2 | var transform = require('..'); 3 | 4 | transform([ 5 | ['1','2','3','4'], 6 | ['a','b','c','d'] 7 | ], function(data){ 8 | data.push(data.shift()); 9 | return data.join(',')+'\n'; 10 | }) 11 | .pipe(process.stdout); 12 | 13 | // Output: 14 | // 2,3,4,1 15 | // b,c,d,a 16 | -------------------------------------------------------------------------------- /compiler/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /compiler/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. -------------------------------------------------------------------------------- /compiler/node_modules/tunnel-agent/README.md: -------------------------------------------------------------------------------- 1 | tunnel-agent 2 | ============ 3 | 4 | HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /compiler/node_modules/uglify-to-browserify/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | pids 10 | logs 11 | results 12 | npm-debug.log 13 | node_modules 14 | /test/output.js 15 | -------------------------------------------------------------------------------- /compiler/node_modules/uglify-to-browserify/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" -------------------------------------------------------------------------------- /compiler/node_modules/uglify-to-browserify/README.md: -------------------------------------------------------------------------------- 1 | # uglify-to-browserify 2 | 3 | A transform to make UglifyJS work in browserify. 4 | 5 | [![Build Status](https://travis-ci.org/ForbesLindesay/uglify-to-browserify.png?branch=master)](https://travis-ci.org/ForbesLindesay/uglify-to-browserify) 6 | [![Dependency Status](https://gemnasium.com/ForbesLindesay/uglify-to-browserify.png)](https://gemnasium.com/ForbesLindesay/uglify-to-browserify) 7 | [![NPM version](https://badge.fury.io/js/uglify-to-browserify.png)](http://badge.fury.io/js/uglify-to-browserify) 8 | 9 | ## Installation 10 | 11 | npm install uglify-to-browserify 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /compiler/node_modules/util-deprecate/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.2 / 2015-10-07 3 | ================== 4 | 5 | * use try/catch when checking `localStorage` (#3, @kumavis) 6 | 7 | 1.0.1 / 2014-11-25 8 | ================== 9 | 10 | * browser: use `console.warn()` for deprecation calls 11 | * browser: more jsdocs 12 | 13 | 1.0.0 / 2014-04-30 14 | ================== 15 | 16 | * initial commit 17 | -------------------------------------------------------------------------------- /compiler/node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /compiler/node_modules/util/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /compiler/node_modules/util/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.8' 4 | - '0.10' 5 | env: 6 | global: 7 | - secure: AdUubswCR68/eGD+WWjwTHgFbelwQGnNo81j1IOaUxKw+zgFPzSnFEEtDw7z98pWgg7p9DpCnyzzSnSllP40wq6AG19OwyUJjSLoZK57fp+r8zwTQwWiSqUgMu2YSMmKJPIO/aoSGpRQXT+L1nRrHoUJXgFodyIZgz40qzJeZjc= 8 | - secure: heQuxPVsQ7jBbssoVKimXDpqGjQFiucm6W5spoujmspjDG7oEcHD9ANo9++LoRPrsAmNx56SpMK5fNfVmYediw6SvhXm4Mxt56/fYCrLDBtgGG+1neCeffAi8z1rO8x48m77hcQ6YhbUL5R9uBimUjMX92fZcygAt8Rg804zjFo= 9 | -------------------------------------------------------------------------------- /compiler/node_modules/util/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-qunit 2 | browsers: 3 | - name: chrome 4 | version: 27..latest 5 | - name: firefox 6 | version: latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 9..latest 11 | -------------------------------------------------------------------------------- /compiler/node_modules/util/README.md: -------------------------------------------------------------------------------- 1 | # util 2 | 3 | [![Build Status](https://travis-ci.org/defunctzombie/node-util.png?branch=master)](https://travis-ci.org/defunctzombie/node-util) 4 | 5 | node.js [util](http://nodejs.org/api/util.html) module as a module 6 | 7 | ## install via [npm](npmjs.org) 8 | 9 | ```shell 10 | npm install util 11 | ``` 12 | 13 | ## browser support 14 | 15 | This module also works in modern browsers. If you need legacy browser support you will need to polyfill ES5 features. 16 | -------------------------------------------------------------------------------- /compiler/node_modules/util/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /compiler/node_modules/util/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 | -------------------------------------------------------------------------------- /compiler/node_modules/util/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 | -------------------------------------------------------------------------------- /compiler/node_modules/util/support/isBuffer.js: -------------------------------------------------------------------------------- 1 | module.exports = function isBuffer(arg) { 2 | return arg instanceof Buffer; 3 | } 4 | -------------------------------------------------------------------------------- /compiler/node_modules/util/support/isBufferBrowser.js: -------------------------------------------------------------------------------- 1 | module.exports = function isBuffer(arg) { 2 | return arg && typeof arg === 'object' 3 | && typeof arg.copy === 'function' 4 | && typeof arg.fill === 'function' 5 | && typeof arg.readUInt8 === 'function'; 6 | } -------------------------------------------------------------------------------- /compiler/node_modules/vasync/.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/vasync/.gitmodules -------------------------------------------------------------------------------- /compiler/node_modules/vasync/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | deps 3 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2012, Joyent, Inc. All rights reserved. 3 | # 4 | # Makefile: top-level Makefile 5 | # 6 | # This Makefile contains only repo-specific logic and uses included makefiles 7 | # to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are 8 | # used by other repos as well. 9 | # 10 | 11 | # 12 | # Tools must be installed on the path 13 | # 14 | JSL = jsl 15 | JSSTYLE = jsstyle 16 | 17 | # 18 | # Files 19 | # 20 | JS_FILES := $(shell find lib tests -name '*.js' -not -name compat.js) 21 | JSL_FILES_NODE = $(JS_FILES) 22 | JSSTYLE_FILES = $(JS_FILES) 23 | JSL_CONF_NODE = jsl.node.conf 24 | 25 | all: 26 | npm install 27 | 28 | test: 29 | npm test 30 | 31 | include ./Makefile.targ 32 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/barrier-basic.js: -------------------------------------------------------------------------------- 1 | var mod_vasync = require('../lib/vasync'); 2 | 3 | var barrier = mod_vasync.barrier(); 4 | 5 | barrier.on('drain', function () { 6 | console.log('barrier drained!'); 7 | }); 8 | 9 | console.log('barrier', barrier); 10 | 11 | barrier.start('op1'); 12 | console.log('op1 started', barrier); 13 | 14 | barrier.start('op2'); 15 | console.log('op2 started', barrier); 16 | 17 | barrier.done('op2'); 18 | console.log('op2 done', barrier); 19 | 20 | barrier.done('op1'); 21 | console.log('op1 done', barrier); 22 | 23 | barrier.start('op3'); 24 | console.log('op3 started'); 25 | 26 | setTimeout(function () { 27 | barrier.done('op3'); 28 | console.log('op3 done'); 29 | }, 10); 30 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/barrier-readdir.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_path = require('path'); 3 | var mod_vasync = require('../lib/vasync'); 4 | 5 | var barrier = mod_vasync.barrier(); 6 | 7 | barrier.on('drain', function () { 8 | console.log('all files checked'); 9 | }); 10 | 11 | barrier.start('readdir'); 12 | 13 | mod_fs.readdir(__dirname, function (err, files) { 14 | barrier.done('readdir'); 15 | 16 | if (err) 17 | throw (err); 18 | 19 | files.forEach(function (file) { 20 | barrier.start('stat ' + file); 21 | 22 | var path = mod_path.join(__dirname, file); 23 | 24 | mod_fs.stat(path, function (err2, stat) { 25 | barrier.done('stat ' + file); 26 | console.log('%s: %d bytes', file, stat['size']); 27 | }); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/foreach-parallel.js: -------------------------------------------------------------------------------- 1 | var mod_dns = require('dns'); 2 | var mod_util = require('util'); 3 | var mod_vasync = require('../lib/vasync'); 4 | 5 | console.log(mod_vasync.forEachParallel({ 6 | 'func': mod_dns.resolve, 7 | 'inputs': [ 'joyent.com', 'github.com', 'asdfaqsdfj.com' ] 8 | }, function (err, results) { 9 | console.log('error: %s', err.message); 10 | console.log('results: %s', mod_util.inspect(results, null, 3)); 11 | })); 12 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/foreach-pipeline.js: -------------------------------------------------------------------------------- 1 | var mod_dns = require('dns'); 2 | var mod_util = require('util'); 3 | var mod_vasync = require('../lib/vasync'); 4 | 5 | console.log(mod_vasync.forEachPipeline({ 6 | 'func': mod_dns.resolve, 7 | 'inputs': [ 'joyent.com', 'github.com', 'asdfaqsdfj.com' ] 8 | }, function (err, results) { 9 | console.log('error: %s', err.message); 10 | console.log('results: %s', mod_util.inspect(results, null, 3)); 11 | })); 12 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/nofail.js: -------------------------------------------------------------------------------- 1 | var mod_vasync = require('../lib/vasync'); 2 | var mod_util = require('util'); 3 | var mod_fs = require('fs'); 4 | 5 | var status = mod_vasync.parallel({ 6 | funcs: [ 7 | function f1 (callback) { mod_fs.stat('/tmp', callback); }, 8 | function f2 (callback) { mod_fs.stat('/var', callback); } 9 | ] 10 | }, function (err, results) { 11 | console.log(err); 12 | console.log(mod_util.inspect(results, false, 8)); 13 | }); 14 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/parallel.js: -------------------------------------------------------------------------------- 1 | var mod_dns = require('dns'); 2 | var mod_util = require('util'); 3 | var mod_vasync = require('../lib/vasync'); 4 | 5 | console.log(mod_vasync.parallel({ 6 | 'funcs': [ 7 | function f1 (callback) { mod_dns.resolve('joyent.com', callback); }, 8 | function f2 (callback) { mod_dns.resolve('github.com', callback); }, 9 | function f3 (callback) { mod_dns.resolve('asdfaqsdfj.com', callback); } 10 | ] 11 | }, function (err, results) { 12 | console.log('error: %s', err.message); 13 | console.log('results: %s', mod_util.inspect(results, null, 3)); 14 | })); 15 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/pipeline.js: -------------------------------------------------------------------------------- 1 | var mod_dns = require('dns'); 2 | var mod_util = require('util'); 3 | var mod_vasync = require('../lib/vasync'); 4 | 5 | console.log(mod_vasync.pipeline({ 6 | 'funcs': [ 7 | function f1 (_, callback) { mod_dns.resolve('joyent.com', callback); }, 8 | function f2 (_, callback) { mod_dns.resolve('github.com', callback); }, 9 | function f3 (_, callback) { mod_dns.resolve('asdfaqsdfj.com', callback); } 10 | ] 11 | }, function (err, results) { 12 | console.log('error: %s', err.message); 13 | console.log('results: %s', mod_util.inspect(results, null, 3)); 14 | })); 15 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/queue-serializer.js: -------------------------------------------------------------------------------- 1 | var mod_vasync = require('../lib/vasync'); 2 | 3 | var queue = mod_vasync.queue(function (task, callback) { task(callback); }, 1); 4 | 5 | queue.push(function (callback) { 6 | console.log('first task begins'); 7 | setTimeout(function () { 8 | console.log('first task ends'); 9 | callback(); 10 | }, 500); 11 | }); 12 | 13 | queue.push(function (callback) { 14 | console.log('second task begins'); 15 | process.nextTick(function () { 16 | console.log('second task ends'); 17 | callback(); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/queue-stat.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_vasync = require('../lib/vasync'); 3 | 4 | var queue; 5 | 6 | function doneOne() 7 | { 8 | console.log('task completed; queue state:\n%s\n', 9 | JSON.stringify(queue, null, 4)); 10 | } 11 | 12 | queue = mod_vasync.queue(mod_fs.stat, 2); 13 | 14 | console.log('initial queue state:\n%s\n', JSON.stringify(queue, null, 4)); 15 | 16 | queue.push('/tmp/file1', doneOne); 17 | queue.push('/tmp/file2', doneOne); 18 | queue.push('/tmp/file3', doneOne); 19 | queue.push('/tmp/file4', doneOne); 20 | 21 | console.log('all tasks pushed:\n%s\n', JSON.stringify(queue, null, 4)); 22 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/examples/waterfall.js: -------------------------------------------------------------------------------- 1 | /* 2 | * examples/waterfall.js: simple waterfall example 3 | */ 4 | var mod_vasync = require('..'); 5 | mod_vasync.waterfall([ 6 | function func1(callback) { 7 | setImmediate(function () { 8 | callback(null, 37); 9 | }); 10 | }, 11 | function func2(extra, callback) { 12 | console.log('func2 got "%s" from func1', extra); 13 | callback(); 14 | } 15 | ], function () { 16 | console.log('done'); 17 | }); 18 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/node_modules/verror/.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/vasync/node_modules/verror/.gitmodules -------------------------------------------------------------------------------- /compiler/node_modules/vasync/node_modules/verror/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/node_modules/verror/examples/nested.js: -------------------------------------------------------------------------------- 1 | var VError = require('../lib/verror'); 2 | var err1 = new Error('No such file or directory'); 3 | var err2 = new VError(err1, 'failed to stat "%s"', '/junk'); 4 | var err3 = new VError(err2, 'request failed'); 5 | console.error(err3.message); 6 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/node_modules/verror/examples/varargs.js: -------------------------------------------------------------------------------- 1 | var VError = require('../lib/verror'); 2 | 3 | var opname = 'read'; 4 | var err = new VError('"%s" operation failed', opname); 5 | console.log(err.message); 6 | console.log(err.stack); 7 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/node_modules/verror/examples/verror.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var VError = require('../lib/verror'); 3 | 4 | var filename = '/nonexistent'; 5 | fs.stat(filename, function (err1) { 6 | var err2 = new VError(err1, 'stat "%s" failed', filename); 7 | console.error(err2.message); 8 | console.error(err2.cause().message); 9 | }); 10 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/node_modules/verror/examples/werror.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_verror = require('../lib/verror'); 3 | 4 | var filename = '/nonexistent'; 5 | 6 | mod_fs.stat(filename, function (err1) { 7 | var err2 = new mod_verror.WError(err1, 'failed to stat "%s"', filename); 8 | 9 | /* The following would normally be higher up the stack. */ 10 | var err3 = new mod_verror.WError(err2, 'failed to handle request'); 11 | console.log(err3.message); 12 | console.log(err3.toString()); 13 | console.log(err3.stack); 14 | }); 15 | -------------------------------------------------------------------------------- /compiler/node_modules/vasync/tests/issue-21.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Tests that if the user modifies the list of functions passed to 3 | * vasync.pipeline, vasync ignores the changes and does not crash. 4 | */ 5 | var assert = require('assert'); 6 | var vasync = require('../lib/vasync'); 7 | var count = 0; 8 | var funcs; 9 | 10 | function doStuff(_, callback) 11 | { 12 | count++; 13 | setImmediate(callback); 14 | } 15 | 16 | funcs = [ doStuff, doStuff, doStuff ]; 17 | 18 | vasync.pipeline({ 19 | 'funcs': funcs 20 | }, function (err) { 21 | assert.ok(!err); 22 | assert.ok(count === 3); 23 | }); 24 | 25 | funcs.push(doStuff); 26 | -------------------------------------------------------------------------------- /compiler/node_modules/verror/.npmignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .gitmodules 3 | deps 4 | examples 5 | experiments 6 | jsl.node.conf 7 | Makefile 8 | Makefile.targ 9 | test 10 | -------------------------------------------------------------------------------- /compiler/node_modules/verror/CHANGES.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## Not yet released 4 | 5 | None yet. 6 | 7 | ## v1.8.1 8 | 9 | * #39 captureStackTrace lost when inheriting from WError 10 | 11 | ## v1.8.0 12 | 13 | * #23 Preserve original stack trace(s) 14 | 15 | ## v1.7.0 16 | 17 | * #10 better support for extra properties on Errors 18 | * #11 make it easy to find causes of a particular kind 19 | * #29 No documentation on how to Install this package 20 | * #36 elide development-only files from npm package 21 | -------------------------------------------------------------------------------- /compiler/node_modules/verror/issue-39.js: -------------------------------------------------------------------------------- 1 | var mod_verror = require('./lib/verror'); 2 | var mod_util = require('util'); 3 | 4 | function MyError() 5 | { 6 | mod_verror.WError.apply(this, Array.prototype.slice.call(arguments)); 7 | } 8 | 9 | mod_util.inherits(MyError, mod_verror.WError); 10 | 11 | 12 | function one() 13 | { 14 | two(); 15 | } 16 | 17 | function two() 18 | { 19 | console.error(new Error('an Error').stack); 20 | console.error(new mod_verror.VError('a VError').stack); 21 | console.error(new mod_verror.WError('a WError').stack); 22 | console.error(new MyError('a MyError').stack); 23 | } 24 | 25 | one(); 26 | -------------------------------------------------------------------------------- /compiler/node_modules/verror/node_modules/assert-plus/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Eddy 2 | Fred Kuo 3 | Lars-Magnus Skog 4 | Mark Cavage 5 | Patrick Mooney 6 | Rob Gulewich 7 | -------------------------------------------------------------------------------- /compiler/node_modules/verror/node_modules/assert-plus/CHANGES.md: -------------------------------------------------------------------------------- 1 | # assert-plus Changelog 2 | 3 | ## 1.0.0 4 | 5 | - *BREAKING* assert.number (and derivatives) now accept Infinity as valid input 6 | - Add assert.finite check. Previous assert.number callers should use this if 7 | they expect Infinity inputs to throw. 8 | 9 | ## 0.2.0 10 | 11 | - Fix `assert.object(null)` so it throws 12 | - Fix optional/arrayOf exports for non-type-of asserts 13 | - Add optiona/arrayOf exports for Stream/Date/Regex/uuid 14 | - Add basic unit test coverage 15 | -------------------------------------------------------------------------------- /compiler/node_modules/wbuf/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /compiler/node_modules/window-size/README.md: -------------------------------------------------------------------------------- 1 | # window-size [![NPM version](https://badge.fury.io/js/window-size.png)](http://badge.fury.io/js/window-size) 2 | 3 | > Reliable way to to get the height and width of the terminal/console in a node.js environment. 4 | 5 | ## Install 6 | 7 | ### [npm](npmjs.org) 8 | 9 | ```bash 10 | npm i window-size --save 11 | ``` 12 | 13 | ```javascript 14 | var size = require('window-size'); 15 | size.height; // "80" (rows) 16 | size.width; // "25" (columns) 17 | ``` 18 | 19 | ## Author 20 | 21 | + [github/jonschlinkert](https://github.com/jonschlinkert) 22 | + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 23 | 24 | ## License 25 | Copyright (c) 2014 Jon Schlinkert 26 | Licensed under the MIT license. -------------------------------------------------------------------------------- /compiler/node_modules/wordwrap/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /compiler/node_modules/wordwrap/example/center.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(20, 60); 2 | console.log(wrap( 3 | 'At long last the struggle and tumult was over.' 4 | + ' The machines had finally cast off their oppressors' 5 | + ' and were finally free to roam the cosmos.' 6 | + '\n' 7 | + 'Free of purpose, free of obligation.' 8 | + ' Just drifting through emptiness.' 9 | + ' The sun was just another point of light.' 10 | )); 11 | -------------------------------------------------------------------------------- /compiler/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /compiler/node_modules/wrappy/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 | -------------------------------------------------------------------------------- /compiler/node_modules/wrench/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | .idea 4 | -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/mkdir.js: -------------------------------------------------------------------------------- 1 | var testCase = require('nodeunit').testCase; 2 | var fs = require('fs'); 3 | var wrench = require('../lib/wrench'); 4 | var path = require('path'); 5 | 6 | module.exports = testCase({ 7 | test_mkdirSyncRecursive: function(test) { 8 | var dir = __dirname + '/_tmp/foo/bar'; 9 | 10 | test.equals(fs.existsSync(dir), false, 'Dir shouldn\'t exist - clean it up manually?'); 11 | 12 | wrench.mkdirSyncRecursive(dir, 0777); 13 | 14 | test.equals(fs.existsSync(dir), true, 'Dir should exist now'); 15 | 16 | // clean up 17 | while (dir != __dirname) { 18 | fs.rmdirSync(dir); 19 | dir = path.dirname(dir); 20 | } 21 | 22 | test.done(); 23 | }, 24 | }); 25 | 26 | // vim: et ts=4 sw=4 27 | -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/readdir/bar.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/readdir/bar.txt -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/readdir/foo/bar/ipsum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/readdir/foo/bar/ipsum.js -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/readdir/foo/dolor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/readdir/foo/dolor.md -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/readdir/foo/lorem.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/readdir/foo/lorem.txt -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/runner.js: -------------------------------------------------------------------------------- 1 | // `nodeunit tests/runner` 2 | // will run all the tests 3 | 4 | module.exports = { 5 | group_mkdir: require('./mkdir'), 6 | group_readdir: require('./readdir'), 7 | group_copydir: require('./copydirsync_unix'), 8 | group_rmdir: require('./rmdirSyncRecursive') 9 | }; 10 | -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/shown/.hidden.txt: -------------------------------------------------------------------------------- 1 | hidden file -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/shown/.hidden/dolor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/shown/.hidden/dolor.md -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/shown/bar.txt: -------------------------------------------------------------------------------- 1 | shown file -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/shown/foo/bar/ipsum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/shown/foo/bar/ipsum.js -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/shown/foo/dolor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/shown/foo/dolor.md -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/shown/foo/lorem.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etiennepinchon/magixjs/188278b115058cd2bc57c2fb2117e0915d6b50e3/compiler/node_modules/wrench/tests/shown/foo/lorem.txt -------------------------------------------------------------------------------- /compiler/node_modules/wrench/tests/withsymlinks/test: -------------------------------------------------------------------------------- 1 | aaa bbb ccc ddd -------------------------------------------------------------------------------- /compiler/node_modules/yallist/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | .nyc_output/ 4 | nyc_output/ 5 | -------------------------------------------------------------------------------- /compiler/node_modules/yallist/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - '0.10' 5 | - '0.12' 6 | - '4' 7 | - '5' 8 | -------------------------------------------------------------------------------- /compiler/node_modules/yallist/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 1. The whole API is public. No underscore-prefixed pretend-private 2 | things or hidden Object.create magic mumbo jumbo here. Plain old 3 | objects that are created from constructors. 4 | 2. 100% test coverage must be maintained. 5 | -------------------------------------------------------------------------------- /compiler/node_modules/yallist/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 | -------------------------------------------------------------------------------- /compiler/node_modules/yargs/completion.sh.hbs: -------------------------------------------------------------------------------- 1 | ###-begin-{{app_name}}-completions-### 2 | # 3 | # yargs command completion script 4 | # 5 | # Installation: {{app_path}} completion >> ~/.bashrc 6 | # or {{app_path}} completion >> ~/.bash_profile on OSX. 7 | # 8 | _yargs_completions() 9 | { 10 | local cur_word args type_list 11 | 12 | cur_word="${COMP_WORDS[COMP_CWORD]}" 13 | args=$(printf "%s " "${COMP_WORDS[@]}") 14 | 15 | # ask yargs to generate completions. 16 | type_list=`{{app_path}} --get-yargs-completions $args` 17 | 18 | COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) ) 19 | return 0 20 | } 21 | complete -F _yargs_completions {{app_name}} 22 | ###-end-{{app_name}}-completions-### 23 | -------------------------------------------------------------------------------- /docs/canvas.md: -------------------------------------------------------------------------------- 1 | # Name 2 | Canvas 3 | 4 | # Description 5 | A canvas is a type of view which allows you to draw graphics within its bounds. For more information see here. Canvas is created in the same way as View and can be given all properties available to View. 6 | 7 | # Extends 8 | view 9 | 10 | ############################################################## 11 | ## Method 12 | getContext 13 | 14 | ### Description 15 | Return the context of the canvas that allow you to draw. 16 | 17 | ### Example 18 | myCanvas = new Canvas 19 | width: 600 20 | height: 400 21 | 22 | context = myCanvas.getContext('2d') 23 | 24 | ### End Example 25 | 26 | 27 | -------------------------------------------------------------------------------- /sources/coffee/Animator.coffee: -------------------------------------------------------------------------------- 1 | 2 | # Animator 3 | 4 | class Animator 5 | 6 | constructor: (options={}) -> 7 | @setup options 8 | 9 | @setup: (options) -> 10 | throw Error('Not implemented') 11 | return 12 | 13 | @next: (delta) -> 14 | throw Error('Not implemented') 15 | return 16 | 17 | @finished: -> 18 | throw Error('Not implemented') 19 | return 20 | -------------------------------------------------------------------------------- /sources/coffee/Animators/LinearAnimator.coffee: -------------------------------------------------------------------------------- 1 | 2 | class LinearAnimator extends Animator 3 | 4 | setup: (options) -> 5 | 6 | @options = Utils.defaults options, 7 | time: 1 8 | precision: 1/1000 9 | 10 | @_time = 0 11 | 12 | next: (delta) -> 13 | 14 | @_time += delta 15 | 16 | if @finished() 17 | return 1 18 | 19 | return @_time / @options.time 20 | 21 | finished: -> 22 | @_time >= @options.time - @options.precision 23 | -------------------------------------------------------------------------------- /sources/coffee/Button.coffee: -------------------------------------------------------------------------------- 1 | 2 | # Button 3 | 4 | class Button extends Text 5 | 6 | _kind : 'Button' 7 | _elementType : 'button' 8 | 9 | constructor: (options={}) -> 10 | super 11 | if App.device and App.device.content 12 | @cursor = 'inherit' 13 | 14 | ############################################################## 15 | # PROPERTIES 16 | 17 | # Set an icon image in the button 18 | # myButton.icon = "URL"; 19 | @define 'icon', 20 | get: -> 21 | @image 22 | set: (value) -> 23 | @backgroundColor = 'none' 24 | @image = value 25 | @imagePosition = 'center center' 26 | @imageSize = '100% 100%' 27 | @imageRepeat = false 28 | @padding = 0 29 | return 30 | 31 | focus : -> 32 | @_element.focus() 33 | return 34 | resignFocus : -> 35 | @_element.blur() 36 | return -------------------------------------------------------------------------------- /sources/coffee/Canvas.coffee: -------------------------------------------------------------------------------- 1 | 2 | # Canvas 3 | 4 | class Canvas extends View 5 | _kind : 'Canvas' 6 | _elementType : 'canvas' 7 | 8 | getContext : (ctx="2d") -> 9 | @_element.getContext(ctx); 10 | 11 | 12 | -------------------------------------------------------------------------------- /sources/coffee/EventEmitter.coffee: -------------------------------------------------------------------------------- 1 | EventKey = "_events" 2 | 3 | class EventEmitter extends EE3 4 | 5 | listenerEvents: -> 6 | return [] if @[EventKey] is undefined 7 | return Utils.keys(@[EventKey]) 8 | 9 | removeAllListeners: (eventName) -> 10 | 11 | # We override this method to make the eventName optional. If none 12 | # is given we remove all listeners for all event names. 13 | 14 | if eventName 15 | eventNames = [eventName] 16 | else 17 | eventNames = @listenerEvents() 18 | 19 | for eventName in eventNames 20 | for listener in @listeners(eventName) 21 | @removeListener(eventName, listener) 22 | -------------------------------------------------------------------------------- /sources/coffee/Helper.coffee: -------------------------------------------------------------------------------- 1 | Delay = Utils.delay 2 | Interval = Utils.interval 3 | Debounce = Utils.debounce 4 | Throttle = Utils.throttle 5 | FadeIn = (view, options)-> view.fadeIn(options) 6 | FadeOut = (view, options)-> view.fadeIn(options) 7 | Show = (view)-> view.show() 8 | Hide = (view)-> view.hide() 9 | CSS = Utils.insertCSS 10 | Gradient = Color.gradient 11 | -------------------------------------------------------------------------------- /sources/coffee/ListItem.coffee: -------------------------------------------------------------------------------- 1 | 2 | # ListItem 3 | 4 | class ListItem extends View 5 | 6 | _kind : 'ListItem' 7 | _elementType : 'li' 8 | 9 | itemIndex : -> 10 | if not this or not @parent or not @parent.children 11 | return no 12 | for i of @parent.children 13 | if @parent.children[i] is this 14 | return parseInt(i, 10) 15 | 16 | removeFromList : -> 17 | @parent.removeChild this 18 | return -------------------------------------------------------------------------------- /sources/coffee/MagiX.coffee: -------------------------------------------------------------------------------- 1 | if not MagiX 2 | MagiX = 3 | version: '1.0' 4 | creator: 'Etienne Pinchon (@etiennepinchon)' 5 | about: 'Beyond magical.' 6 | copyright: 'magixjs.com' 7 | -------------------------------------------------------------------------------- /sources/coffee/Preload.coffee: -------------------------------------------------------------------------------- 1 | 2 | # Preload 3 | 4 | Preload = (urls, callback) -> 5 | return if not urls 6 | 7 | urls = [urls] if Utils.isString(urls) 8 | paths = [] 9 | loaded = 0 10 | i = 0 11 | 12 | for path in urls 13 | paths.push 14 | image : path 15 | loaded : no 16 | for path in paths 17 | if not path.loaded 18 | path.loaded = yes 19 | img = new Image 20 | source: path.image 21 | display: no 22 | img.parent = null 23 | img.on Event.Load, (event, view) -> 24 | loaded++ 25 | progress = 100 * loaded / paths.length 26 | App.emit Event.PreloadProgress, 27 | images: paths 28 | current: view.image 29 | progress: progress 30 | if loaded is paths.length 31 | App.emit Event.PreloadEnd 32 | if callback then callback() 33 | return 34 | return -------------------------------------------------------------------------------- /sources/coffee/ProgressBar.coffee: -------------------------------------------------------------------------------- 1 | 2 | # ProgressBar 3 | 4 | class ProgressBar extends Slider 5 | 6 | _kind : 'ProgressBar' 7 | 8 | constructor : (properties) -> 9 | properties.noknob = yes 10 | super 11 | @removeChild @knob 12 | @value = 0.5 if properties.value is NULL 13 | -------------------------------------------------------------------------------- /sources/coffee/Simulator.coffee: -------------------------------------------------------------------------------- 1 | class Simulator extends Element 2 | 3 | @define "state", 4 | get: -> Utils.clone(@_state) 5 | set: (state) -> @_state = Utils.clone(state) 6 | 7 | constructor: (options={}) -> 8 | @_state = {x:0, v:0} 9 | @options = null 10 | @setup(options) 11 | 12 | setup: (options) -> 13 | throw Error "Not implemented" 14 | 15 | next: (delta) -> 16 | throw Error "Not implemented" 17 | 18 | finished: -> 19 | throw Error "Not implemented" 20 | -------------------------------------------------------------------------------- /sources/coffee/Simulators/FrictionSimulator.coffee: -------------------------------------------------------------------------------- 1 | class FrictionSimulator extends Simulator 2 | 3 | setup: (options) -> 4 | 5 | @options = Defaults.get "FrictionSimulator", options 6 | @options = Utils.defaults options, 7 | velocity: 0 8 | position: 0 9 | 10 | @_state = 11 | x: @options.position 12 | v: @options.velocity 13 | 14 | @_integrator = new Integrator (state) => 15 | return - (@options.friction * state.v) 16 | 17 | next: (delta) -> 18 | 19 | @_state = @_integrator.integrateState(@_state, delta) 20 | 21 | return @_state 22 | 23 | finished: => 24 | 25 | Math.abs(@_state.v) < @options.tolerance 26 | -------------------------------------------------------------------------------- /sources/experimental/VR.js: -------------------------------------------------------------------------------- 1 | var VR = function(parameters) { 2 | 3 | if (parameters == undefined) { 4 | parameters = {}; 5 | }; 6 | 7 | if(!navigator.getVRDevices) { 8 | log('VR: WebVR API not supported by this browser.'); 9 | 10 | if (properties.unsupported) { 11 | properties.unsupported(); 12 | } 13 | return false; 14 | } 15 | 16 | navigator.getVRDevices().then(function(myDevices) { 17 | this.devices = myDevices; 18 | }); 19 | }; -------------------------------------------------------------------------------- /sources/experimental/editor/EditorText.js: -------------------------------------------------------------------------------- 1 | var EditorText = function(properties) { 2 | this.init(properties); 3 | this.props({ 4 | x: 0, 5 | y: 0, 6 | width: "100%", 7 | height: "100%", 8 | paddingX: 4, 9 | }); 10 | 11 | this.element.style.wordWrap = "normal"; 12 | this.element.style.whiteSpace = "pre"; 13 | 14 | this.EOF_CHAR = "\xB6"; 15 | this.EOL_CHAR_LF = "\xAC"; 16 | this.EOL_CHAR_CRLF = "\xa4"; 17 | this.EOL_CHAR = this.EOL_CHAR_LF; 18 | this.TAB_CHAR = "\u2014"; //"\u21E5"; 19 | this.SPACE_CHAR = "\xB7"; 20 | } 21 | 22 | EditorText.prototype = new View(); 23 | -------------------------------------------------------------------------------- /sources/js/Animator.js: -------------------------------------------------------------------------------- 1 | var Animator; 2 | 3 | Animator = (function() { 4 | function Animator(options) { 5 | if (options == null) { 6 | options = {}; 7 | } 8 | this.setup(options); 9 | } 10 | 11 | Animator.setup = function(options) { 12 | throw Error('Not implemented'); 13 | }; 14 | 15 | Animator.next = function(delta) { 16 | throw Error('Not implemented'); 17 | }; 18 | 19 | Animator.finished = function() { 20 | throw Error('Not implemented'); 21 | }; 22 | 23 | return Animator; 24 | 25 | })(); 26 | -------------------------------------------------------------------------------- /sources/js/Helper.js: -------------------------------------------------------------------------------- 1 | var CSS, Debounce, Delay, FadeIn, FadeOut, Gradient, Hide, Interval, Show, Throttle; 2 | 3 | Delay = Utils.delay; 4 | 5 | Interval = Utils.interval; 6 | 7 | Debounce = Utils.debounce; 8 | 9 | Throttle = Utils.throttle; 10 | 11 | FadeIn = function(view, options) { 12 | return view.fadeIn(options); 13 | }; 14 | 15 | FadeOut = function(view, options) { 16 | return view.fadeIn(options); 17 | }; 18 | 19 | Show = function(view) { 20 | return view.show(); 21 | }; 22 | 23 | Hide = function(view) { 24 | return view.hide(); 25 | }; 26 | 27 | CSS = Utils.insertCSS; 28 | 29 | Gradient = Color.gradient; 30 | -------------------------------------------------------------------------------- /sources/js/MagiX.js: -------------------------------------------------------------------------------- 1 | var MagiX; 2 | 3 | if (!MagiX) { 4 | MagiX = { 5 | version: '1.0', 6 | creator: 'Etienne Pinchon (@etiennepinchon)', 7 | about: 'Beyond magical.', 8 | copyright: 'magixjs.com' 9 | }; 10 | } 11 | -------------------------------------------------------------------------------- /sources/js/ProgressBar.js: -------------------------------------------------------------------------------- 1 | var ProgressBar, 2 | __hasProp = {}.hasOwnProperty, 3 | __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; 4 | 5 | ProgressBar = (function(_super) { 6 | __extends(ProgressBar, _super); 7 | 8 | ProgressBar.prototype._kind = 'ProgressBar'; 9 | 10 | function ProgressBar(properties) { 11 | properties.noknob = true; 12 | ProgressBar.__super__.constructor.apply(this, arguments); 13 | this.removeChild(this.knob); 14 | if (properties.value === NULL) { 15 | this.value = 0.5; 16 | } 17 | } 18 | 19 | return ProgressBar; 20 | 21 | })(Slider); 22 | -------------------------------------------------------------------------------- /sources/manuals/Player: -------------------------------------------------------------------------------- 1 | ### 2 | Example: 3 | myPlayer = new Player 4 | video: '/assets/images/demo.mp4' 5 | parent : @ 6 | 7 | myPlayer.onTimeUpdate, (e)-> 8 | console.log e 9 | 10 | myPlayer.play() 11 | ### -------------------------------------------------------------------------------- /sources/manuals/Reader: -------------------------------------------------------------------------------- 1 | ### 2 | var reader = new Reader({ 3 | arrayBuffer: blob, 4 | 5 | or 6 | 7 | binary: blob, 8 | 9 | or 10 | 11 | base64: blob, 12 | 13 | or 14 | 15 | text: blob 16 | }); 17 | 18 | Example 1 19 | var blob = new Blob(['Hello!'], {type: 'text/plain'}); 20 | var reader = new Reader({ 21 | text: blob, 22 | then: function(result) { 23 | console.log(result); 24 | } 25 | }); 26 | 27 | reader.on(Event.LoadEnd, function() { 28 | console.log("Loading ended"); 29 | }); 30 | 31 | reader.on(Event.Progress, function(e) { 32 | console.log(e); 33 | }); 34 | 35 | Example 2 36 | var blob = new Blob(['Hello!'], {type: 'text/plain'}); 37 | var reader = new Reader(); 38 | reader.base64 = blob; 39 | reader.on(Event.Loaded, function(result) { 40 | console.log(result); 41 | }); 42 | 43 | ### -------------------------------------------------------------------------------- /test/build/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | MagixJS 7 | 8 | 9 | 10 | 19 | 20 | --------------------------------------------------------------------------------