Comparing version 2.0.0 to 2.0.1
@@ -236,3 +236,3 @@ /** | ||
for (i = 0; i < key.length; i++) { | ||
console.assert(key.charCodeAt(i) < 255); | ||
// if key.charCodeAt(i) >= 255, handle error | ||
prepareWrite(this, 1); | ||
@@ -321,3 +321,3 @@ this.bytes[this.position] = key.charCodeAt(i); | ||
this.frameTime = FlvTag.frameTime(this.bytes); | ||
console.assert(this.bytes.byteLength === this.length); | ||
// if bytes.bytelength isn't equal to this.length, handle error | ||
return this; | ||
@@ -324,0 +324,0 @@ }; |
@@ -22,3 +22,3 @@ /** | ||
parseUtf8 = function(bytes, start, end) { | ||
return window.decodeURIComponent(percentEncode(bytes, start, end)); | ||
return decodeURIComponent(percentEncode(bytes, start, end)); | ||
}, | ||
@@ -28,3 +28,3 @@ // return the string representation of the specified byte range, | ||
parseIso88591 = function(bytes, start, end) { | ||
return window.unescape(percentEncode(bytes, start, end)); | ||
return unescape(percentEncode(bytes, start, end)); // jshint ignore:line | ||
}, | ||
@@ -31,0 +31,0 @@ parseSyncSafeInteger = function (data) { |
@@ -75,5 +75,3 @@ 'use strict'; | ||
valu = workingWord >>> (32 - bits); // :uint | ||
console.assert(size < 32, 'Cannot read more than 32 bits at a time'); | ||
// if size > 31, handle error | ||
workingBitsAvailable -= bits; | ||
@@ -80,0 +78,0 @@ if (workingBitsAvailable > 0) { |
{ | ||
"name": "mux.js", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A collection of lightweight utilities for inspecting and manipulating video container formats.", | ||
@@ -11,7 +11,16 @@ "repository": { | ||
"scripts": { | ||
"test": "karma start test/karma.conf.js", | ||
"pretest": "npm run lint", | ||
"build": "mkdir -p dist/ && browserify -s muxjs -e lib/index.js -o dist/mux.js", | ||
"watch": "mkdir -p dist/ && watchify -s muxjs -e lib/index.js -v -o dist/mux.js", | ||
"lint": "jshint lib/**/*.js" | ||
"test": "npm run lint && karma start test/karma/karma.conf.js", | ||
"start": "npm-run-all -p watch serve", | ||
"serve": "node scripts/server.js", | ||
"watch": "npm run mkdirs && npm-run-all -p watch:*", | ||
"watch:js": "watchify -s muxjs lib/index.js -v -o dist/mux.js", | ||
"watch:test": "watchify test/*.test.js -v -o dist-test/mux.js", | ||
"mkdirs": "mkdir -p dist dist-test", | ||
"build": "npm run mkdirs && npm-run-all -p build:*", | ||
"build:js": "browserify -s muxjs lib/index.js -o dist/mux.js", | ||
"build:test": "browserify test/*.test.js -o dist-test/mux.js", | ||
"lint": "npm-run-all -p lint:*", | ||
"lint:js": "jshint lib/**/*.js", | ||
"lint:test": "jshint test/*.test.js", | ||
"clean": "rm -rf dist dist-test" | ||
}, | ||
@@ -31,2 +40,10 @@ "browser": "./lib/index.js", | ||
], | ||
"browserify": { | ||
"transform": [ | ||
"browserify-shim" | ||
] | ||
}, | ||
"browserify-shim": { | ||
"qunit": "global:QUnit" | ||
}, | ||
"author": "Brightcove", | ||
@@ -36,2 +53,3 @@ "license": "Apache-2.0", | ||
"browserify": "^12.0.1", | ||
"express": "^4.13.3", | ||
"jshint": "^2.9.1-rc2", | ||
@@ -43,5 +61,12 @@ "karma": "^0.13.9", | ||
"karma-qunit": "^0.1.5", | ||
"qunitjs": "^1.18.0", | ||
"watchify": "^3.6.1" | ||
"npm-run-all": "^1.4.0", | ||
"portscanner": "^1.0.0", | ||
"qunitjs": "^1.0.0", | ||
"serve-static": "^1.10.0", | ||
"watchify": "^3.6.1", | ||
"webworkify": "^1.0.2" | ||
}, | ||
"dependencies": { | ||
"browserify-shim": "^3.8.12" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7187561
49
116047
1
14
1
+ Addedbrowserify-shim@^3.8.12
+ AddedJSONStream@1.3.5(transitive)
+ Addedaccessory@1.1.0(transitive)
+ Addedacorn@5.7.47.4.1(transitive)
+ Addedacorn-node@1.8.2(transitive)
+ Addedacorn-walk@7.2.0(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedap@0.2.0(transitive)
+ Addedasn1.js@4.10.1(transitive)
+ Addedassert@1.5.1(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedbalanced-match@0.2.11.0.2(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbn.js@4.12.15.2.1(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedbrowser-pack@6.1.0(transitive)
+ Addedbrowser-resolve@2.0.0(transitive)
+ Addedbrowserify@17.0.1(transitive)
+ Addedbrowserify-aes@1.2.0(transitive)
+ Addedbrowserify-cipher@1.0.1(transitive)
+ Addedbrowserify-des@1.0.2(transitive)
+ Addedbrowserify-rsa@4.1.1(transitive)
+ Addedbrowserify-shim@3.8.16(transitive)
+ Addedbrowserify-sign@4.2.3(transitive)
+ Addedbrowserify-zlib@0.2.0(transitive)
+ Addedbuffer@5.2.1(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedbuffer-xor@1.0.3(transitive)
+ Addedbuiltin-status-codes@3.0.0(transitive)
+ Addedcached-path-relative@1.1.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcipher-base@1.0.4(transitive)
+ Addedcombine-source-map@0.8.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedconsole-browserify@1.2.0(transitive)
+ Addedconstants-browserify@1.0.0(transitive)
+ Addedconvert-source-map@1.1.3(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcreate-ecdh@4.0.4(transitive)
+ Addedcreate-hash@1.2.0(transitive)
+ Addedcreate-hmac@1.1.7(transitive)
+ Addedcrypto-browserify@3.12.1(transitive)
+ Addeddash-ast@1.0.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddeps-sort@2.0.1(transitive)
+ Addeddes.js@1.1.0(transitive)
+ Addeddetective@3.1.04.7.15.2.1(transitive)
+ Addeddiffie-hellman@5.0.3(transitive)
+ Addeddomain-browser@1.2.0(transitive)
+ Addeddot-parts@1.0.1(transitive)
+ Addedduplexer2@0.1.4(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedescodegen@1.1.0(transitive)
+ Addedesprima@1.0.4(transitive)
+ Addedesprima-fb@3001.1.0-dev-harmony-fb(transitive)
+ Addedestraverse@1.5.1(transitive)
+ Addedesutils@1.0.0(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedevp_bytestokey@1.0.3(transitive)
+ Addedexposify@0.5.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedfind-parent-dir@0.3.1(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-assigned-identifiers@1.2.0(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobo@1.1.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-require@1.2.2(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhash-base@3.0.4(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedhtmlescape@1.1.1(transitive)
+ Addedhttps-browserify@1.0.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.32.0.4(transitive)
+ Addedinline-source-map@0.6.3(transitive)
+ Addedinsert-module-globals@7.2.1(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-defined@1.0.0(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedisarray@0.0.11.0.0(transitive)
+ Addedjsonparse@1.3.1(transitive)
+ Addedlabeled-stream-splicer@2.0.2(transitive)
+ Addedlodash.memoize@3.0.4(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmd5.js@1.3.5(transitive)
+ Addedmiller-rabin@4.0.1(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addedmodule-deps@6.2.3(transitive)
+ Addedmothership@0.3.0(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-keys@0.4.01.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-browserify@0.3.0(transitive)
+ Addedpako@1.0.11(transitive)
+ Addedparents@1.0.1(transitive)
+ Addedparse-asn1@5.1.7(transitive)
+ Addedpatch-text@1.0.2(transitive)
+ Addedpath-browserify@1.0.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-platform@0.11.15(transitive)
+ Addedpbkdf2@3.1.2(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpublic-encrypt@4.0.3(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedquerystring-es3@0.2.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedrandomfill@1.0.4(transitive)
+ Addedread-only-stream@2.0.0(transitive)
+ Addedreadable-stream@1.0.341.1.142.3.83.6.2(transitive)
+ Addedrename-function-calls@0.1.1(transitive)
+ Addedreplace-requires@1.0.4(transitive)
+ Addedresolve@0.6.31.22.8(transitive)
+ Addedripemd160@2.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsha.js@2.4.11(transitive)
+ Addedshasum-object@1.0.0(transitive)
+ Addedshell-quote@1.8.1(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsource-map@0.1.430.5.7(transitive)
+ Addedstream-browserify@3.0.0(transitive)
+ Addedstream-combiner2@1.1.1(transitive)
+ Addedstream-http@3.2.0(transitive)
+ Addedstream-splicer@2.0.1(transitive)
+ Addedstring_decoder@0.10.311.1.11.3.0(transitive)
+ Addedsubarg@1.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedsyntax-error@1.4.0(transitive)
+ Addedternary@1.0.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedthrough2@0.4.22.0.5(transitive)
+ Addedtimers-browserify@1.4.2(transitive)
+ Addedtransformify@0.1.2(transitive)
+ Addedtty-browserify@0.0.1(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedumd@3.0.3(transitive)
+ Addedundeclared-identifiers@1.1.3(transitive)
+ Addedurl@0.11.4(transitive)
+ Addedutil@0.10.40.12.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvm-browserify@1.1.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@2.1.24.0.2(transitive)