New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

framework7-react

Package Overview
Dependencies
Maintainers
1
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

framework7-react - npm Package Compare versions

Comparing version 0.8.2-beta-4 to 0.8.5-beta.1

dist/src/framework7.js

1

dist/framework7-vue/router.js

@@ -43,2 +43,3 @@ "use strict";

var flattenRoutes = function (routes) {
if (routes === void 0) { routes = []; }
return routes.reduce(function (accumulatedFlattenedRoutes, nextRoute) {

@@ -45,0 +46,0 @@ var flattenedNextRoute;

3

dist/src/components/Framework7App.js

@@ -22,3 +22,3 @@ "use strict";

function Framework7App() {
var _this = _super !== null && _super.apply(this, arguments) || this;
var _this = _super.apply(this, arguments) || this;
_this.framework7 = null;

@@ -72,2 +72,3 @@ _this.framework7InitCallbacks = [];

});
return false;
});

@@ -74,0 +75,0 @@ if (this.props.onFramework7Init) {

@@ -0,0 +0,0 @@ export interface IFramework7Params {

@@ -12,3 +12,3 @@ "use strict";

var change_case_1 = require("change-case");
var handleStateSet = function (stateObject, key, value, vueComponent, self) {
var handleStateSet = function (stateObject, key, value, vueComponent, self, deleteMode) {
var stateKey = Object.keys(self.state).reduce(function (macthingStateKey, nextKey) {

@@ -22,4 +22,16 @@ if (self.state[nextKey] === stateObject) {

}, null);
var newState = __assign({}, self.state, (_a = {}, _a[stateKey] = __assign({}, self.state[stateKey], (_b = {}, _b[key] = value, _b)), _a));
vueComponent[stateKey] = newState[stateKey];
var newState;
if (deleteMode) {
newState = __assign({}, self.state);
delete newState[stateKey][key];
}
else {
newState = __assign({}, self.state, (_a = {}, _a[stateKey] = __assign({}, self.state[stateKey], (_b = {}, _b[key] = value, _b)), _a));
}
if (deleteMode) {
delete vueComponent[stateKey][key];
}
else {
vueComponent[stateKey] = newState[stateKey];
}
self.setState(newState);

@@ -94,4 +106,8 @@ var _a, _b;

this.reactComponentInstance.hasUnrenderedStateChanges = true;
handleStateSet(stateObject, key, value, this, this.reactComponentInstance);
handleStateSet(stateObject, key, value, this, this.reactComponentInstance, false);
};
vueComponentClass.prototype.$delete = function (stateObject, key) {
this.reactComponentInstance.hasUnrenderedStateChanges = true;
handleStateSet(stateObject, key, null, this, this.reactComponentInstance, true);
};
return vueComponentClass;

@@ -98,0 +114,0 @@ };

@@ -0,0 +0,0 @@ var gulp = require('gulp'),

@@ -7,4 +7,3 @@ import {generateReactComponents} from './framework7-react-component-gen';

clean = require('gulp-clean'),
concat = require('gulp-concat'),
getF7FileList = require('./framework7-custom-build'),
concat = require('gulp-concat'),
tsc = require('gulp-typescript'),

@@ -22,4 +21,3 @@ merge = require('merge2'),

return merge(
gulp.src(getF7FileList())
.pipe(concat('Framework7.js'))
gulp.src('./node_modules/framework7/dist/js/framework7.js')
.pipe(replace('window.Framework7 = ', 'window.Framework7 = module.exports.Framework7 = '))

@@ -26,0 +24,0 @@ .pipe(replace('window.Dom7 = ', 'window.Dom7 = module.exports.Dom7 = '))

{
"name": "framework7-react",
"version": "0.8.2-beta-4",
"version": "0.8.5-beta.1",
"description": "A React version of Framework7",

@@ -51,3 +51,3 @@ "main": "dist/framework7-react/index.js",

"framework7": "^1.5.3",
"framework7-vue": "0.8.2",
"framework7-vue": "0.8.5",
"gulp": "3.9.1",

@@ -54,0 +54,0 @@ "gulp-clean": "^0.3.2",

@@ -0,0 +0,0 @@ # Framework7 React

@@ -0,0 +0,0 @@ {

@@ -70,2 +70,2 @@ // Generated by typings

export = DOMServer;
}
}

@@ -0,3 +1,9 @@

/// <reference path="globals/bluebird/index.d.ts" />
/// <reference path="globals/classnames/index.d.ts" />
/// <reference path="globals/invariant/index.d.ts" />
/// <reference path="globals/jquery/index.d.ts" />
/// <reference path="globals/react-dom/index.d.ts" />
/// <reference path="globals/react-router/history/index.d.ts" />
/// <reference path="globals/react-router/index.d.ts" />
/// <reference path="globals/react/index.d.ts" />
/// <reference path="modules/camelcase/index.d.ts" />

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 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

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