diff -Nru node-sprintf-js-1.1.2+ds1/debian/changelog node-sprintf-js-1.1.2+ds1+~1.1.2/debian/changelog --- node-sprintf-js-1.1.2+ds1/debian/changelog 2021-01-12 17:30:30.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/changelog 2021-11-16 13:04:20.000000000 +0000 @@ -1,3 +1,11 @@ +node-sprintf-js (1.1.2+ds1+~1.1.2-1) unstable; urgency=medium + + * Team upload + * Update standards version to 4.6.0, no changes needed. + * Embed typescript definitions and repack + + -- Yadd Tue, 16 Nov 2021 14:04:20 +0100 + node-sprintf-js (1.1.2+ds1-2) unstable; urgency=medium * Team upload diff -Nru node-sprintf-js-1.1.2+ds1/debian/control node-sprintf-js-1.1.2+ds1+~1.1.2/debian/control --- node-sprintf-js-1.1.2+ds1/debian/control 2021-01-12 17:30:30.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/control 2021-11-16 13:04:20.000000000 +0000 @@ -7,9 +7,9 @@ Build-Depends: debhelper-compat (= 13), dh-sequence-nodejs, mocha , - node-source-map (>= 0.6), + node-source-map, uglifyjs -Standards-Version: 4.5.1 +Standards-Version: 4.6.0 Vcs-Browser: https://salsa.debian.org/js-team/node-sprintf-js Vcs-Git: https://salsa.debian.org/js-team/node-sprintf-js.git Homepage: https://github.com/alexei/sprintf.js @@ -19,6 +19,7 @@ Architecture: all Depends: ${misc:Depends}, libjs-sprintf-js +Provides: node-types-sprintf-js Description: Node.js Pure JavaScript sprintf implementation node-sprintf-js is a javascript implementation of C sprintf (3). This function composes a string with the same text that would be printed if diff -Nru node-sprintf-js-1.1.2+ds1/debian/copyright node-sprintf-js-1.1.2+ds1+~1.1.2/debian/copyright --- node-sprintf-js-1.1.2+ds1/debian/copyright 2021-01-12 17:30:30.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/copyright 2021-11-16 12:59:19.000000000 +0000 @@ -2,8 +2,9 @@ Upstream-Name: sprintf-js Upstream-Contact: Alexandru Mărășteanu (https://github.com/alexei/sprintf.js/issues) Source: https://github.com/alexei/sprintf.js#readme -Files-Excluded: dist/*min.js* + https://registry.npmjs.org/@types/sprintf-js Comment: Remove prebuilt files +Files-Excluded: dist/*min.js* Files: * Copyright: 2007-2018 Alexandru Mărășteanu (http://alexei.ro/) @@ -32,6 +33,10 @@ 2015-2017 Stefan Tingström https://github.com/stingstrom License: BSD-3-Clause +Files: types-*/* +Copyright: Microsoft Corporation +License: Expat + Files: debian/* Copyright: 2015-2017 Bastien Roucariès License: BSD-3-Clause @@ -62,3 +67,24 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: Expat + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files + (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff -Nru node-sprintf-js-1.1.2+ds1/debian/gbp.conf node-sprintf-js-1.1.2+ds1+~1.1.2/debian/gbp.conf --- node-sprintf-js-1.1.2+ds1/debian/gbp.conf 2021-01-12 17:27:51.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/gbp.conf 2021-11-16 12:54:24.000000000 +0000 @@ -1,5 +1,6 @@ [DEFAULT] -pristine-tar = True +pristine-tar=True +component=['types-sprintf-js'] [import-orig] -filter = [ '.gitignore', '.travis.yml', '.git*' ] +filter=[ '.gitignore', '.travis.yml', '.git*' ] diff -Nru node-sprintf-js-1.1.2+ds1/debian/nodejs/root_modules node-sprintf-js-1.1.2+ds1+~1.1.2/debian/nodejs/root_modules --- node-sprintf-js-1.1.2+ds1/debian/nodejs/root_modules 1970-01-01 00:00:00.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/nodejs/root_modules 2021-11-16 12:57:54.000000000 +0000 @@ -0,0 +1 @@ +* \ No newline at end of file diff -Nru node-sprintf-js-1.1.2+ds1/debian/node-sprintf-js.install node-sprintf-js-1.1.2+ds1+~1.1.2/debian/node-sprintf-js.install --- node-sprintf-js-1.1.2+ds1/debian/node-sprintf-js.install 2021-01-12 17:20:47.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/node-sprintf-js.install 2021-11-16 13:04:20.000000000 +0000 @@ -1 +1,3 @@ -package.json usr/share/nodejs/sprintf-js/ +package.json usr/share/nodejs/sprintf-js/ +types-sprintf-js/*.ts usr/share/nodejs/@types/sprintf-js/ +types-sprintf-js/*.json usr/share/nodejs/@types/sprintf-js/ diff -Nru node-sprintf-js-1.1.2+ds1/debian/watch node-sprintf-js-1.1.2+ds1+~1.1.2/debian/watch --- node-sprintf-js-1.1.2+ds1/debian/watch 2021-01-12 17:30:30.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/debian/watch 2021-11-16 12:54:24.000000000 +0000 @@ -1,6 +1,11 @@ version=4 opts=\ repacksuffix=+ds1,\ -dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ -filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/alexei-$1\.tar\.gz/ \ - https://github.com/alexei/sprintf.js/tags .*/v?(\d\S*)\.tar\.gz +dversionmangle=auto,\ +filenamemangle=s/.*?(\d\S*@ARCHIVE_EXT@)/node-sprintf-$1/ \ + https://github.com/alexei/sprintf.js/tags .*/v?(\d\S*)\.tar\.gz group + +# It is not recommended use npmregistry. Please investigate more. +# Take a look at https://wiki.debian.org/debian/watch/ +opts="searchmode=plain,component=types-sprintf-js,ctype=nodejs,pgpmode=none,filenamemangle=s/^.*?-(\d[\d\.-]*@ARCHIVE_EXT@)/node-types-sprintf-js-$1/" \ + https://registry.npmjs.org/@types/sprintf-js https://registry.npmjs.org/@types/sprintf-js/-/sprintf-js-([\d\.]+)@ARCHIVE_EXT@ group diff -Nru node-sprintf-js-1.1.2+ds1/types-sprintf-js/index.d.ts node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/index.d.ts --- node-sprintf-js-1.1.2+ds1/types-sprintf-js/index.d.ts 1970-01-01 00:00:00.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/index.d.ts 2019-02-13 21:06:22.000000000 +0000 @@ -0,0 +1,164 @@ +// Type definitions for sprintf-js 1.1 +// Project: https://github.com/alexei/sprintf.js +// Definitions by: Jason Swearingen +// BendingBender +// Caner Dagli +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * Returns a formatted string: + * + * string sprintf(string format, mixed arg1?, mixed arg2?, ...) + * + * ### Argument swapping + * + * You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. + * You can do that by simply indicating in the format string which arguments the placeholders refer to: + * + * sprintf('%2$s %3$s a %1$s', 'cracker', 'Polly', 'wants') + * + * And, of course, you can repeat the placeholders without having to increase the number of arguments. + * + * ### Named arguments + * + * Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, + * you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - `(` and `)` - + * and begin with a keyword that refers to a key: + * + * var user = { + * name: 'Dolly', + * } + * sprintf('Hello %(name)s', user) // Hello Dolly + * + * Keywords in replacement fields can be optionally followed by any number of keywords or indexes: + * + * var users = [ + * {name: 'Dolly'}, + * {name: 'Molly'}, + * {name: 'Polly'}, + * ] + * sprintf('Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s', {users: users}) // Hello Dolly, Molly and Polly + * + * Note: mixing positional and named placeholders is not (yet) supported + * + * ### Computed values + * + * You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on the fly. + * + * sprintf('Current date and time: %s', function() { return new Date().toString() }) + * + * @param format: format string + * The placeholders in the format string are marked by `%` and are followed by one or more of these elements, in this order: + * * An optional number followed by a `$` sign that selects which argument index to use for the value. If not specified, + * arguments will be placed in the same order as the placeholders in the input string. + * * An optional `+` sign that forces to preceed the result with a plus or minus sign on numeric values. By default, + * only the `-` sign is used on negative numbers. + * * An optional padding specifier that says what character to use for padding (if specified). Possible values are + * `0` or any other character precedeed by a `'` (single quote). The default is to pad with *spaces*. + * * An optional `-` sign, that causes `sprintf` to left-align the result of this placeholder. The default is to right-align the result. + * * An optional number, that says how many characters the result should have. If the value to be returned is shorter + * than this number, the result will be padded. When used with the `j` (JSON) type specifier, the padding length + * specifies the tab size used for indentation. + * * An optional precision modifier, consisting of a `.` (dot) followed by a number, that says how many digits should be + * displayed for floating point numbers. When used with the `g` type specifier, it specifies the number of significant + * digits. When used on a string, it causes the result to be truncated. + * * A type specifier that can be any of: + * * `%` — yields a literal `%` character + * * `b` — yields an integer as a binary number + * * `c` — yields an integer as the character with that ASCII value + * * `d` or `i` — yields an integer as a signed decimal number + * * `e` — yields a float using scientific notation + * * `u` — yields an integer as an unsigned decimal number + * * `f` — yields a float as is; see notes on precision above + * * `g` — yields a float as is; see notes on precision above + * * `o` — yields an integer as an octal number + * * `s` — yields a string as is + * * `t` — yields `true` or `false` + * * `T` — yields the type of the argument1 + * * `v` — yields the primitive value of the specified argument + * * `x` — yields an integer as a hexadecimal number (lower-case) + * * `X` — yields an integer as a hexadecimal number (upper-case) + * * `j` — yields a JavaScript object or array as a JSON encoded string + * @param args: the arguments for the format string + */ +export function sprintf(format: string, ...args: any[]): string; + +/** + * Same as `sprintf` except it takes an array of arguments, rather than a variable number of arguments: + * + * string vsprintf(string format, array arguments?) + * + * ### Argument swapping + * + * You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. + * You can do that by simply indicating in the format string which arguments the placeholders refer to: + * + * sprintf('%2$s %3$s a %1$s', 'cracker', 'Polly', 'wants') + * + * And, of course, you can repeat the placeholders without having to increase the number of arguments. + * + * ### Named arguments + * + * Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, + * you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - `(` and `)` - + * and begin with a keyword that refers to a key: + * + * var user = { + * name: 'Dolly', + * } + * sprintf('Hello %(name)s', user) // Hello Dolly + * + * Keywords in replacement fields can be optionally followed by any number of keywords or indexes: + * + * var users = [ + * {name: 'Dolly'}, + * {name: 'Molly'}, + * {name: 'Polly'}, + * ] + * sprintf('Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s', {users: users}) // Hello Dolly, Molly and Polly + * + * Note: mixing positional and named placeholders is not (yet) supported + * + * ### Computed values + * + * You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on the fly. + * + * sprintf('Current date and time: %s', function() { return new Date().toString() }) + * + * @param format: format string + * + * The placeholders in the format string are marked by `%` and are followed by one or more of these elements, in this order: + * + * * An optional number followed by a `$` sign that selects which argument index to use for the value. If not specified, + * arguments will be placed in the same order as the placeholders in the input string. + * * An optional `+` sign that forces to preceed the result with a plus or minus sign on numeric values. By default, + * only the `-` sign is used on negative numbers. + * * An optional padding specifier that says what character to use for padding (if specified). Possible values are + * `0` or any other character precedeed by a `'` (single quote). The default is to pad with *spaces*. + * * An optional `-` sign, that causes `sprintf` to left-align the result of this placeholder. The default is to right-align the result. + * * An optional number, that says how many characters the result should have. If the value to be returned is shorter + * than this number, the result will be padded. When used with the `j` (JSON) type specifier, the padding length + * specifies the tab size used for indentation. + * * An optional precision modifier, consisting of a `.` (dot) followed by a number, that says how many digits should be + * displayed for floating point numbers. When used with the `g` type specifier, it specifies the number of significant + * digits. When used on a string, it causes the result to be truncated. + * * A type specifier that can be any of: + * * `%` — yields a literal `%` character + * * `b` — yields an integer as a binary number + * * `c` — yields an integer as the character with that ASCII value + * * `d` or `i` — yields an integer as a signed decimal number + * * `e` — yields a float using scientific notation + * * `u` — yields an integer as an unsigned decimal number + * * `f` — yields a float as is; see notes on precision above + * * `g` — yields a float as is; see notes on precision above + * * `o` — yields an integer as an octal number + * * `s` — yields a string as is + * * `t` — yields `true` or `false` + * * `T` — yields the type of the argument1 + * * `v` — yields the primitive value of the specified argument + * * `x` — yields an integer as a hexadecimal number (lower-case) + * * `X` — yields an integer as a hexadecimal number (upper-case) + * * `j` — yields a JavaScript object or array as a JSON encoded string + * @param args: the arguments for the format string + */ +export function vsprintf(format: string, args: any[]): string; diff -Nru node-sprintf-js-1.1.2+ds1/types-sprintf-js/LICENSE node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/LICENSE --- node-sprintf-js-1.1.2+ds1/types-sprintf-js/LICENSE 1970-01-01 00:00:00.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/LICENSE 2019-02-13 21:06:22.000000000 +0000 @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff -Nru node-sprintf-js-1.1.2+ds1/types-sprintf-js/package.json node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/package.json --- node-sprintf-js-1.1.2+ds1/types-sprintf-js/package.json 1970-01-01 00:00:00.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/package.json 2019-02-13 21:06:22.000000000 +0000 @@ -0,0 +1,33 @@ +{ + "name": "@types/sprintf-js", + "version": "1.1.2", + "description": "TypeScript definitions for sprintf-js", + "license": "MIT", + "contributors": [ + { + "name": "Jason Swearingen", + "url": "https://github.com/jasonswearingen", + "githubUsername": "jasonswearingen" + }, + { + "name": "BendingBender", + "url": "https://github.com/BendingBender", + "githubUsername": "BendingBender" + }, + { + "name": "Caner Dagli", + "url": "https://github.com/cdagli", + "githubUsername": "cdagli" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "7ee60f4a5bfe7bebebb02f9c48a06669f6a06f719a371e9e466a4cc54e54b09c", + "typeScriptVersion": "2.0" +} \ No newline at end of file diff -Nru node-sprintf-js-1.1.2+ds1/types-sprintf-js/README.md node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/README.md --- node-sprintf-js-1.1.2+ds1/types-sprintf-js/README.md 1970-01-01 00:00:00.000000000 +0000 +++ node-sprintf-js-1.1.2+ds1+~1.1.2/types-sprintf-js/README.md 2019-02-13 21:06:22.000000000 +0000 @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/sprintf-js` + +# Summary +This package contains type definitions for sprintf-js ( https://github.com/alexei/sprintf.js ). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sprintf-js + +Additional Details + * Last updated: Wed, 13 Feb 2019 21:06:22 GMT + * Dependencies: none + * Global values: none + +# Credits +These definitions were written by Jason Swearingen , BendingBender , Caner Dagli .