Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					0359aa12a4 | ||
| 
						 | 
					6357bf3edd | ||
| 
						 | 
					3b28b3ed08 | ||
| 
						 | 
					207308a1ac | 
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "pofile",
 | 
			
		||||
  "version": "1.0.11",
 | 
			
		||||
  "version": "1.1.0",
 | 
			
		||||
  "authors": [
 | 
			
		||||
    "Ruben Vermeersch <ruben@rocketeer.be>"
 | 
			
		||||
  ],
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								dist/pofile.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/pofile.js
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
 | 
			
		||||
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
 | 
			
		||||
 | 
			
		||||
},{}],"pofile":[function(require,module,exports){
 | 
			
		||||
var fs = require('fs');
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								dist/pofile.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/pofile.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "pofile",
 | 
			
		||||
  "description": "Parse and serialize Gettext PO files.",
 | 
			
		||||
  "version": "1.0.11",
 | 
			
		||||
  "version": "1.1.0",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "Ruben Vermeersch",
 | 
			
		||||
    "email": "ruben@savanne.be",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										41
									
								
								pofile.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										41
									
								
								pofile.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,18 +1,4 @@
 | 
			
		||||
declare module pofile {
 | 
			
		||||
    function parse(data: string): PO;
 | 
			
		||||
    function load(fileName: string, callback: (err: NodeJS.ErrnoException | null, po: PO) => void): void;
 | 
			
		||||
 | 
			
		||||
    class PO {
 | 
			
		||||
        public comments: string[];
 | 
			
		||||
        public extractedComments: string[];
 | 
			
		||||
        public items: Item[];
 | 
			
		||||
        public headers: Partial<IHeaders>
 | 
			
		||||
 | 
			
		||||
        public save(filename: string, callback: (err?: NodeJS.ErrnoException) => void): void;
 | 
			
		||||
        public toString(): string;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    interface IHeaders {
 | 
			
		||||
declare interface IHeaders {
 | 
			
		||||
    'Project-Id-Version': string;
 | 
			
		||||
    'Report-Msgid-Bugs-To': string;
 | 
			
		||||
    'POT-Creation-Date': string;
 | 
			
		||||
@@ -23,9 +9,10 @@ declare module pofile {
 | 
			
		||||
    'Content-Type': string;
 | 
			
		||||
    'Content-Transfer-Encoding': string;
 | 
			
		||||
    'Plural-Forms': string;
 | 
			
		||||
    }
 | 
			
		||||
    [name: string]: string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
    class Item {
 | 
			
		||||
declare class Item {
 | 
			
		||||
    public msgid: string;
 | 
			
		||||
    public msgctxt?: string;
 | 
			
		||||
    public references: string[];
 | 
			
		||||
@@ -33,12 +20,26 @@ declare module pofile {
 | 
			
		||||
    public msgstr: string[];
 | 
			
		||||
    public comments: string[];
 | 
			
		||||
    public extractedComments: string[];
 | 
			
		||||
        public flags: { [flag: string]: boolean | undefined }
 | 
			
		||||
    public flags: Record<string, boolean | undefined>;
 | 
			
		||||
    private nplurals: number;
 | 
			
		||||
    private obsolete: boolean;
 | 
			
		||||
 | 
			
		||||
    public toString(): string;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export = pofile
 | 
			
		||||
declare class PO {
 | 
			
		||||
    public comments: string[];
 | 
			
		||||
    public extractedComments: string[];
 | 
			
		||||
    public items: Item[];
 | 
			
		||||
    public headers: Partial<IHeaders>
 | 
			
		||||
 | 
			
		||||
    public static parse(data: string): PO;
 | 
			
		||||
    public static parsePluralForms(forms: string): PO;
 | 
			
		||||
    public static load(fileName: string, callback: (err: NodeJS.ErrnoException, po: PO) => void): void;
 | 
			
		||||
    public static Item: typeof Item;
 | 
			
		||||
 | 
			
		||||
    public save(fileName: string, callback: (err: NodeJS.ErrnoException) => void): void;
 | 
			
		||||
    public toString(): string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export = PO
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user