This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

8
node_modules/rtl-detect/.eslintignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
node_modules
__snapshots__
coverage
build
.editorconfig
.DS_Store
.gitignore
.travis.yml

164
node_modules/rtl-detect/.eslintrc.json generated vendored Normal file
View File

@@ -0,0 +1,164 @@
{
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"camelcase": "off",
"consistent-return": "off",
"vars-on-top": "off",
"new-cap": "off",
"no-console": "off",
"no-constant-condition": "error",
"no-empty": "off",
"no-native-reassign": "off",
"no-underscore-dangle": "off",
"no-undef": [
"error",
{
"typeof": false
}
],
"no-process-exit": "off",
"no-unused-expressions": "off",
"no-regex-spaces": "off",
"no-catch-shadow": "off",
"no-lonely-if": "off",
"brace-style": [
"warn",
"stroustrup"
],
"no-shadow": [
"warn",
{
"allow": [
"err",
"done"
]
}
],
"no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^internals$",
"args": "none"
}
],
"one-var": [
"error",
"never"
],
"handle-callback-err": [
"error",
"^(e|err|error)$"
],
"array-bracket-spacing": "warn",
"dot-notation": "warn",
"eol-last": "warn",
"no-trailing-spaces": "warn",
"no-eq-null": "warn",
"no-extend-native": "warn",
"no-redeclare": "warn",
"no-loop-func": "warn",
"yoda": [
"warn",
"never"
],
"sort-vars": "warn",
"arrow-parens": [
"error",
"always"
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"quotes": [
"error",
"single"
],
"consistent-this": [
"error",
"self"
],
"new-parens": "error",
"no-array-constructor": "error",
"no-new-object": "error",
"no-spaced-func": "error",
"no-mixed-spaces-and-tabs": "error",
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"semi": [
"error",
"always"
],
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"space-infix-ops": "error",
"space-unary-ops": [
"warn",
{
"words": true,
"nonwords": false
}
],
"strict": [
"error",
"global"
],
"eqeqeq": "error",
"curly": [
"error",
"all"
],
"no-eval": "error",
"no-else-return": "error",
"no-return-assign": "error",
"no-new-wrappers": "error",
"comma-dangle": [
"error",
"never"
],
"no-sparse-arrays": "error",
"no-ex-assign": "error",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
}
],
"func-style": [
"error",
"expression"
],
"object-curly-spacing": [
"error",
"always"
],
"no-unsafe-finally": "error",
"no-useless-computed-key": "error"
}
}

View File

@@ -0,0 +1,16 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: pull_request job
on:
pull_request:
branches: '*'
jobs:
call-resuable-workflows:
uses: ./.github/workflows/resuable-workflows.yml
with:
node-version: '["16.x", "18.x", "20.x"]'
# secrets:
# envPAT: ${{ secrets.envPAT }}

View File

@@ -0,0 +1,48 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: push job
on:
push:
branches: [ "master" ]
jobs:
call-resuable-workflows:
uses: ./.github/workflows/resuable-workflows.yml
with:
node-version: '["20.x"]'
Publish:
needs: call-resuable-workflows
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
strategy:
fail-fast: false
matrix:
node-version: ["20.x"]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
run: npx semantic-release

View File

@@ -0,0 +1,36 @@
name: Reusable workflow
on:
workflow_call:
inputs:
node-version:
required: true
type: string
#secrets:
#token:
#required: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(inputs.node-version) }}
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test
run: npm test

11
node_modules/rtl-detect/.releaserc.json generated vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
}

