@tolgee/core
Advanced tools
Comparing version 4.7.2 to 4.7.3-rc.c880d75c.0
{ | ||
"name": "@tolgee/core", | ||
"version": "4.7.2", | ||
"version": "4.7.3-rc.c880d75c.0", | ||
"description": "Library providing ability to translate messages directly in context of developed application.", | ||
@@ -45,12 +45,13 @@ "main": "index.js", | ||
"@rollup/plugin-node-resolve": "13.3.0", | ||
"@rollup/plugin-replace": "^3.0.1", | ||
"@rollup/plugin-typescript": "8.3.2", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@rollup/plugin-typescript": "8.3.3", | ||
"@testing-library/dom": "^8.7.1", | ||
"@testing-library/jest-dom": "^5.11.4", | ||
"@types/intl-messageformat": "^3.0.0", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^17.0.8", | ||
"@types/testing-library__jest-dom": "^5.14.5", | ||
"concurrently": "7.2.2", | ||
"intl-messageformat": "^9.9.1", | ||
"jest": "^27.2.4", | ||
"jest-environment-jsdom": "^27.5.1", | ||
"jest-fetch-mock": "^3.0.3", | ||
@@ -70,3 +71,3 @@ "openapi-typescript": "^4.3.0", | ||
}, | ||
"gitHead": "12ccff7336da87314feac6cdff5ea19c08fe15d7", | ||
"gitHead": "b2fe465202b06b75b7c03ef9ed7f779a921d7dbc", | ||
"publishConfig": { | ||
@@ -73,0 +74,0 @@ "access": "public" |
@@ -13,9 +13,10 @@ export const createTestDom = (document: Document) => { | ||
document.body = document.createElement('body'); | ||
document.body.innerHTML = `{{${c.keyInRoot}}}' + | ||
'<div id="rootDiv">Some trash... {{${c.keyInRootDiv}}}' + | ||
' <div>Some other text to translate <span>{{${c.hereKey}}} and {{${c.hereTooKey}}}</span> text continues.'</div> + | ||
' <div id="multipleTextNodes">Before text</div>' + | ||
' <div aria-label="this is {{${c.ariaLabelKey}}} label"></div>' + | ||
' <select><option>{{${c.optionKey}}}</option></select>'+ | ||
'<div>`; | ||
document.body.innerHTML = | ||
`{{${c.keyInRoot}}}` + | ||
`<div id="rootDiv">Some trash... {{${c.keyInRootDiv}}}` + | ||
` <div>Some other text to translate <span>{{${c.hereKey}}} and {{${c.hereTooKey}}}</span> text continues.</div>` + | ||
` <div id="multipleTextNodes">Before text</div>` + | ||
` <div aria-label="this is {{${c.ariaLabelKey}}} label"></div>` + | ||
` <select><option>{{${c.optionKey}}}</option></select>` + | ||
`<div>`; | ||
document.getElementById('multipleTextNodes').append('some text node'); | ||
@@ -22,0 +23,0 @@ document.getElementById('multipleTextNodes').append(`{{${c.appendedKey}}}`); |
@@ -5,3 +5,3 @@ import { TolgeeConfig } from '../TolgeeConfig'; | ||
import { Observer } from '../Observer'; | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { TranslationService } from '../services/TranslationService'; | ||
@@ -8,0 +8,0 @@ import { TextService } from '../services/TextService'; |
@@ -5,3 +5,3 @@ jest.dontMock('./Properties'); | ||
import '@testing-library/jest-dom/extend-expect'; | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { TolgeeConfig } from './TolgeeConfig'; | ||
@@ -8,0 +8,0 @@ import { Properties } from './Properties'; |
@@ -8,3 +8,3 @@ jest.dontMock('./CoreService'); | ||
import { ApiHttpService } from './ApiHttpService'; | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { Properties } from '../Properties'; | ||
@@ -11,0 +11,0 @@ import { Scope } from '../types'; |
@@ -5,3 +5,3 @@ jest.dontMock('./DependencyService'); | ||
import { getMockedInstance } from '@testFixtures/mocked'; | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { InvisibleWrapper } from '../wrappers/invisible/InvisibleWrapper'; | ||
@@ -8,0 +8,0 @@ import { TextWrapper } from '../wrappers/text/TextWrapper'; |
@@ -5,3 +5,3 @@ jest.dontMock('./Tolgee'); | ||
import '@testing-library/jest-dom/extend-expect'; | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { Tolgee } from './Tolgee'; | ||
@@ -8,0 +8,0 @@ import { |
@@ -54,2 +54,3 @@ jest.dontMock('./AttributeHandler'); | ||
passToParent: ['option'], | ||
wrapperMode: 'text', | ||
}; | ||
@@ -56,0 +57,0 @@ |
@@ -13,3 +13,3 @@ jest.dontMock('./CoreHandler'); | ||
import { EventEmitterImpl } from '../../services/EventEmitter'; | ||
import { mocked } from 'ts-jest/utils'; | ||
import { mocked } from 'jest-mock'; | ||
import { TranslationData } from '../../types/DTOs'; | ||
@@ -16,0 +16,0 @@ import { Properties } from '../../Properties'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
3439440
149
41689
21
1
20