@remirror/i18n
Advanced tools
Comparing version 1.0.0-next.0 to 1.0.0-next.1
# @remirror/i18n | ||
## 1.0.0-next.1 | ||
> 2020-07-05 | ||
### Patch Changes | ||
- Fix missing dist files from previous publish. | ||
- Updated dependencies [undefined] | ||
- @remirror/core-helpers@1.0.0-next.1 | ||
- @remirror/pm@1.0.0-next.1 | ||
## 1.0.0-next.0 | ||
@@ -4,0 +15,0 @@ |
@@ -1,11 +0,1 @@ | ||
// are you seeing an error that a default export doesn't exist but your source file has a default export? | ||
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook | ||
// curious why you need to? | ||
// this file exists so that you can import from the entrypoint normally | ||
// except that it points to your source file and you don't need to run build constantly | ||
// which means we need to re-export all of the modules from your source file | ||
// and since export * doesn't include default exports, we need to read your source file | ||
// to check for a default export and re-export it if it exists | ||
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯ | ||
export * from "../src/index"; | ||
export * from "./declarations/src/index"; |
@@ -1,19 +0,7 @@ | ||
"use strict"; | ||
// this file might look strange and you might be wondering what it's for | ||
// it's lets you import your source files by importing this entrypoint | ||
// as you would import it if it was built with preconstruct build | ||
// this file is slightly different to some others though | ||
// it has a require hook which compiles your code with Babel | ||
// this means that you don't have to set up @babel/register or anything like that | ||
// but you can still require this module and it'll be compiled | ||
'use strict'; | ||
// this bit of code imports the require hook and registers it | ||
let unregister = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/node_modules/.pnpm/@preconstruct/hook@0.1.0/node_modules/@preconstruct/hook/dist/hook.cjs.js").___internalHook("/Users/ifiokjr/Coding/kickjump/remirror/prs"); | ||
// this re-exports the source file | ||
module.exports = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/packages/@remirror/i18n/src/index.ts"); | ||
// this unregisters the require hook so that any modules required after this one | ||
// aren't compiled with the require hook in case you have some other require hook | ||
// or something that should be used on other modules | ||
unregister(); | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./i18n.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./i18n.cjs.dev.js"); | ||
} |
@@ -1,15 +0,11 @@ | ||
// 👋 hey!! | ||
// you might be reading this and seeing .esm in the filename | ||
// and being confused why there is commonjs below this filename | ||
// DON'T WORRY! | ||
// this is intentional | ||
// it's only commonjs with `preconstruct dev` | ||
// when you run `preconstruct build`, it will be ESM | ||
// why is it commonjs? | ||
// we need to re-export every export from the source file | ||
// but we can't do that with ESM without knowing what the exports are (because default exports aren't included in export/import *) | ||
// and they could change after running `preconstruct dev` so we can't look at the file without forcing people to | ||
// run preconstruct dev again which wouldn't be ideal | ||
// this solution could change but for now, it's working | ||
import { i18n } from '@lingui/core'; | ||
export { formats, i18n, setupI18n } from '@lingui/core'; | ||
import enLocale from '../en/dist/i18n.esm.js'; | ||
import { en } from 'make-plural/plurals'; | ||
module.exports = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/packages/@remirror/i18n/src/index.ts") | ||
i18n.loadLocaleData('en', { | ||
plurals: en | ||
}); | ||
i18n.load({ | ||
en: enLocale.messages | ||
}); |
@@ -1,12 +0,2 @@ | ||
// are you seeing an error that a default export doesn't exist but your source file has a default export? | ||
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook | ||
// curious why you need to? | ||
// this file exists so that you can import from the entrypoint normally | ||
// except that it points to your source file and you don't need to run build constantly | ||
// which means we need to re-export all of the modules from your source file | ||
// and since export * doesn't include default exports, we need to read your source file | ||
// to check for a default export and re-export it if it exists | ||
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯ | ||
export * from "../../src/en"; | ||
export { default } from "../../src/en"; | ||
export * from "../../dist/declarations/src/en"; | ||
export { default } from "../../dist/declarations/src/en"; |
@@ -1,19 +0,7 @@ | ||
"use strict"; | ||
// this file might look strange and you might be wondering what it's for | ||
// it's lets you import your source files by importing this entrypoint | ||
// as you would import it if it was built with preconstruct build | ||
// this file is slightly different to some others though | ||
// it has a require hook which compiles your code with Babel | ||
// this means that you don't have to set up @babel/register or anything like that | ||
// but you can still require this module and it'll be compiled | ||
'use strict'; | ||
// this bit of code imports the require hook and registers it | ||
let unregister = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/node_modules/.pnpm/@preconstruct/hook@0.1.0/node_modules/@preconstruct/hook/dist/hook.cjs.js").___internalHook("/Users/ifiokjr/Coding/kickjump/remirror/prs"); | ||
// this re-exports the source file | ||
module.exports = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/packages/@remirror/i18n/src/en.ts"); | ||
// this unregisters the require hook so that any modules required after this one | ||
// aren't compiled with the require hook in case you have some other require hook | ||
// or something that should be used on other modules | ||
unregister(); | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./i18n.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./i18n.cjs.dev.js"); | ||
} |
@@ -1,15 +0,7 @@ | ||
// 👋 hey!! | ||
// you might be reading this and seeing .esm in the filename | ||
// and being confused why there is commonjs below this filename | ||
// DON'T WORRY! | ||
// this is intentional | ||
// it's only commonjs with `preconstruct dev` | ||
// when you run `preconstruct build`, it will be ESM | ||
// why is it commonjs? | ||
// we need to re-export every export from the source file | ||
// but we can't do that with ESM without knowing what the exports are (because default exports aren't included in export/import *) | ||
// and they could change after running `preconstruct dev` so we can't look at the file without forcing people to | ||
// run preconstruct dev again which wouldn't be ideal | ||
// this solution could change but for now, it's working | ||
/*eslint-disable*/ | ||
module.exports = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/packages/@remirror/i18n/src/en.ts") | ||
var locale = /*#__PURE__*/Object.freeze({ | ||
__proto__: null | ||
}); | ||
export default locale; |
{ | ||
"name": "@remirror/i18n", | ||
"version": "1.0.0-next.0", | ||
"version": "1.0.0-next.1", | ||
"description": "Supported internationalization and locales for the remirror editor.", | ||
@@ -27,10 +27,10 @@ "keywords": [ | ||
"@lingui/core": "^3.0.0-13", | ||
"@remirror/core-helpers": "^1.0.0-next.0", | ||
"@remirror/core-helpers": "^1.0.0-next.1", | ||
"make-plural": "^6.2.1" | ||
}, | ||
"devDependencies": { | ||
"@remirror/pm": "^1.0.0-next.0" | ||
"@remirror/pm": "^1.0.0-next.1" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/pm": "^1.0.0-next.0" | ||
"@remirror/pm": "^1.0.0-next.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "publishConfig": { |
@@ -1,11 +0,1 @@ | ||
// are you seeing an error that a default export doesn't exist but your source file has a default export? | ||
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook | ||
// curious why you need to? | ||
// this file exists so that you can import from the entrypoint normally | ||
// except that it points to your source file and you don't need to run build constantly | ||
// which means we need to re-export all of the modules from your source file | ||
// and since export * doesn't include default exports, we need to read your source file | ||
// to check for a default export and re-export it if it exists | ||
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯ | ||
export * from "../../src/plurals"; | ||
export * from "../../dist/declarations/src/plurals"; |
@@ -1,19 +0,7 @@ | ||
"use strict"; | ||
// this file might look strange and you might be wondering what it's for | ||
// it's lets you import your source files by importing this entrypoint | ||
// as you would import it if it was built with preconstruct build | ||
// this file is slightly different to some others though | ||
// it has a require hook which compiles your code with Babel | ||
// this means that you don't have to set up @babel/register or anything like that | ||
// but you can still require this module and it'll be compiled | ||
'use strict'; | ||
// this bit of code imports the require hook and registers it | ||
let unregister = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/node_modules/.pnpm/@preconstruct/hook@0.1.0/node_modules/@preconstruct/hook/dist/hook.cjs.js").___internalHook("/Users/ifiokjr/Coding/kickjump/remirror/prs"); | ||
// this re-exports the source file | ||
module.exports = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/packages/@remirror/i18n/src/plurals.ts"); | ||
// this unregisters the require hook so that any modules required after this one | ||
// aren't compiled with the require hook in case you have some other require hook | ||
// or something that should be used on other modules | ||
unregister(); | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./i18n.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./i18n.cjs.dev.js"); | ||
} |
@@ -1,15 +0,1 @@ | ||
// 👋 hey!! | ||
// you might be reading this and seeing .esm in the filename | ||
// and being confused why there is commonjs below this filename | ||
// DON'T WORRY! | ||
// this is intentional | ||
// it's only commonjs with `preconstruct dev` | ||
// when you run `preconstruct build`, it will be ESM | ||
// why is it commonjs? | ||
// we need to re-export every export from the source file | ||
// but we can't do that with ESM without knowing what the exports are (because default exports aren't included in export/import *) | ||
// and they could change after running `preconstruct dev` so we can't look at the file without forcing people to | ||
// run preconstruct dev again which wouldn't be ideal | ||
// this solution could change but for now, it's working | ||
module.exports = require("/Users/ifiokjr/Coding/kickjump/remirror/prs/packages/@remirror/i18n/src/plurals.ts") | ||
export * from 'make-plural/plurals'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27
143
7489
4
1