# HG changeset patch # User Yaroslav Zhuravlev # Date 1540838043 -10800 # Node ID c30048802769e772cc4694f92112bc0b72caf4ef # Parent 3fba786a8bd729a38f1916de815f1dcd74b2c7df Added links to njs reference from njs Compatibility. diff --git a/xml/en/docs/njs/compatibility.xml b/xml/en/docs/njs/compatibility.xml --- a/xml/en/docs/njs/compatibility.xml +++ b/xml/en/docs/njs/compatibility.xml @@ -9,7 +9,7 @@
+ rev="3">
@@ -59,28 +59,40 @@ ES6 Number and ES5.1: -fromCharCode, concat, -slice, substring, -substr, charAt, -charCodeAt, indexOf, -lastIndexOf, toLowerCase, -toUpperCase, trim, -search, match, split, -replace +fromCharCode, +concat, +slice, +substring, +substr, +charAt, +indexOf, +lastIndexOf, +toLowerCase, +toUpperCase, +trim, +search, +match, +split, +replace ES6: -fromCodePoint, codePointAt, -includes, startsWith, -endsWith, repeat +fromCodePoint, +codePointAt, +includes, +startsWith, +endsWith, +repeat non-standard: -bytesFrom (0.2.3) -fromUTF8, toUTF8, -fromBytes, toBytes +bytesFrom (0.2.3) +fromUTF8, +toUTF8, +fromBytes, +toBytes @@ -153,7 +165,7 @@ ES5.1 Date methods -ES5.1 JSON object +ES5.1 JSON object @@ -164,8 +176,10 @@ ES5.1 arguments objec ES5.1 global functions: isFinite, isNaN, parseFloat, parseInt, -decodeURI, decodeURIComponent, -encodeURI, encodeURIComponent +decodeURI, +decodeURIComponent, +encodeURI, +encodeURIComponent @@ -177,24 +191,28 @@ ES5.1 global functions: -setTimeout() and clearTimeout() functions -(0.2.0) +setTimeout +and +clearTimeout +functions (0.2.0) Node.js style File system methods: -fs.readFile, fs.readFileSync, -fs.appendFile, fs.appendFileSync, -fs.writeFile, fs.writeFileSync +fs.readFile, +fs.readFileSync, +fs.appendFile, +fs.appendFileSync, +fs.writeFile, +fs.writeFileSync Node.js style Crypto methods (0.2.0): -crypto.createHash, -crypto.createHmac - +crypto.createHash, +crypto.createHmac diff --git a/xml/en/docs/njs/reference.xml b/xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@
+ rev="13">
@@ -524,7 +524,7 @@ The encoding can be -String.fromCodePoint(codePoint1[, ...[, +String.fromCodePoint(codePoint1[, ...[, codePoint2]]) Returns a string from one or more Unicode code points. @@ -534,7 +534,7 @@ Returns a string from one or more Unicod -String.prototype.concat(string1[, ..., +String.prototype.concat(string1[, ..., stringN]) Returns a string that contains the concatenation of specified @@ -545,7 +545,7 @@ Returns a string that contains the conca -String.prototype.endsWith(searchString[, +String.prototype.endsWith(searchString[, length]) Returns true if a string ends with the characters @@ -560,14 +560,14 @@ false -String.prototype.fromBytes(start[, +String.prototype.fromBytes(start[, end]) (njs specific) Returns a new Unicode string from a byte string where each byte is replaced with a corresponding Unicode code point. -String.prototype.fromUTF8(start[, +String.prototype.fromUTF8(start[, end]) (njs specific) Converts a byte string containing a valid UTF8 string @@ -575,7 +575,7 @@ into a Unicode string, otherwise null is returned. -String.prototype.includes(searchString[, +String.prototype.includes(searchString[, position])) Returns true if a string is found within another string, @@ -589,7 +589,7 @@ true -String.prototype.indexOf(searchString[, +String.prototype.indexOf(searchString[, fromIndex]) Returns the position of the first occurrence @@ -609,7 +609,7 @@ 3 -String.prototype.lastIndexOf(searchString[, +String.prototype.lastIndexOf(searchString[, fromIndex]) Returns the position of the last occurrence @@ -633,7 +633,7 @@ 4 -String.prototype.match([regexp]) +String.prototype.match([regexp]) Matches a string against a regexp. @@ -666,7 +666,7 @@ to the start of the specified string (0. -String.prototype.repeat(number) +String.prototype.repeat(number) Returns a string with the specified number of copies of the string. @@ -676,7 +676,7 @@ with the specified number -String.prototype.replace([regexp|string[, +String.prototype.replace([regexp|string[, string|function]]) Returns a new string with matches of a pattern @@ -688,7 +688,7 @@ replaced by a string -String.prototype.search([regexp]) +String.prototype.search([regexp]) Searches for a string using a regexp @@ -697,7 +697,7 @@ 3 -String.prototype.slice(start[, +String.prototype.slice(start[, end]) Returns a new string containing a part of an @@ -710,7 +710,7 @@ from start to the end -String.prototype.startsWith(searchString[, +String.prototype.startsWith(searchString[, position]) Returns true if a string begins with the characters @@ -726,7 +726,7 @@ false -String.prototype.substr(start[, +String.prototype.substr(start[, length]) Returns the part of the string of the specified length @@ -738,7 +738,7 @@ or from start to the -String.prototype.substring(start[, +String.prototype.substring(start[, end]) Returns the part of the string between @@ -758,7 +758,7 @@ Returns null if a cha found in the string. -String.prototype.toLowerCase() +String.prototype.toLowerCase() Converts a string to lower case. The method supports only simple Unicode folding. @@ -788,7 +788,7 @@ encodes a byte -String.prototype.toUpperCase() +String.prototype.toUpperCase() Converts a string to upper case. The method supports only simple Unicode folding. @@ -811,7 +811,7 @@ 4 -String.prototype.trim() +String.prototype.trim() Removes whitespaces from both ends of a string. @@ -820,7 +820,7 @@ Removes whitespaces from both ends of a -String.prototype.split(([string|regexp[, +String.prototype.split(([string|regexp[, limit]])) Returns match of a string against a regexp. @@ -847,7 +847,7 @@ representing the UTF-8 encoding of the c -encodeURIComponent(encodedURIString) +encodeURIComponent(encodedURIString) Encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences @@ -858,7 +858,7 @@ representing the UTF-8 encoding of the c -decodeURI(encodedURI) +decodeURI(encodedURI) Decodes a previously encoded URI. @@ -867,7 +867,7 @@ Decodes a previously decodeURIComponent(decodedURIString) Decodes an encoded component of a previously encoded URI. @@ -961,7 +961,7 @@ The Crypto module object is returned by -crypto.createHash(algorithm) +crypto.createHash(algorithm) Creates and returns a Hash object that can be used to generate hash digests @@ -972,7 +972,7 @@ The algorighm can be sha256. -crypto.createHmac(algorithm, +crypto.createHmac(algorithm, secret key) Creates and returns an HMAC object diff --git a/xml/ru/docs/njs/compatibility.xml b/xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml +++ b/xml/ru/docs/njs/compatibility.xml @@ -9,7 +9,7 @@
+ rev="3">
@@ -59,28 +59,40 @@ ES6 методы и свойства Number и ES5.1: -fromCharCode, concat, -slice, substring, -substr, charAt, -charCodeAt, indexOf, -lastIndexOf, toLowerCase, -toUpperCase, trim, -search, match, split, -replace +fromCharCode, +concat, +slice, +substring, +substr, +charAt, +indexOf, +lastIndexOf, +toLowerCase, +toUpperCase, +trim, +search, +match, +split, +replace ES6: -fromCodePoint, codePointAt, -includes, startsWith, -endsWith, repeat +fromCodePoint, +codePointAt, +includes, +startsWith, +endsWith, +repeat нестандартные: -bytesFrom (0.2.3), -fromUTF8, toUTF8, -fromBytes, toBytes +bytesFrom (0.2.3) +fromUTF8, +toUTF8, +fromBytes, +toBytes @@ -153,7 +165,7 @@ ES5.1 методы Date -ES5.1 объект JSON +ES5.1 объект JSON @@ -164,8 +176,10 @@ ES5.1 объект arguments (0.2.5) ES5.1 глобальные функции: isFinite, isNaN, parseFloat, parseInt, -decodeURI, decodeURIComponent, -encodeURI, encodeURIComponent +decodeURI, +decodeURIComponent, +encodeURI, +encodeURIComponent @@ -177,24 +191,30 @@ ES5.1 глобальные функции: -Функции setTimeout() и clearTimeout() +Функции +setTimeout +и +clearTimeout (0.2.0) Методы File system стиль Node.js: -fs.readFile, fs.readFileSync, -fs.appendFile, fs.appendFileSync, -fs.writeFile, fs.writeFileSync +fs.readFile, +fs.readFileSync, +fs.appendFile, +fs.appendFileSync, +fs.writeFile, +fs.writeFileSync Методы Crypto стиль Node.js (0.2.0): -crypto.createHash, -crypto.createHmac +crypto.createHash, +crypto.createHmac