Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rosetty-solid

Package Overview
Dependencies
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rosetty-solid - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

18

dist/rosetty-solid.cjs.development.js

@@ -10,6 +10,5 @@ 'use strict';

function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {

@@ -21,6 +20,4 @@ if (Object.prototype.hasOwnProperty.call(source, key)) {

}
return target;
};
return _extends.apply(this, arguments);

@@ -34,23 +31,18 @@ }

}, [props.languages]);
var _createSignal = solidJs.createSignal(props.defaultLanguage),
actualLang = _createSignal[0],
setActualLang = _createSignal[1];
actualLang = _createSignal[0],
setActualLang = _createSignal[1];
var providerReturn = _extends({}, r(), {
actualLang: actualLang,
changeLang: function changeLang(lang) {
r().changeLang(lang); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
r().changeLang(lang);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
setActualLang(r().getCurrentLang());
}
});
return web.createComponent(RosettyContext.Provider, {
value: providerReturn,
get children() {
return props.children;
}
});

@@ -57,0 +49,0 @@ };

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("solid-js/web"),t=require("rosetty"),r=require("solid-js");function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r.createContext();exports.RosettyContext=a,exports.RosettyProvider=function(o){var u=r.createMemo((function(){return t.rosetty(o.languages,o.defaultLanguage,o.translateFallback)}),[o.languages]),s=r.createSignal(o.defaultLanguage),c=s[0],i=s[1],l=n({},u(),{actualLang:c,changeLang:function(e){u().changeLang(e),i(u().getCurrentLang())}});return e.createComponent(a.Provider,{value:l,get children(){return o.children}})},exports.useRosetty=function(){return r.useContext(a)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("solid-js/web"),t=require("rosetty"),r=require("solid-js");function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r.createContext();exports.RosettyContext=a,exports.RosettyProvider=function(o){var u=r.createMemo((function(){return t.rosetty(o.languages,o.defaultLanguage,o.translateFallback)}),[o.languages]),s=r.createSignal(o.defaultLanguage),i=s[0],c=s[1],g=n({},u(),{actualLang:i,changeLang:function(e){u().changeLang(e),c(u().getCurrentLang())}});return e.createComponent(a.Provider,{value:g,get children(){return o.children}})},exports.useRosetty=function(){return r.useContext(a)};
//# sourceMappingURL=rosetty-solid.cjs.production.min.js.map

@@ -6,6 +6,5 @@ import { createComponent } from 'solid-js/web';

function _extends() {
_extends = Object.assign || function (target) {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {

@@ -17,6 +16,4 @@ if (Object.prototype.hasOwnProperty.call(source, key)) {

}
return target;
};
return _extends.apply(this, arguments);

@@ -30,23 +27,18 @@ }

}, [props.languages]);
var _createSignal = createSignal(props.defaultLanguage),
actualLang = _createSignal[0],
setActualLang = _createSignal[1];
actualLang = _createSignal[0],
setActualLang = _createSignal[1];
var providerReturn = _extends({}, r(), {
actualLang: actualLang,
changeLang: function changeLang(lang) {
r().changeLang(lang); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
r().changeLang(lang);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
setActualLang(r().getCurrentLang());
}
});
return createComponent(RosettyContext.Provider, {
value: providerReturn,
get children() {
return props.children;
}
});

@@ -53,0 +45,0 @@ };

{
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",

@@ -81,3 +81,3 @@ "main": "dist/index.js",

"devDependencies": {
"@size-limit/preset-small-lib": "8.2.6",
"@size-limit/preset-small-lib": "9.0.0",
"@solidjs/testing-library": "^0.8.4",

@@ -92,10 +92,10 @@ "@testing-library/jest-dom": "6.0.0",

"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-simple-import-sort": "10.0.0",
"husky": "8.0.3",
"jest": "29.6.2",
"jest": "29.6.4",
"jest-environment-jsdom": "^29.5.0",
"np": "8.0.4",
"prettier": "3.0.2",
"prettier": "3.0.3",
"size-limit": "8.2.6",

@@ -105,3 +105,3 @@ "solid-jest": "^0.2.0",

"tsdx": "0.14.1",
"tslib": "2.6.1",
"tslib": "2.6.2",
"typescript": "5.1.6"

@@ -108,0 +108,0 @@ },

@@ -1,2 +0,2 @@

[![Maintainability](https://api.codeclimate.com/v1/badges/82e2c932c7dde770cdd4/maintainability)](https://codeclimate.com/github/qlaffont/rosetty-solid/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/82e2c932c7dde770cdd4/test_coverage)](https://codeclimate.com/github/qlaffont/rosetty-solid/test_coverage) ![npm](https://img.shields.io/npm/v/rosetty-solid) ![npm](https://img.shields.io/npm/dm/rosetty-solid) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/rosetty-solid) ![NPM](https://img.shields.io/npm/l/rosetty-solid)
[![Maintainability](https://api.codeclimate.com/v1/badges/a777c53f5370b6900930/maintainability)](https://codeclimate.com/github/qlaffont/rosetty-solid/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a777c53f5370b6900930/test_coverage)](https://codeclimate.com/github/qlaffont/rosetty-solid/test_coverage) ![npm](https://img.shields.io/npm/v/rosetty-solid) ![npm](https://img.shields.io/npm/dm/rosetty-solid) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/rosetty-solid) ![NPM](https://img.shields.io/npm/l/rosetty-solid)

@@ -3,0 +3,0 @@ # Rosetty solid

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc