آبانا آباندخت آبگین آبگینه آبنوس آبین آبینه آپام آپاما
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createHash } from 'crypto' | |
import { defineConfig } from 'vite' | |
import react from '@vitejs/plugin-react' | |
import { | |
defaultRequestToExternal, | |
defaultRequestToHandle | |
} from '@wordpress/dependency-extraction-webpack-plugin/lib/util.js' | |
import json2php from 'json2php' | |
import packageMeta from './package.json'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* List of valid HTML attributes that will be passed to first node of component or | |
* to the node with an attribute 'attributes'. | |
* Generated from https://www.w3.org/TR/html4/index/attributes.html | |
* | |
* @see https://jsfiddle.net/1r8czt2h/ | |
*/ | |
module.exports = { | |
elementAttributes: { |
del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del
.
The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"000": { | |
"province": "-", | |
"city": "-" | |
}, | |
"001": { | |
"province": "تهران", | |
"city": "تهران مرکزی" | |
}, | |
"002": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"code": "aa", | |
"name": "Afar", | |
"native": "Afar" | |
}, | |
{ | |
"code": "ab", | |
"name": "Abkhazian", | |
"native": "Аҧсуа" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"devDependencies": { | |
"@babel/cli": "^7.5.0", | |
"@babel/core": "^7.5.4", | |
"@babel/plugin-syntax-dynamic-import": "^7.2", | |
"@babel/plugin-transform-runtime": "^7.6.0", | |
"@babel/polyfill": "^7.6.0", | |
"@babel/preset-env": "^7.6.0", | |
"@babel/preset-react": "^7.0.0", | |
"@babel/register": "^7.4.4", | |
"@babel/traverse": "^7.5.5", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// By Mahmoud Eskandari @ MIT license | |
function validateCard(card) { | |
if (typeof card === 'undefined' | |
|| card === null | |
|| card.length !== 16) { | |
return false; | |
} | |
let cardTotal = 0; | |
for (let i = 0; i < 16; i += 1) { |
NewerOlder