i18next-scanner
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -9,3 +9,3 @@ var _ = require('lodash'); | ||
var errorHandler = require('./gulp/error-handler'); | ||
var hash = require('i18next-text').hash['sha1']; | ||
var sha1 = require('sha1'); | ||
var pkg = require('./package.json'); | ||
@@ -64,3 +64,3 @@ var config = require('./gulp/config'); | ||
if (_.isUndefined(key)) { | ||
key = hash(value); // returns a hash value as default key | ||
key = sha1(value); // returns a hash value as default key | ||
} | ||
@@ -95,3 +95,3 @@ | ||
key = hash(value); // returns a hash value as default key | ||
key = sha1(value); // returns a hash value as default key | ||
parser.parse(key, value); | ||
@@ -118,3 +118,3 @@ }); | ||
value = _.trim(r[1], '\'"'); | ||
key = hash(value); // returns a hash value as default key | ||
key = sha1(value); // returns a hash value as default key | ||
parser.parse(key, value); | ||
@@ -121,0 +121,0 @@ } |
{ | ||
"name": "i18next-scanner", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "i18next-scanner is a transfrom stream that can scan your code, extract translation keys/values, and merge them into i18n resource files.", | ||
@@ -33,4 +33,2 @@ "homepage": "https://github.com/i18next/i18next-scanner", | ||
"colors": "^1.1.2", | ||
"i18next": "^1.10.6", | ||
"i18next-text": "^0.5.6", | ||
"lodash": "^3.10.1", | ||
@@ -37,0 +35,0 @@ "through2": "^2.0.0", |
@@ -459,4 +459,4 @@ # i18next-scanner [![build status](https://travis-ci.org/i18next/i18next-scanner.svg?branch=master)](https://travis-ci.org/i18next/i18next-scanner) [![Coverage Status](https://coveralls.io/repos/i18next/i18next-scanner/badge.svg?branch=master&service=github)](https://coveralls.io/github/i18next/i18next-scanner?branch=master) | ||
Copyright (c) 2015 Cheton Wu | ||
Copyright (c) 2015-2016 Cheton Wu | ||
Licensed under the [MIT License](https://github.com/i18next/i18next-scanner/blob/master/LICENSE). |
Sorry, the diff of this file is not supported yet
5
32
77975
- Removedi18next@^1.10.6
- Removedi18next-text@^0.5.6
- Removedcharenc@0.0.2(transitive)
- Removedcookies@0.9.1(transitive)
- Removedcrc-32@0.2.2(transitive)
- Removedcrypt@0.0.2(transitive)
- Removeddepd@2.0.0(transitive)
- Removedi18next@1.10.6(transitive)
- Removedi18next-client@1.10.3(transitive)
- Removedi18next-text@0.5.6(transitive)
- Removedjson5@0.2.0(transitive)
- Removedkeygrip@1.1.0(transitive)
- Removedmd5@2.3.0(transitive)
- Removedsha1@1.1.1(transitive)
- Removedtsscmp@1.0.6(transitive)