Update pinned package versions
This commit is contained in:
parent
931433e83d
commit
d51674950c
30
package.json
30
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@biesbjerg/ng2-translate-extract",
|
"name": "@biesbjerg/ngx-translate-extract",
|
||||||
"version": "0.6.0",
|
"version": "1.0.0",
|
||||||
"description": "Extract strings from projects using ng2-translate",
|
"description": "Extract strings from projects using ngx-translate",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@ -9,7 +9,7 @@
|
|||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
"bin": {
|
"bin": {
|
||||||
"ng2-translate-extract": "bin/extract.js"
|
"ngx-translate-extract": "bin/extract.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && tsc",
|
"build": "npm run clean && tsc",
|
||||||
@ -20,14 +20,16 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/biesbjerg/ng2-translate-extract.git"
|
"url": "https://github.com/biesbjerg/ngx-translate-extract.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"angular2",
|
"angular2",
|
||||||
"ionic",
|
"ionic",
|
||||||
"ionic2",
|
"ionic2",
|
||||||
"ng2-translate",
|
"ng2-translate",
|
||||||
|
"ngx-translate",
|
||||||
"extract",
|
"extract",
|
||||||
|
"extractor",
|
||||||
"translate",
|
"translate",
|
||||||
"i18n",
|
"i18n",
|
||||||
"gettext"
|
"gettext"
|
||||||
@ -35,30 +37,30 @@
|
|||||||
"author": "Kim Biesbjerg <kim@biesbjerg.com>",
|
"author": "Kim Biesbjerg <kim@biesbjerg.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/biesbjerg/ng2-translate-extract/issues"
|
"url": "https://github.com/biesbjerg/ngx-translate-extract/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/biesbjerg/ng2-translate-extract",
|
"homepage": "https://github.com/biesbjerg/ngx-translate-extract",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.3.2"
|
"node": ">=4.3.2"
|
||||||
},
|
},
|
||||||
"config": {},
|
"config": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.35",
|
||||||
"@types/cheerio": "0.17.31",
|
"@types/cheerio": "0.17.31",
|
||||||
"@types/glob": "5.0.30",
|
"@types/glob": "5.0.30",
|
||||||
"@types/mocha": "2.2.34",
|
"@types/mocha": "2.2.39",
|
||||||
"chai": "3.5.0",
|
"chai": "3.5.0",
|
||||||
"mocha": "3.2.0",
|
"mocha": "3.2.0",
|
||||||
"ts-node": "1.7.2",
|
"ts-node": "2.1.0",
|
||||||
"tslint": "4.1.1",
|
"tslint": "4.5.1",
|
||||||
"tslint-eslint-rules": "3.2.0",
|
"tslint-eslint-rules": "3.4.0",
|
||||||
"typescript": "2.0.10"
|
"typescript": "2.2.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cheerio": "0.22.0",
|
"cheerio": "0.22.0",
|
||||||
"cli": "1.0.1",
|
"cli": "1.0.1",
|
||||||
"fs": "0.0.1-security",
|
"fs": "0.0.1-security",
|
||||||
"gettext-parser": "1.2.1",
|
"gettext-parser": "1.2.2",
|
||||||
"glob": "7.1.1",
|
"glob": "7.1.1",
|
||||||
"path": "0.12.7",
|
"path": "0.12.7",
|
||||||
"flat": "2.0.1"
|
"flat": "2.0.1"
|
||||||
|
@ -34,7 +34,7 @@ export class AstServiceParser implements ParserInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected _createSourceFile(path: string, contents: string): ts.SourceFile {
|
protected _createSourceFile(path: string, contents: string): ts.SourceFile {
|
||||||
return ts.createSourceFile(path, contents, ts.ScriptTarget.ES6, /*setParentNodes */ false);
|
return ts.createSourceFile(path, contents, null, /*setParentNodes */ false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,6 +43,10 @@ export class AstServiceParser implements ParserInterface {
|
|||||||
*/
|
*/
|
||||||
protected _getInstancePropertyName(): string {
|
protected _getInstancePropertyName(): string {
|
||||||
const constructorNode = this._findConstructorNode();
|
const constructorNode = this._findConstructorNode();
|
||||||
|
if (!constructorNode) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const result = constructorNode.parameters.find(parameter => {
|
const result = constructorNode.parameters.find(parameter => {
|
||||||
// Skip if visibility modifier is not present (we want it set as an instance property)
|
// Skip if visibility modifier is not present (we want it set as an instance property)
|
||||||
if (!parameter.modifiers) {
|
if (!parameter.modifiers) {
|
||||||
@ -50,7 +54,7 @@ export class AstServiceParser implements ParserInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make sure className is of the correct type
|
// Make sure className is of the correct type
|
||||||
const className: string = ( (parameter.type as ts.TypeReferenceNode).typeName as ts.Identifier).text;
|
const className: string = ((parameter.type as ts.TypeReferenceNode).typeName as ts.Identifier).text;
|
||||||
if (className !== this._serviceClassName) {
|
if (className !== this._serviceClassName) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user