buffer-codec
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -6,5 +6,5 @@ (function() { | ||
isString = require("abstract-object/lib/util/isString"); | ||
isString = require("util-ex/lib/is/type/string"); | ||
Errors = require('abstract-object/Error'); | ||
Errors = require('abstract-error'); | ||
@@ -235,3 +235,3 @@ createError = Errors.createError; | ||
Codec.escapeString = escapeString = function(aString, aUnSafeChars) { | ||
var c, result, _i, _len; | ||
var c, i, result, _i, _len; | ||
if (!isString(aString) || aString.length === 0) { | ||
@@ -244,5 +244,5 @@ return aString; | ||
result = ""; | ||
for (_i = 0, _len = aString.length; _i < _len; _i++) { | ||
c = aString[_i]; | ||
result += aUnSafeChars.indexOf(c) >= 0 ? "%" + aString.charCodeAt(_i).toString(16) : c; | ||
for (i = _i = 0, _len = aString.length; _i < _len; i = ++_i) { | ||
c = aString[i]; | ||
result += aUnSafeChars.indexOf(c) >= 0 ? "%" + aString.charCodeAt(i).toString(16) : c; | ||
} | ||
@@ -249,0 +249,0 @@ return result; |
(function() { | ||
var BinaryCodec, Codec, Errors, HexCodec, InvalidFormatError, JsonCodec, TextCodec, aliases, isBuffer, isString, register; | ||
Errors = require('abstract-object/Error'); | ||
Errors = require('abstract-error'); | ||
Codec = module.exports = require('./abstract-codec'); | ||
isString = require("abstract-object/lib/util/isString"); | ||
isString = require("util-ex/lib/is/type/string"); | ||
@@ -10,0 +10,0 @@ register = Codec.register; |
{ | ||
"name": "buffer-codec", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "add the codec ability to abstract-nosql database.", | ||
@@ -22,8 +22,8 @@ "homepage": "https://github.com/snowyu/node-buffer-codec", | ||
"dependencies": { | ||
"abstract-object": "~1.9.1", | ||
"custom-factory": "~1.2.8" | ||
"abstract-error": "^1.0.1", | ||
"custom-factory": "~1.2.8", | ||
"util-ex": "^0.2.8" | ||
}, | ||
"devDependencies": { | ||
"chai": "~1.10.0", | ||
"coffee-script": "~1.8.0", | ||
"chai": "~2.0.0", | ||
"connect-livereload": "*", | ||
@@ -37,10 +37,10 @@ "grunt": "*", | ||
"grunt-contrib-watch": "*", | ||
"grunt-mocha-test": "~0.12.4", | ||
"grunt-mocha-test": "~0.12.7", | ||
"grunt-newer": "*", | ||
"grunt-release": "*", | ||
"grunt-saucelabs": "*", | ||
"mocha": "~2.0.1", | ||
"pre-commit": "~1.0.2", | ||
"mocha": "~2.1.0", | ||
"pre-commit": "~1.0.4", | ||
"sinon": "~1.12.2", | ||
"sinon-chai": "~2.6.0", | ||
"sinon-chai": "~2.7.0", | ||
"source-map-support": "*" | ||
@@ -47,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
18
89568
3
+ Addedabstract-error@^1.0.1
+ Addedutil-ex@^0.2.8
+ Addedabstract-error@1.0.2(transitive)
+ Addedinherits-ex@1.1.8(transitive)
- Removedabstract-object@~1.9.1
- Removedabstract-object@1.9.1(transitive)
- Removedd@1.0.2(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedevents-ex@0.9.8(transitive)
- Removedext@1.7.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removedtype@2.7.3(transitive)