New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jasmine-json-stream-reporter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-json-stream-reporter - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

browser.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("JasmineJsonStreamReporter",[],e):"object"==typeof exports?exports.JasmineJsonStreamReporter=e():t.JasmineJsonStreamReporter=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=e.id;return[this.uuid,r,t].filter(Boolean).join(":")}var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=r(1),a=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];n(this,t);var r=e.header,o=void 0===r?t.defaultHeader:r;this.specResults=[],this.uuid=s.v4(),this.print=e.print||function(){var t;(t=console).log.apply(t,arguments)},this.onComplete=e.onComplete||function(){},this.format=e.format||function(t){return""+o+JSON.stringify(t)}}return t.prototype.consoleMessage=function(t){var e={id:o.call(this,"consoleMessage"),message:t};this.print(this.format(e))},t.prototype.suiteStarted=function(t){t=i({},t,{id:o.call(this,"suiteStarted",t)}),this.print(this.format(t))},t.prototype.suiteDone=function(t){t=i({},t,{id:o.call(this,"suiteDone",t),specs:this.specResults}),this.print(this.format(t)),this.specResults=[]},t.prototype.specStarted=function(t){t=i({},t,{id:o.call(this,"specStarted",t)}),this.print(this.format(t))},t.prototype.specDone=function(t){t=i({},t,{id:o.call(this,"specDone",t)}),this.print(this.format(t)),this.specResults.push(t)},t.prototype.jasmineStarted=function(t){t=i({},t,{id:o.call(this,"jasmineStarted")}),this.print(this.format(t))},t.prototype.jasmineDone=function(t){this.onComplete(t)},t}();a.defaultHeader="",t.exports=a},function(t,e,r){function n(t,e,r){var n=e&&r||0,o=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){o<16&&(e[n+o++]=u[t])});o<16;)e[n+o++]=0;return e}function o(t,e){var r=e||0,n=c;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}function i(t,e,r){var n=e&&r||0,i=e||[];t=t||{};var s=void 0!==t.clockseq?t.clockseq:d,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:v+1,u=a-h+(c-v)/1e4;if(u<0&&void 0===t.clockseq&&(s=s+1&16383),(u<0||a>h)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=a,v=c,d=s,a+=122192928e5;var f=(1e4*(268435455&a)+c)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=255&f;var p=a/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=255&p,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=s>>>8|128,i[n++]=255&s;for(var m=t.node||l,y=0;y<6;y++)i[n+y]=m[y];return e?e:o(i)}function s(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var i=t.random||(t.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var s=0;s<16;s++)e[n+s]=i[s];return e||o(i)}for(var a=r(2),c=[],u={},f=0;f<256;f++)c[f]=(f+256).toString(16).substr(1),u[c[f]]=f;var p=a(),l=[1|p[0],p[1],p[2],p[3],p[4],p[5]],d=16383&(p[6]<<8|p[7]),h=0,v=0,m=s;m.v1=i,m.v4=s,m.parse=n,m.unparse=o,t.exports=m},function(t,e){(function(e){var r;if(e.crypto&&crypto.getRandomValues){var n=new Uint8Array(16);r=function(){return crypto.getRandomValues(n),n}}if(!r){var o=new Array(16);r=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}t.exports=r}).call(e,function(){return this}())}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("JasmineJsonStreamReporter",[],e):"object"==typeof exports?exports.JasmineJsonStreamReporter=e():t.JasmineJsonStreamReporter=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=e.id;return[this.uuid,r,t].filter(Boolean).join(":")}var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=r(1),a=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];n(this,t);var r=e.header,o=void 0===r?t.defaultHeader:r;this.specResults=[],this.uuid=s.v4(),this.print=e.print||function(){var t;(t=console).log.apply(t,arguments)},this.onComplete=e.onComplete||function(){},this.format=e.format||function(t){return""+o+JSON.stringify(t)}}return t.prototype.consoleMessage=function(t){var e={id:o.call(this,"consoleMessage"),message:t};this.print(this.format(e))},t.prototype.coverage=function(t){var e={id:o.call(this,"coverage"),coverage:t};this.print(this.format(e))},t.prototype.suiteStarted=function(t){t=i({},t,{id:o.call(this,"suiteStarted",t)}),this.print(this.format(t))},t.prototype.suiteDone=function(t){t=i({},t,{id:o.call(this,"suiteDone",t),specs:this.specResults}),this.print(this.format(t)),this.specResults=[]},t.prototype.specStarted=function(t){t=i({},t,{id:o.call(this,"specStarted",t)}),this.print(this.format(t))},t.prototype.specDone=function(t){t=i({},t,{id:o.call(this,"specDone",t)}),this.print(this.format(t)),this.specResults.push(t)},t.prototype.jasmineStarted=function(t){t=i({},t,{id:o.call(this,"jasmineStarted")}),this.print(this.format(t))},t.prototype.jasmineDone=function(t){this.onComplete(t)},t}();a.defaultHeader="",t.exports=a},function(t,e,r){function n(t,e,r){var n=e&&r||0,o=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){o<16&&(e[n+o++]=u[t])});o<16;)e[n+o++]=0;return e}function o(t,e){var r=e||0,n=c;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}function i(t,e,r){var n=e&&r||0,i=e||[];t=t||{};var s=void 0!==t.clockseq?t.clockseq:d,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:v+1,u=a-h+(c-v)/1e4;if(u<0&&void 0===t.clockseq&&(s=s+1&16383),(u<0||a>h)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=a,v=c,d=s,a+=122192928e5;var f=(1e4*(268435455&a)+c)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=255&f;var p=a/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=255&p,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=s>>>8|128,i[n++]=255&s;for(var m=t.node||l,y=0;y<6;y++)i[n+y]=m[y];return e?e:o(i)}function s(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var i=t.random||(t.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var s=0;s<16;s++)e[n+s]=i[s];return e||o(i)}for(var a=r(2),c=[],u={},f=0;f<256;f++)c[f]=(f+256).toString(16).substr(1),u[c[f]]=f;var p=a(),l=[1|p[0],p[1],p[2],p[3],p[4],p[5]],d=16383&(p[6]<<8|p[7]),h=0,v=0,m=s;m.v1=i,m.v4=s,m.parse=n,m.unparse=o,t.exports=m},function(t,e){(function(e){var r,n=e.crypto||e.msCrypto;if(n&&n.getRandomValues){var o=new Uint8Array(16);r=function(){return n.getRandomValues(o),o}}if(!r){var i=new Array(16);r=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}t.exports=r}).call(e,function(){return this}())}])});

