From b09622d211f8a2725a7bbf62d8616dba5eaec927 Mon Sep 17 00:00:00 2001 From: Ziv Barber Date: Fri, 29 Mar 2019 09:24:29 +0100 Subject: [PATCH] build: Version 0.4.8 release --- CHANGELOG | 7 + .../npm/eslint-config-prettier_vx.x.x.js | 94 +++++++++ .../npm/eslint-plugin-flowtype_vx.x.x.js | 4 +- .../npm/eslint-plugin-prettier_vx.x.x.js | 32 ++++ flow-typed/npm/eslint_vx.x.x.js | 4 +- flow-typed/npm/jszip_vx.x.x.js | 155 +++++++++++---- flow-typed/npm/prettier_v1.x.x.js | 178 ++++++++++++++++++ flow-typed/npm/rollup-plugin-json_vx.x.x.js | 4 +- flow-typed/npm/rollup_vx.x.x.js | 4 +- flow-typed/npm/setimmediate_vx.x.x.js | 4 +- flow-typed/npm/xmlbuilder_vx.x.x.js | 168 ++++++++++++++++- lib/msexcel-builder.js | 4 +- manual/README-basic.md | 28 +-- manual/README.md | 1 + manual/advanced/README.md | 3 + manual/advanced/plugins/docplug/README.md | 2 +- manual/advanced/plugins/msdoc/README.md | 2 +- manual/advanced/plugins/oodoc/README.md | 2 +- manual/advanced/plugins/pptx/README.md | 2 +- manual/advanced/plugins/xlsx/README.md | 2 +- package.json | 2 +- 21 files changed, 623 insertions(+), 79 deletions(-) create mode 100644 flow-typed/npm/eslint-config-prettier_vx.x.x.js create mode 100644 flow-typed/npm/eslint-plugin-prettier_vx.x.x.js create mode 100644 flow-typed/npm/prettier_v1.x.x.js diff --git a/CHANGELOG b/CHANGELOG index f491f620..e0d27d75 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +- Version 0.4.8: + - Upgraded jszip to the last version. + - Some packages updates. + - xmlbuilder 11.0.1 migration. + - Start cleaning the documentation. + - Remove missing sourcemap url (Merge pull request #295 from pdesantis/master). + - Update docxtable.js. - Version 0.4.7: - Merge pull request #278 from aug2uag/master. - Merge pull request #255 from OmniCyberSecurity/master. diff --git a/flow-typed/npm/eslint-config-prettier_vx.x.x.js b/flow-typed/npm/eslint-config-prettier_vx.x.x.js new file mode 100644 index 00000000..270fb376 --- /dev/null +++ b/flow-typed/npm/eslint-config-prettier_vx.x.x.js @@ -0,0 +1,94 @@ +// flow-typed signature: 00e17e4cdc63fb2ff5c12de1f10787e2 +// flow-typed version: <>/eslint-config-prettier_v^4.1.0/flow_v0.91.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'eslint-config-prettier' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'eslint-config-prettier' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'eslint-config-prettier/@typescript-eslint' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/babel' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/bin/cli' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/bin/validators' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/flowtype' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/react' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/standard' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/unicorn' { + declare module.exports: any; +} + +declare module 'eslint-config-prettier/vue' { + declare module.exports: any; +} + +// Filename aliases +declare module 'eslint-config-prettier/@typescript-eslint.js' { + declare module.exports: $Exports<'eslint-config-prettier/@typescript-eslint'>; +} +declare module 'eslint-config-prettier/babel.js' { + declare module.exports: $Exports<'eslint-config-prettier/babel'>; +} +declare module 'eslint-config-prettier/bin/cli.js' { + declare module.exports: $Exports<'eslint-config-prettier/bin/cli'>; +} +declare module 'eslint-config-prettier/bin/validators.js' { + declare module.exports: $Exports<'eslint-config-prettier/bin/validators'>; +} +declare module 'eslint-config-prettier/flowtype.js' { + declare module.exports: $Exports<'eslint-config-prettier/flowtype'>; +} +declare module 'eslint-config-prettier/index' { + declare module.exports: $Exports<'eslint-config-prettier'>; +} +declare module 'eslint-config-prettier/index.js' { + declare module.exports: $Exports<'eslint-config-prettier'>; +} +declare module 'eslint-config-prettier/react.js' { + declare module.exports: $Exports<'eslint-config-prettier/react'>; +} +declare module 'eslint-config-prettier/standard.js' { + declare module.exports: $Exports<'eslint-config-prettier/standard'>; +} +declare module 'eslint-config-prettier/unicorn.js' { + declare module.exports: $Exports<'eslint-config-prettier/unicorn'>; +} +declare module 'eslint-config-prettier/vue.js' { + declare module.exports: $Exports<'eslint-config-prettier/vue'>; +} diff --git a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js index 741304c3..98f2af8c 100644 --- a/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js +++ b/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e6953448389743bfef71af7b0300080b -// flow-typed version: <>/eslint-plugin-flowtype_v^3.0.0/flow_v0.91.0 +// flow-typed signature: 4d15baac6f6b706b89b6ee35189e8122 +// flow-typed version: <>/eslint-plugin-flowtype_v^3.4.2/flow_v0.91.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js new file mode 100644 index 00000000..e41bc0be --- /dev/null +++ b/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 34dac87659219e944c47088356829240 +// flow-typed version: <>/eslint-plugin-prettier_v^3.0.1/flow_v0.91.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'eslint-plugin-prettier' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'eslint-plugin-prettier' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'eslint-plugin-prettier/eslint-plugin-prettier' { + declare module.exports: any; +} + +// Filename aliases +declare module 'eslint-plugin-prettier/eslint-plugin-prettier.js' { + declare module.exports: $Exports<'eslint-plugin-prettier/eslint-plugin-prettier'>; +} diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js index 326b0ce7..1993362e 100644 --- a/flow-typed/npm/eslint_vx.x.x.js +++ b/flow-typed/npm/eslint_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 2c57d2d9cd664a94bf1a8080d2cb361c -// flow-typed version: <>/eslint_v^5.15.2/flow_v0.91.0 +// flow-typed signature: a9a0b041910ce24522992cd7094b43f5 +// flow-typed version: <>/eslint_v^5.15.3/flow_v0.91.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/jszip_vx.x.x.js b/flow-typed/npm/jszip_vx.x.x.js index 0737322f..782d443d 100644 --- a/flow-typed/npm/jszip_vx.x.x.js +++ b/flow-typed/npm/jszip_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: e0b0fe9bd0fcccdfee93d0c77500b621 -// flow-typed version: <>/jszip_v^2.5.0/flow_v0.91.0 +// flow-typed signature: 9c8e311686d10d1eba1c2ff1107569af +// flow-typed version: <>/jszip_v^3.2.1/flow_v0.91.0 /** * This is an autogenerated libdef stub for: @@ -30,10 +30,6 @@ declare module 'jszip/dist/jszip.min' { declare module.exports: any; } -declare module 'jszip/lib/arrayReader' { - declare module.exports: any; -} - declare module 'jszip/lib/base64' { declare module.exports: any; } @@ -50,19 +46,23 @@ declare module 'jszip/lib/crc32' { declare module.exports: any; } -declare module 'jszip/lib/dataReader' { +declare module 'jszip/lib/defaults' { declare module.exports: any; } -declare module 'jszip/lib/defaults' { +declare module 'jszip/lib/external' { declare module.exports: any; } -declare module 'jszip/lib/deprecatedPublicUtils' { +declare module 'jszip/lib/flate' { declare module.exports: any; } -declare module 'jszip/lib/flate' { +declare module 'jszip/lib/generate/index' { + declare module.exports: any; +} + +declare module 'jszip/lib/generate/ZipFileWorker' { declare module.exports: any; } @@ -78,11 +78,15 @@ declare module 'jszip/lib/load' { declare module.exports: any; } -declare module 'jszip/lib/nodeBuffer' { +declare module 'jszip/lib/nodejs/NodejsStreamInputAdapter' { + declare module.exports: any; +} + +declare module 'jszip/lib/nodejs/NodejsStreamOutputAdapter' { declare module.exports: any; } -declare module 'jszip/lib/nodeBufferReader' { +declare module 'jszip/lib/nodejsUtils' { declare module.exports: any; } @@ -90,27 +94,63 @@ declare module 'jszip/lib/object' { declare module.exports: any; } +declare module 'jszip/lib/readable-stream-browser' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/ArrayReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/DataReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/NodeBufferReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/readerFor' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/StringReader' { + declare module.exports: any; +} + +declare module 'jszip/lib/reader/Uint8ArrayReader' { + declare module.exports: any; +} + declare module 'jszip/lib/signature' { declare module.exports: any; } -declare module 'jszip/lib/stringReader' { +declare module 'jszip/lib/stream/ConvertWorker' { declare module.exports: any; } -declare module 'jszip/lib/stringWriter' { +declare module 'jszip/lib/stream/Crc32Probe' { declare module.exports: any; } -declare module 'jszip/lib/support' { +declare module 'jszip/lib/stream/DataLengthProbe' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/DataWorker' { + declare module.exports: any; +} + +declare module 'jszip/lib/stream/GenericWorker' { declare module.exports: any; } -declare module 'jszip/lib/uint8ArrayReader' { +declare module 'jszip/lib/stream/StreamHelper' { declare module.exports: any; } -declare module 'jszip/lib/uint8ArrayWriter' { +declare module 'jszip/lib/support' { declare module.exports: any; } @@ -130,6 +170,10 @@ declare module 'jszip/lib/zipEntry' { declare module.exports: any; } +declare module 'jszip/lib/zipObject' { + declare module.exports: any; +} + declare module 'jszip/vendor/FileSaver' { declare module.exports: any; } @@ -141,9 +185,6 @@ declare module 'jszip/dist/jszip.js' { declare module 'jszip/dist/jszip.min.js' { declare module.exports: $Exports<'jszip/dist/jszip.min'>; } -declare module 'jszip/lib/arrayReader.js' { - declare module.exports: $Exports<'jszip/lib/arrayReader'>; -} declare module 'jszip/lib/base64.js' { declare module.exports: $Exports<'jszip/lib/base64'>; } @@ -156,18 +197,21 @@ declare module 'jszip/lib/compressions.js' { declare module 'jszip/lib/crc32.js' { declare module.exports: $Exports<'jszip/lib/crc32'>; } -declare module 'jszip/lib/dataReader.js' { - declare module.exports: $Exports<'jszip/lib/dataReader'>; -} declare module 'jszip/lib/defaults.js' { declare module.exports: $Exports<'jszip/lib/defaults'>; } -declare module 'jszip/lib/deprecatedPublicUtils.js' { - declare module.exports: $Exports<'jszip/lib/deprecatedPublicUtils'>; +declare module 'jszip/lib/external.js' { + declare module.exports: $Exports<'jszip/lib/external'>; } declare module 'jszip/lib/flate.js' { declare module.exports: $Exports<'jszip/lib/flate'>; } +declare module 'jszip/lib/generate/index.js' { + declare module.exports: $Exports<'jszip/lib/generate/index'>; +} +declare module 'jszip/lib/generate/ZipFileWorker.js' { + declare module.exports: $Exports<'jszip/lib/generate/ZipFileWorker'>; +} declare module 'jszip/lib/index.js' { declare module.exports: $Exports<'jszip/lib/index'>; } @@ -177,32 +221,62 @@ declare module 'jszip/lib/license_header.js' { declare module 'jszip/lib/load.js' { declare module.exports: $Exports<'jszip/lib/load'>; } -declare module 'jszip/lib/nodeBuffer.js' { - declare module.exports: $Exports<'jszip/lib/nodeBuffer'>; +declare module 'jszip/lib/nodejs/NodejsStreamInputAdapter.js' { + declare module.exports: $Exports<'jszip/lib/nodejs/NodejsStreamInputAdapter'>; +} +declare module 'jszip/lib/nodejs/NodejsStreamOutputAdapter.js' { + declare module.exports: $Exports<'jszip/lib/nodejs/NodejsStreamOutputAdapter'>; } -declare module 'jszip/lib/nodeBufferReader.js' { - declare module.exports: $Exports<'jszip/lib/nodeBufferReader'>; +declare module 'jszip/lib/nodejsUtils.js' { + declare module.exports: $Exports<'jszip/lib/nodejsUtils'>; } declare module 'jszip/lib/object.js' { declare module.exports: $Exports<'jszip/lib/object'>; } +declare module 'jszip/lib/readable-stream-browser.js' { + declare module.exports: $Exports<'jszip/lib/readable-stream-browser'>; +} +declare module 'jszip/lib/reader/ArrayReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/ArrayReader'>; +} +declare module 'jszip/lib/reader/DataReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/DataReader'>; +} +declare module 'jszip/lib/reader/NodeBufferReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/NodeBufferReader'>; +} +declare module 'jszip/lib/reader/readerFor.js' { + declare module.exports: $Exports<'jszip/lib/reader/readerFor'>; +} +declare module 'jszip/lib/reader/StringReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/StringReader'>; +} +declare module 'jszip/lib/reader/Uint8ArrayReader.js' { + declare module.exports: $Exports<'jszip/lib/reader/Uint8ArrayReader'>; +} declare module 'jszip/lib/signature.js' { declare module.exports: $Exports<'jszip/lib/signature'>; } -declare module 'jszip/lib/stringReader.js' { - declare module.exports: $Exports<'jszip/lib/stringReader'>; +declare module 'jszip/lib/stream/ConvertWorker.js' { + declare module.exports: $Exports<'jszip/lib/stream/ConvertWorker'>; } -declare module 'jszip/lib/stringWriter.js' { - declare module.exports: $Exports<'jszip/lib/stringWriter'>; +declare module 'jszip/lib/stream/Crc32Probe.js' { + declare module.exports: $Exports<'jszip/lib/stream/Crc32Probe'>; } -declare module 'jszip/lib/support.js' { - declare module.exports: $Exports<'jszip/lib/support'>; +declare module 'jszip/lib/stream/DataLengthProbe.js' { + declare module.exports: $Exports<'jszip/lib/stream/DataLengthProbe'>; +} +declare module 'jszip/lib/stream/DataWorker.js' { + declare module.exports: $Exports<'jszip/lib/stream/DataWorker'>; } -declare module 'jszip/lib/uint8ArrayReader.js' { - declare module.exports: $Exports<'jszip/lib/uint8ArrayReader'>; +declare module 'jszip/lib/stream/GenericWorker.js' { + declare module.exports: $Exports<'jszip/lib/stream/GenericWorker'>; } -declare module 'jszip/lib/uint8ArrayWriter.js' { - declare module.exports: $Exports<'jszip/lib/uint8ArrayWriter'>; +declare module 'jszip/lib/stream/StreamHelper.js' { + declare module.exports: $Exports<'jszip/lib/stream/StreamHelper'>; +} +declare module 'jszip/lib/support.js' { + declare module.exports: $Exports<'jszip/lib/support'>; } declare module 'jszip/lib/utf8.js' { declare module.exports: $Exports<'jszip/lib/utf8'>; @@ -216,6 +290,9 @@ declare module 'jszip/lib/zipEntries.js' { declare module 'jszip/lib/zipEntry.js' { declare module.exports: $Exports<'jszip/lib/zipEntry'>; } +declare module 'jszip/lib/zipObject.js' { + declare module.exports: $Exports<'jszip/lib/zipObject'>; +} declare module 'jszip/vendor/FileSaver.js' { declare module.exports: $Exports<'jszip/vendor/FileSaver'>; } diff --git a/flow-typed/npm/prettier_v1.x.x.js b/flow-typed/npm/prettier_v1.x.x.js new file mode 100644 index 00000000..f7e7b6ea --- /dev/null +++ b/flow-typed/npm/prettier_v1.x.x.js @@ -0,0 +1,178 @@ +// flow-typed signature: 066c92e9ccb5f0711df8d73cbca837d6 +// flow-typed version: 9e32affdbd/prettier_v1.x.x/flow_>=v0.56.x + +declare module "prettier" { + declare export type AST = Object; + declare export type Doc = Object; + declare export type FastPath = Object; + + declare export type PrettierParserName = + | "babylon" + | "flow" + | "typescript" + | "postcss" + | "css" + | "less" + | "scss" + | "json" + | "graphql" + | "markdown" + | "vue"; + + declare export type PrettierParser = { + [name: PrettierParserName]: (text: string, options?: Object) => AST + }; + + declare export type CustomParser = ( + text: string, + parsers: PrettierParser, + options: Options + ) => AST; + + declare export type Options = {| + printWidth?: number, + tabWidth?: number, + useTabs?: boolean, + semi?: boolean, + singleQuote?: boolean, + trailingComma?: "none" | "es5" | "all", + bracketSpacing?: boolean, + jsxBracketSameLine?: boolean, + arrowParens?: "avoid" | "always", + rangeStart?: number, + rangeEnd?: number, + parser?: PrettierParserName | CustomParser, + filepath?: string, + requirePragma?: boolean, + insertPragma?: boolean, + proseWrap?: "always" | "never" | "preserve", + plugins?: Array + |}; + + declare export type Plugin = { + languages: SupportLanguage, + parsers: { [parserName: string]: Parser }, + printers: { [astFormat: string]: Printer } + }; + + declare export type Parser = { + parse: ( + text: string, + parsers: { [parserName: string]: Parser }, + options: Object + ) => AST, + astFormat: string + }; + + declare export type Printer = { + print: ( + path: FastPath, + options: Object, + print: (path: FastPath) => Doc + ) => Doc, + embed: ( + path: FastPath, + print: (path: FastPath) => Doc, + textToDoc: (text: string, options: Object) => Doc, + options: Object + ) => ?Doc + }; + + declare export type CursorOptions = {| + cursorOffset: number, + printWidth?: $PropertyType, + tabWidth?: $PropertyType, + useTabs?: $PropertyType, + semi?: $PropertyType, + singleQuote?: $PropertyType, + trailingComma?: $PropertyType, + bracketSpacing?: $PropertyType, + jsxBracketSameLine?: $PropertyType, + arrowParens?: $PropertyType, + parser?: $PropertyType, + filepath?: $PropertyType, + requirePragma?: $PropertyType, + insertPragma?: $PropertyType, + proseWrap?: $PropertyType, + plugins?: $PropertyType + |}; + + declare export type CursorResult = {| + formatted: string, + cursorOffset: number + |}; + + declare export type ResolveConfigOptions = {| + useCache?: boolean, + config?: string, + editorconfig?: boolean + |}; + + declare export type SupportLanguage = { + name: string, + since: string, + parsers: Array, + group?: string, + tmScope: string, + aceMode: string, + codemirrorMode: string, + codemirrorMimeType: string, + aliases?: Array, + extensions: Array, + filenames?: Array, + linguistLanguageId: number, + vscodeLanguageIds: Array + }; + + declare export type SupportOption = {| + since: string, + type: "int" | "boolean" | "choice" | "path", + deprecated?: string, + redirect?: SupportOptionRedirect, + description: string, + oppositeDescription?: string, + default: SupportOptionValue, + range?: SupportOptionRange, + choices?: SupportOptionChoice + |}; + + declare export type SupportOptionRedirect = {| + options: string, + value: SupportOptionValue + |}; + + declare export type SupportOptionRange = {| + start: number, + end: number, + step: number + |}; + + declare export type SupportOptionChoice = {| + value: boolean | string, + description?: string, + since?: string, + deprecated?: string, + redirect?: SupportOptionValue + |}; + + declare export type SupportOptionValue = number | boolean | string; + + declare export type SupportInfo = {| + languages: Array, + options: Array + |}; + + declare export type Prettier = {| + format: (source: string, options?: Options) => string, + check: (source: string, options?: Options) => boolean, + formatWithCursor: (source: string, options: CursorOptions) => CursorResult, + resolveConfig: { + (filePath: string, options?: ResolveConfigOptions): Promise, + sync(filePath: string, options?: ResolveConfigOptions): ?Options + }, + clearConfigCache: () => void, + getSupportInfo: (version?: string) => SupportInfo + |}; + + declare export default Prettier; +} diff --git a/flow-typed/npm/rollup-plugin-json_vx.x.x.js b/flow-typed/npm/rollup-plugin-json_vx.x.x.js index a0db8313..c3b26aaf 100644 --- a/flow-typed/npm/rollup-plugin-json_vx.x.x.js +++ b/flow-typed/npm/rollup-plugin-json_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 19a9786a3603528e012656a5403216de -// flow-typed version: <>/rollup-plugin-json_v^3.1.0/flow_v0.91.0 +// flow-typed signature: 22b853fa83f98c5f00bb9f97f39bc25d +// flow-typed version: <>/rollup-plugin-json_v^4.0.0/flow_v0.91.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/rollup_vx.x.x.js b/flow-typed/npm/rollup_vx.x.x.js index 0c98a09f..f4074018 100644 --- a/flow-typed/npm/rollup_vx.x.x.js +++ b/flow-typed/npm/rollup_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6462ab1799960c00c99aa2fabd7236bc -// flow-typed version: <>/rollup_v^1.6.0/flow_v0.91.0 +// flow-typed signature: c25549c339d15ea817a3805a2533ba84 +// flow-typed version: <>/rollup_v^1.7.4/flow_v0.91.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/setimmediate_vx.x.x.js b/flow-typed/npm/setimmediate_vx.x.x.js index 589a0f5d..c87ba96c 100644 --- a/flow-typed/npm/setimmediate_vx.x.x.js +++ b/flow-typed/npm/setimmediate_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: ffc4fdb67d0206f842218932f41e79c1 -// flow-typed version: <>/setimmediate_v>= 1.0.1/flow_v0.91.0 +// flow-typed signature: d91dceaaac318940ccb3256113dcab96 +// flow-typed version: <>/setimmediate_v~1.0.5/flow_v0.91.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/xmlbuilder_vx.x.x.js b/flow-typed/npm/xmlbuilder_vx.x.x.js index 41059eae..33b288be 100644 --- a/flow-typed/npm/xmlbuilder_vx.x.x.js +++ b/flow-typed/npm/xmlbuilder_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 8ba4afab1bfa6c92dec6f69ea2388717 -// flow-typed version: <>/xmlbuilder_v^3.0.0/flow_v0.91.0 +// flow-typed signature: 497075e499b3624f3a2d9ab742fb3137 +// flow-typed version: <>/xmlbuilder_v^11.0.1/flow_v0.91.0 /** * This is an autogenerated libdef stub for: @@ -22,15 +22,35 @@ declare module 'xmlbuilder' { * require those files directly. Feel free to delete any files that aren't * needed. */ +declare module 'xmlbuilder/lib/Derivation' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/DocumentPosition' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/index' { declare module.exports: any; } -declare module 'xmlbuilder/lib/XMLAttribute' { +declare module 'xmlbuilder/lib/NodeType' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/OperationType' { declare module.exports: any; } -declare module 'xmlbuilder/lib/XMLBuilder' { +declare module 'xmlbuilder/lib/Utility' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/WriterState' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLAttribute' { declare module.exports: any; } @@ -38,6 +58,10 @@ declare module 'xmlbuilder/lib/XMLCData' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLCharacterData' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLComment' { declare module.exports: any; } @@ -50,6 +74,34 @@ declare module 'xmlbuilder/lib/XMLDocType' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLDocument' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLDocumentCB' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLDocumentFragment' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLDOMConfiguration' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLDOMErrorHandler' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLDOMImplementation' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLDOMStringList' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLDTDAttList' { declare module.exports: any; } @@ -66,14 +118,30 @@ declare module 'xmlbuilder/lib/XMLDTDNotation' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLDummy' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLElement' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLNamedNodeMap' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLNode' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLNodeFilter' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLNodeList' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLProcessingInstruction' { declare module.exports: any; } @@ -82,27 +150,65 @@ declare module 'xmlbuilder/lib/XMLRaw' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLStreamWriter' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLStringifier' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLStringWriter' { + declare module.exports: any; +} + declare module 'xmlbuilder/lib/XMLText' { declare module.exports: any; } +declare module 'xmlbuilder/lib/XMLTypeInfo' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLUserDataHandler' { + declare module.exports: any; +} + +declare module 'xmlbuilder/lib/XMLWriterBase' { + declare module.exports: any; +} + // Filename aliases +declare module 'xmlbuilder/lib/Derivation.js' { + declare module.exports: $Exports<'xmlbuilder/lib/Derivation'>; +} +declare module 'xmlbuilder/lib/DocumentPosition.js' { + declare module.exports: $Exports<'xmlbuilder/lib/DocumentPosition'>; +} declare module 'xmlbuilder/lib/index.js' { declare module.exports: $Exports<'xmlbuilder/lib/index'>; } +declare module 'xmlbuilder/lib/NodeType.js' { + declare module.exports: $Exports<'xmlbuilder/lib/NodeType'>; +} +declare module 'xmlbuilder/lib/OperationType.js' { + declare module.exports: $Exports<'xmlbuilder/lib/OperationType'>; +} +declare module 'xmlbuilder/lib/Utility.js' { + declare module.exports: $Exports<'xmlbuilder/lib/Utility'>; +} +declare module 'xmlbuilder/lib/WriterState.js' { + declare module.exports: $Exports<'xmlbuilder/lib/WriterState'>; +} declare module 'xmlbuilder/lib/XMLAttribute.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLAttribute'>; } -declare module 'xmlbuilder/lib/XMLBuilder.js' { - declare module.exports: $Exports<'xmlbuilder/lib/XMLBuilder'>; -} declare module 'xmlbuilder/lib/XMLCData.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLCData'>; } +declare module 'xmlbuilder/lib/XMLCharacterData.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLCharacterData'>; +} declare module 'xmlbuilder/lib/XMLComment.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLComment'>; } @@ -112,6 +218,27 @@ declare module 'xmlbuilder/lib/XMLDeclaration.js' { declare module 'xmlbuilder/lib/XMLDocType.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLDocType'>; } +declare module 'xmlbuilder/lib/XMLDocument.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDocument'>; +} +declare module 'xmlbuilder/lib/XMLDocumentCB.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDocumentCB'>; +} +declare module 'xmlbuilder/lib/XMLDocumentFragment.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDocumentFragment'>; +} +declare module 'xmlbuilder/lib/XMLDOMConfiguration.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDOMConfiguration'>; +} +declare module 'xmlbuilder/lib/XMLDOMErrorHandler.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDOMErrorHandler'>; +} +declare module 'xmlbuilder/lib/XMLDOMImplementation.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDOMImplementation'>; +} +declare module 'xmlbuilder/lib/XMLDOMStringList.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDOMStringList'>; +} declare module 'xmlbuilder/lib/XMLDTDAttList.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLDTDAttList'>; } @@ -124,21 +251,48 @@ declare module 'xmlbuilder/lib/XMLDTDEntity.js' { declare module 'xmlbuilder/lib/XMLDTDNotation.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLDTDNotation'>; } +declare module 'xmlbuilder/lib/XMLDummy.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLDummy'>; +} declare module 'xmlbuilder/lib/XMLElement.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLElement'>; } +declare module 'xmlbuilder/lib/XMLNamedNodeMap.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLNamedNodeMap'>; +} declare module 'xmlbuilder/lib/XMLNode.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLNode'>; } +declare module 'xmlbuilder/lib/XMLNodeFilter.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLNodeFilter'>; +} +declare module 'xmlbuilder/lib/XMLNodeList.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLNodeList'>; +} declare module 'xmlbuilder/lib/XMLProcessingInstruction.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLProcessingInstruction'>; } declare module 'xmlbuilder/lib/XMLRaw.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLRaw'>; } +declare module 'xmlbuilder/lib/XMLStreamWriter.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLStreamWriter'>; +} declare module 'xmlbuilder/lib/XMLStringifier.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLStringifier'>; } +declare module 'xmlbuilder/lib/XMLStringWriter.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLStringWriter'>; +} declare module 'xmlbuilder/lib/XMLText.js' { declare module.exports: $Exports<'xmlbuilder/lib/XMLText'>; } +declare module 'xmlbuilder/lib/XMLTypeInfo.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLTypeInfo'>; +} +declare module 'xmlbuilder/lib/XMLUserDataHandler.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLUserDataHandler'>; +} +declare module 'xmlbuilder/lib/XMLWriterBase.js' { + declare module.exports: $Exports<'xmlbuilder/lib/XMLWriterBase'>; +} diff --git a/lib/msexcel-builder.js b/lib/msexcel-builder.js index 70af8b0c..a5188ed9 100644 --- a/lib/msexcel-builder.js +++ b/lib/msexcel-builder.js @@ -969,10 +969,8 @@ var target target = this.fpath + '/' + this.fname return this.generate(function(err, zip) { - var buffer - if (err) { - // BMK_TODO: + cb(err) } // Endif. zip diff --git a/manual/README-basic.md b/manual/README-basic.md index 16af6617..2b29d646 100644 --- a/manual/README-basic.md +++ b/manual/README-basic.md @@ -19,7 +19,7 @@ var myDoc = officegen({ }) // Supported types: -// 'pptx' or 'ppsx' - Microsoft Powerpoint based document. +// 'pptx' or 'ppsx' - Microsoft PowerPoint based document. // 'docx' - Microsoft Word based document. // 'xlsx' - Microsoft Excel based document. ``` @@ -27,19 +27,19 @@ var myDoc = officegen({ Generating an empty Microsoft PowerPoint officegen stream: ```javascript -var pptx = officegen ('pptx') +var pptx = officegen('pptx') ``` Generating an empty Microsoft Word officegen stream: ```javascript -var docx = officegen ('docx') +var docx = officegen('docx') ``` Generating an empty Microsoft Excel officegen stream: ```javascript -var xlsx = officegen ('xlsx') +var xlsx = officegen('xlsx') ``` General events of the officegen stream: @@ -51,11 +51,11 @@ Event examples: ```javascript pptx.on('finalize', function (written) { - console.log('Finish to create a PowerPoint file.\nTotal bytes created: ' + written + '\n'); + console.log('Finish to create a PowerPoint file.\nTotal bytes created: ' + written + '\n') }) pptx.on('error', function (err) { - console.log(err); + console.log(err) }) ``` @@ -65,10 +65,10 @@ Another way to register either 'finalize' or 'error' events: var pptx = officegen({ 'type': 'pptx', // or 'xlsx', etc 'onend': function (written) { - console.log('Finish to create a PowerPoint file.\nTotal bytes created: ' + written + '\n'); + console.log('Finish to create a PowerPoint file.\nTotal bytes created: ' + written + '\n') }, 'onerr': function (err) { - console.log(err); + console.log(err) } }) ``` @@ -115,7 +115,7 @@ http.createServer(function (request, response) { response.writeHead (200, { 'Content-Type': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'Content-disposition': 'attachment; filename=surprise.pptx' - }); + }) var pptx = officegen('pptx') @@ -158,7 +158,7 @@ var pptx = officegen({ // or -pptx.setDocTitle(''); +pptx.setDocTitle('<title>') ``` For Word only: @@ -173,9 +173,9 @@ var docx = officegen({ // or -docx.setDocSubject('...'); -docx.setDocKeywords('...'); -docx.setDescription('...'); +docx.setDocSubject('...') +docx.setDocKeywords('...') +docx.setDescription('...') ``` ## Debugging: @@ -183,5 +183,5 @@ docx.setDescription('...'); If needed, you can activate some verbose messages (warning: this does not cover all part of the lib yet) with : ```javascript -officegen.setVerboseMode(true); +officegen.setVerboseMode(true) ``` diff --git a/manual/README.md b/manual/README.md index bb535fd0..38cc2d92 100644 --- a/manual/README.md +++ b/manual/README.md @@ -5,3 +5,4 @@ - [Create Microsoft Office Excel Document Reference](README-xlsx.md) - [Create Microsoft Office PowerPoint Document Reference](README-pptx.md) - [Create Microsoft Office Word Document Reference](README-docx.md) +- [Officegen advanced topics](advanced/README.md) diff --git a/manual/advanced/README.md b/manual/advanced/README.md index eadb4a00..948d4a3a 100644 --- a/manual/advanced/README.md +++ b/manual/advanced/README.md @@ -1 +1,4 @@ # Advanced topics: + +- [Plugins](plugins/README.md) +- [Go back to the main documentation](../README.md) diff --git a/manual/advanced/plugins/docplug/README.md b/manual/advanced/plugins/docplug/README.md index a723751c..6664b79a 100644 --- a/manual/advanced/plugins/docplug/README.md +++ b/manual/advanced/plugins/docplug/README.md @@ -1,4 +1,4 @@ -# ???: +# The docplug plugin helper module: TBD diff --git a/manual/advanced/plugins/msdoc/README.md b/manual/advanced/plugins/msdoc/README.md index a723751c..182a3e70 100644 --- a/manual/advanced/plugins/msdoc/README.md +++ b/manual/advanced/plugins/msdoc/README.md @@ -1,4 +1,4 @@ -# ???: +# Writing new Microsoft Office based document type: TBD diff --git a/manual/advanced/plugins/oodoc/README.md b/manual/advanced/plugins/oodoc/README.md index a723751c..89a45805 100644 --- a/manual/advanced/plugins/oodoc/README.md +++ b/manual/advanced/plugins/oodoc/README.md @@ -1,4 +1,4 @@ -# ???: +# Writing new OpenOffice based document type: TBD diff --git a/manual/advanced/plugins/pptx/README.md b/manual/advanced/plugins/pptx/README.md index a723751c..3c721c5a 100644 --- a/manual/advanced/plugins/pptx/README.md +++ b/manual/advanced/plugins/pptx/README.md @@ -1,4 +1,4 @@ -# ???: +# Writing a Microsoft PowerPoint document type plugin: TBD diff --git a/manual/advanced/plugins/xlsx/README.md b/manual/advanced/plugins/xlsx/README.md index a723751c..7b60c974 100644 --- a/manual/advanced/plugins/xlsx/README.md +++ b/manual/advanced/plugins/xlsx/README.md @@ -1,4 +1,4 @@ -# ???: +# Writing a Microsoft Excel document type plugin: TBD diff --git a/package.json b/package.json index d798bd2b..287cfd84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "officegen", "description": "Office Open XML Generator using Node.js streams. Supporting Microsoft Office 2007 and later Word (docx), PowerPoint (pptx,ppsx) and Excel (xlsx). This module is for all frameworks and environments. No need for any commandline tool - this module is doing everything inside it.", - "version": "0.4.9-0", + "version": "0.4.8", "author": { "name": "Ziv Barber", "url": "https://github.com/Ziv-Barber"