6
node_modules/rtl-detect/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,6 @@
## [1.1.2](https://github.com/shadiabuhilal/rtl-detect/compare/v1.1.1...v1.1.2) (2023-10-24)
### Bug Fixes
* **file name:** fix CHANGELOG.md to be generated automatically ([9a89bc7](https://github.com/shadiabuhilal/rtl-detect/commit/9a89bc704fa42c09d7a35a163f37a4692a422ab6))

27
node_modules/rtl-detect/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,27 @@
Copyright 2015 Yahoo Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Yahoo Inc. nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF 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.

65
node_modules/rtl-detect/README.md generated vendored Normal file
View File

@@ -0,0 +1,65 @@
# rtl-detect
![Build Status](https://github.com/shadiabuhilal/rtl-detect/actions/workflows/push-workflows.yml/badge.svg)
This library will help you to detect if the locale is right-to-left language or not.
## Usage
### require rtl-detect lib
```js
var rtlDetect = require('rtl-detect');
```
### isRtlLang
This function will check if the locale is right-to-left language or not.
Examples:
```js
var isRtl = rtlDetect.isRtlLang('ar-JO');
// isRtl will be true
```
```js
var isRtl = rtlDetect.isRtlLang('ar_JO');
// isRtl will be true
```
```js
var isRtl = rtlDetect.isRtlLang('ar');
// isRtl will be true
```
```js
var isRtl = rtlDetect.isRtlLang('en-US');
// isRtl will be false
```
### getLangDir
This function will get language direction for the locale.
Examples:
```js
var langDir = rtlDetect.getLangDir('ar-JO');
// langDir will be 'rtl'
```
```js
var langDir = rtlDetect.getLangDir('ar_JO');
// langDir will be 'rtl'
```
```js
var langDir = rtlDetect.getLangDir('ar');
// langDir will be 'rtl'
```
```js
var langDir = rtlDetect.getLangDir('en-US');
// langDir will be 'ltr'
```
Copyright 2015, Yahoo! Inc.

78
node_modules/rtl-detect/__test__/index.spec.js generated vendored Normal file
View File

@@ -0,0 +1,78 @@
/* global describe, it, expect */
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var RtlDetect = require('../' + 'index');
describe('index', function () {
it('isRtlLang()', function () {
expect(RtlDetect.isRtlLang()).toBeUndefined();
expect(RtlDetect.isRtlLang(null)).toBeUndefined();
expect(RtlDetect.isRtlLang('')).toBeUndefined();
expect(RtlDetect.isRtlLang(' ')).toBeUndefined();
expect(RtlDetect.isRtlLang('1234')).toBeUndefined();
expect(RtlDetect.isRtlLang('en')).toBeFalsy();
expect(RtlDetect.isRtlLang('EN')).toBeFalsy();
expect(RtlDetect.isRtlLang('en-US')).toBeFalsy();
expect(RtlDetect.isRtlLang('en_US')).toBeFalsy();
expect(RtlDetect.isRtlLang('en-us')).toBeFalsy();
expect(RtlDetect.isRtlLang('ar')).toBeTruthy();
expect(RtlDetect.isRtlLang('AR')).toBeTruthy();
expect(RtlDetect.isRtlLang('ar-jo')).toBeTruthy();
expect(RtlDetect.isRtlLang('ar-JO')).toBeTruthy();
expect(RtlDetect.isRtlLang('ar_JO')).toBeTruthy();
});
it('getLangDir()', function () {
expect(RtlDetect.getLangDir()).toEqual('ltr');
expect(RtlDetect.getLangDir(null)).toEqual('ltr');
expect(RtlDetect.getLangDir('')).toEqual('ltr');
expect(RtlDetect.getLangDir(' ')).toEqual('ltr');
expect(RtlDetect.getLangDir('1234')).toEqual('ltr');
expect(RtlDetect.getLangDir('en')).toEqual('ltr');
expect(RtlDetect.getLangDir('EN')).toEqual('ltr');
expect(RtlDetect.getLangDir('en-US')).toEqual('ltr');
expect(RtlDetect.getLangDir('en_US')).toEqual('ltr');
expect(RtlDetect.getLangDir('en_US')).toEqual('ltr');
expect(RtlDetect.getLangDir('en-us')).toEqual('ltr');
expect(RtlDetect.getLangDir('ar')).toEqual('rtl');
expect(RtlDetect.getLangDir('AR')).toEqual('rtl');
expect(RtlDetect.getLangDir('ar-jo')).toEqual('rtl');
expect(RtlDetect.getLangDir('ar-JO')).toEqual('rtl');
expect(RtlDetect.getLangDir('ar_JO')).toEqual('rtl');
});
});

View File

@@ -0,0 +1,157 @@
/* global describe, it, expect */
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var RtlDetect = require('../../' + 'lib/rtl-detect');
describe('rtl-detect', function () {
describe('private', function () {
it('_escapeRegExpPattern()', function () {
expect(RtlDetect._escapeRegExpPattern()).toBeUndefined();
expect(RtlDetect._escapeRegExpPattern(null)).toBeNull();
expect(RtlDetect._escapeRegExpPattern('')).toEqual('');
expect(RtlDetect._escapeRegExpPattern(' ')).toEqual(' ');
expect(RtlDetect._escapeRegExpPattern('[CODE]')).toEqual('\\[CODE\\]');
expect(RtlDetect._escapeRegExpPattern('.*+^$[]()|{},-:?\\')).toEqual('\\.\\*\\+\\^\\$\\[\\]\\(\\)\\|\\{\\}\\,\\-\\:\\?\\\\');
});
it('_toLowerCase()', function () {
expect(RtlDetect._toLowerCase()).toBeUndefined();
expect(RtlDetect._toLowerCase(null)).toBeUndefined();
expect(RtlDetect._toLowerCase(null, true)).toBeNull();
expect(RtlDetect._toLowerCase('')).toEqual('');
expect(RtlDetect._toLowerCase(' ')).toEqual(' ');
expect(RtlDetect._toLowerCase('Test Code')).toEqual('test code');
expect(RtlDetect._toLowerCase('TEST CODE')).toEqual('test code');
expect(RtlDetect._toLowerCase('test code')).toEqual('test code');
});
it('_toUpperCase()', function () {
expect(RtlDetect._toUpperCase()).toBeUndefined();
expect(RtlDetect._toUpperCase(null)).toBeUndefined();
expect(RtlDetect._toUpperCase(null, true)).toBeNull();
expect(RtlDetect._toUpperCase('')).toEqual('');
expect(RtlDetect._toUpperCase(' ')).toEqual(' ');
expect(RtlDetect._toUpperCase('Test Code')).toEqual('TEST CODE');
expect(RtlDetect._toUpperCase('TEST CODE')).toEqual('TEST CODE');
expect(RtlDetect._toUpperCase('test code')).toEqual('TEST CODE');
});
it('_trim()', function () {
expect(RtlDetect._trim()).toBeUndefined();
expect(RtlDetect._trim(undefined, '-')).toBeUndefined();
expect(RtlDetect._trim(null)).toBeUndefined();
expect(RtlDetect._trim(null, '-')).toBeUndefined();
expect(RtlDetect._trim(null, true)).toBeNull();
expect(RtlDetect._trim(null, '-', true)).toBeNull();
expect(RtlDetect._trim('')).toEqual('');
expect(RtlDetect._trim('', '-')).toEqual('');
expect(RtlDetect._trim(' ')).toEqual('');
expect(RtlDetect._trim('-', '-')).toEqual('');
expect(RtlDetect._trim(' TRIM CODE ')).toEqual('TRIM CODE');
expect(RtlDetect._trim('-TRIM-CODE-', '-')).toEqual('TRIM-CODE');
expect(RtlDetect._trim('-_TRIM-_CODE_-', ['-', '_'])).toEqual('TRIM-_CODE');
});
it('_parseLocale()', function () {
expect(RtlDetect._parseLocale()).toBeUndefined();
expect(RtlDetect._parseLocale(null)).toBeUndefined();
expect(RtlDetect._parseLocale('')).toBeUndefined();
expect(RtlDetect._parseLocale(' ')).toBeUndefined();
expect(RtlDetect._parseLocale('1234')).toBeUndefined();
expect(RtlDetect._parseLocale('1a2B3c4')).toBeUndefined();
expect(RtlDetect._parseLocale('en')).toStrictEqual({
lang: 'en',
countryCode: undefined
});
expect(RtlDetect._parseLocale('en-US')).toStrictEqual({
lang: 'en',
countryCode: 'US'
});
expect(RtlDetect._parseLocale('en_US')).toStrictEqual({
lang: 'en',
countryCode: 'US'
});
expect(RtlDetect._parseLocale('en-us')).toStrictEqual({
lang: 'en',
countryCode: 'US'
});
expect(RtlDetect._parseLocale('EN-US')).toStrictEqual({
lang: 'en',
countryCode: 'US'
});
expect(RtlDetect._parseLocale('EN-US')).toStrictEqual({
lang: 'en',
countryCode: 'US'
});
});
it('_BIDI_RTL_LANGS', function () {
expect(RtlDetect._BIDI_RTL_LANGS).toStrictEqual([
'ae',
'ar',
'arc',
'bcc',
'bqi',
'ckb',
'dv',
'fa',
'glk',
'he',
'ku',
'mzn',
'nqo',
'pnb',
'prs',
'ps',
'sd',
'ug',
'ur',
'yi'
]);
});
});
});

View File

@@ -0,0 +1,82 @@
/* global describe, it, expect */
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var RtlDetect = require('../../' + 'lib/rtl-detect');
describe('rtl-detect', function () {
describe('public', function () {
it('isRtlLang()', function () {
expect(RtlDetect.isRtlLang()).toBeUndefined();
expect(RtlDetect.isRtlLang(null)).toBeUndefined();
expect(RtlDetect.isRtlLang('')).toBeUndefined();
expect(RtlDetect.isRtlLang(' ')).toBeUndefined();
expect(RtlDetect.isRtlLang('1234')).toBeUndefined();
expect(RtlDetect.isRtlLang('en')).toBeFalsy();
expect(RtlDetect.isRtlLang('EN')).toBeFalsy();
expect(RtlDetect.isRtlLang('en-US')).toBeFalsy();
expect(RtlDetect.isRtlLang('en_US')).toBeFalsy();
expect(RtlDetect.isRtlLang('en-us')).toBeFalsy();
expect(RtlDetect.isRtlLang('ar')).toBeTruthy();
expect(RtlDetect.isRtlLang('AR')).toBeTruthy();
expect(RtlDetect.isRtlLang('ar-jo')).toBeTruthy();
expect(RtlDetect.isRtlLang('ar-JO')).toBeTruthy();
expect(RtlDetect.isRtlLang('ar_JO')).toBeTruthy();
});
it('getLangDir()', function () {
expect(RtlDetect.getLangDir()).toEqual('ltr');
expect(RtlDetect.getLangDir(null)).toEqual('ltr');
expect(RtlDetect.getLangDir('')).toEqual('ltr');
expect(RtlDetect.getLangDir(' ')).toEqual('ltr');
expect(RtlDetect.getLangDir('1234')).toEqual('ltr');
expect(RtlDetect.getLangDir('en')).toEqual('ltr');
expect(RtlDetect.getLangDir('EN')).toEqual('ltr');
expect(RtlDetect.getLangDir('en-US')).toEqual('ltr');
expect(RtlDetect.getLangDir('en_US')).toEqual('ltr');
expect(RtlDetect.getLangDir('en_US')).toEqual('ltr');
expect(RtlDetect.getLangDir('en-us')).toEqual('ltr');
expect(RtlDetect.getLangDir('ar')).toEqual('rtl');
expect(RtlDetect.getLangDir('AR')).toEqual('rtl');
expect(RtlDetect.getLangDir('ar-jo')).toEqual('rtl');
expect(RtlDetect.getLangDir('ar-JO')).toEqual('rtl');
expect(RtlDetect.getLangDir('ar_JO')).toEqual('rtl');
});
});
});

15
node_modules/rtl-detect/index.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var rtlDetect = require('./lib/rtl-detect');
module.exports = {
isRtlLang: rtlDetect.isRtlLang,
getLangDir: rtlDetect.getLangDir
};

171
node_modules/rtl-detect/lib/rtl-detect.js generated vendored Normal file
View File

@@ -0,0 +1,171 @@
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var self;
var RtlDetectLib = self = { // eslint-disable-line consistent-this
// Private vars - star
_regexEscape: /([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g, // eslint-disable-line no-useless-escape
_regexParseLocale: /^([a-zA-Z]*)([_\-a-zA-Z]*)$/,
// Private vars - end
// Private functions - star
_escapeRegExpPattern: function (str) {
if (typeof str !== 'string') {
return str;
}
return str.replace(self._regexEscape, '\\$1');
},
_toLowerCase: function (str, reserveReturnValue) {
if (typeof str !== 'string') {
return reserveReturnValue && str;
}
return str.toLowerCase();
},
_toUpperCase: function (str, reserveReturnValue) {
if (typeof str !== 'string') {
return reserveReturnValue && str;
}
return str.toUpperCase();
},
_trim: function (str, delimiter, reserveReturnValue) {
var patterns = [];
var regexp;
var addPatterns = function (pattern) {
// Build trim RegExp pattern and push it to patterns array
patterns.push('^' + pattern + '+|' + pattern + '+$');
};
// fix reserveReturnValue value
if (typeof delimiter === 'boolean') {
reserveReturnValue = delimiter;
delimiter = null;
}
if (typeof str !== 'string') {
return reserveReturnValue && str;
}
// Trim based on delimiter array values
if (Array.isArray(delimiter)) {
// Loop through delimiter array
delimiter.map(function (item) {
// Escape delimiter to be valid RegExp Pattern
var pattern = self._escapeRegExpPattern(item);
// Push pattern to patterns array
addPatterns(pattern);
});
}
// Trim based on delimiter string value
if (typeof delimiter === 'string') {
// Escape delimiter to be valid RegExp Pattern
var patternDelimiter = self._escapeRegExpPattern(delimiter);
// push pattern to patterns array
addPatterns(patternDelimiter);
}
// If delimiter is not defined, Trim white spaces
if (!delimiter) {
// Push white space pattern to patterns array
addPatterns('\\s');
}
// Build RegExp pattern
var pattern = '(' + patterns.join('|') + ')';
// Build RegExp object
regexp = new RegExp(pattern, 'g');
// trim string for all patterns
while (str.match(regexp)) {
str = str.replace(regexp, '');
}
// Return trim string
return str;
},
_parseLocale : function (strLocale) {
var matches = self._regexParseLocale.exec(strLocale); // exec regex
var parsedLocale;
var lang;
var countryCode;
if (!strLocale || !matches) {
return;
}
// fix countryCode string by trimming '-' and '_'
matches[2] = self._trim(matches[2], ['-', '_']);
lang = self._toLowerCase(matches[1]);
countryCode = self._toUpperCase(matches[2]) || countryCode;
// object with lang, countryCode properties
parsedLocale = {
lang: lang,
countryCode: countryCode
};
// return parsed locale object
return parsedLocale;
},
// Private functions - End
// Public functions - star
isRtlLang: function (strLocale) {
var objLocale = self._parseLocale(strLocale);
if (!objLocale) {
return;
}
// return true if the intel string lang exists in the BID RTL LANGS array else return false
return (self._BIDI_RTL_LANGS.indexOf(objLocale.lang) >= 0);
},
getLangDir: function (strLocale) {
// return 'rtl' if the intel string lang exists in the BID RTL LANGS array else return 'ltr'
return self.isRtlLang(strLocale) ? 'rtl' : 'ltr';
}
// Public functions - End
};
// Const BIDI_RTL_LANGS Array
// BIDI_RTL_LANGS ref: http://en.wikipedia.org/wiki/Right-to-left
// Table of scripts in Unicode: https://en.wikipedia.org/wiki/Script_(Unicode)
Object.defineProperty(self, '_BIDI_RTL_LANGS', {
value: [
'ae', /* Avestan */
'ar', /* 'العربية', Arabic */
'arc', /* Aramaic */
'bcc', /* 'بلوچی مکرانی', Southern Balochi */
'bqi', /* 'بختياري', Bakthiari */
'ckb', /* 'Soranî / کوردی', Sorani */
'dv', /* Dhivehi */
'fa', /* 'فارسی', Persian */
'glk', /* 'گیلکی', Gilaki */
'he', /* 'עברית', Hebrew */
'ku', /* 'Kurdî / كوردی', Kurdish */
'mzn', /* 'مازِرونی', Mazanderani */
'nqo', /* N'Ko */
'pnb', /* 'پنجابی', Western Punjabi */
'prs', /* 'دری', Darī */
'ps', /* 'پښتو', Pashto, */
'sd', /* 'سنڌي', Sindhi */
'ug', /* 'Uyghurche / ئۇيغۇرچە', Uyghur */
'ur', /* 'اردو', Urdu */
'yi' /* 'ייִדיש', Yiddish */
],
writable: false,
enumerable: true,
configurable: false
});
module.exports = RtlDetectLib;

61
node_modules/rtl-detect/package.json generated vendored Normal file
View File

@@ -0,0 +1,61 @@
{
"name": "rtl-detect",
"version": "1.1.2",
"description": "Library will help you to detect if the locale is right-to-left language.",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "jest --coverage",
"commit": "git-cz"
},
"jest": {
"verbose": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/shadiabuhilal/rtl-detect.git"
},
"keywords": [
"rtl-detect",
"rtl-detect",
"locale direction",
"locale dir",
"locale",
"intl direction",
"intl dir",
"intl",
"right-to-left",
"left-to-right",
"rtl",
"ltr",
"intl-lang"
],
"author": "Shadi Abu Hilal <shadiabuhilal@gmail.com> (http://github.com/shadiabuhilal)",
"license": "BSD-3-Clause",
"homepage": "https://github.com/shadiabuhilal/rtl-detect",
"bugs": {
"url": "https://github.com/shadiabuhilal/rtl-detect/issues"
},
"licenses": [
{
"type": "BSD-3-Clause",
"url": "https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"
}
],
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/release-notes-generator": "^12.0.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.26.0",
"jest": "^26.6.3",
"semantic-release": "^22.0.5"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}