@@ -48,2 +48,7 @@ 'use strict';

JsonStreamReporter.prototype.coverage = function coverage(_coverage) {
var obj = { id: generateId.call(this, 'coverage'), coverage: _coverage };
this.print(this.format(obj));
};
JsonStreamReporter.prototype.suiteStarted = function suiteStarted(suite) {

@@ -50,0 +55,0 @@ suite = _extends({}, suite, { id: generateId.call(this, 'suiteStarted', suite) });

{
"name": "jasmine-json-stream-reporter",
"version": "0.1.0",
"version": "0.2.0",
"description": "jasmine json stream reporter",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,2 +12,4 @@ 'use strict';

function noop() {}
module.exports = function (reporters) {

@@ -22,3 +24,5 @@ var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

var _options$onConsoleMes = options.onConsoleMessage;
var onConsoleMessage = _options$onConsoleMes === undefined ? function () {} : _options$onConsoleMes;
var onConsoleMessage = _options$onConsoleMes === undefined ? noop : _options$onConsoleMes;
var _options$onCoverage = options.onCoverage;
var onCoverage = _options$onCoverage === undefined ? noop : _options$onCoverage;

@@ -40,3 +44,9 @@ var failures = 0;

var events = { specStarted: true, specDone: specDone, suiteStarted: true, suiteDone: true, jasmineStarted: true, jasmineDone: true, consoleMessage: consoleMessage };
function coverage(_ref2) {
var coverage = _ref2.coverage;
onCoverage(coverage);
}
var events = { specStarted: true, specDone: specDone, suiteStarted: true, suiteDone: true, jasmineStarted: true, jasmineDone: true, consoleMessage: consoleMessage, coverage: coverage };
return through(function (chunk, enc, next) {

@@ -43,0 +53,0 @@ Object.keys(events).find(function (key) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc