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

@ribajs/extras

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/extras - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0-alpha.0

package-lock.json

6

babel.config.js

@@ -16,7 +16,3 @@ module.exports = {

"plugins": [
[
"@babel/plugin-transform-runtime", {
"corejs": 3
}
],
"@babel/plugin-syntax-export-default-from",

@@ -23,0 +19,0 @@ "@babel/plugin-proposal-class-properties",

{
"name": "@ribajs/extras",
"description": "Extras module for Riba.js",
"version": "1.8.0",
"version": "1.9.0-alpha.0",
"author": "Pascal Garber <pascal@artandcode.studio>",

@@ -25,34 +25,34 @@ "contributors": [],

"test": "npm run type-check && jest --config=jest.config.js",
"type-check": "eslint src --ext .js,.jsx,.ts,.tsx --fix && tsc --noEmit",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix && tsc --noEmit",
"build": "npm run build:module",
"build:module": "tsc",
"packages:link": "npm link @ribajs/core"
"packages:npm:link": "npm link @ribajs/core"
},
"devDependencies": {
"@babel/cli": "^7.7.7",
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-export-default-from": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.7",
"@babel/preset-typescript": "^7.7.7",
"@babel/runtime-corejs3": "^7.7.7",
"@types/jest": "^24.0.25",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"babel-loader": "^8.0.6",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"@babel/preset-typescript": "^7.9.0",
"@babel/runtime-corejs3": "^7.9.2",
"@types/jest": "^25.2.1",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"babel-loader": "^8.1.0",
"babel-plugin-array-includes": "^2.0.3",
"core-js": "^3.6.2",
"core-js": "^3.6.5",
"eslint": "^6.8.0",
"jest": "^24.9.0",
"jest-extended": "^0.11.2",
"ts-jest": "^24.3.0",
"typescript": "^3.7.4",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
"jest": "^25.4.0",
"jest-extended": "^0.11.5",
"ts-jest": "^25.4.0",
"typescript": "^3.8.3",
"webpack": "^5.0.0-beta.15",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@ribajs/core": "^1.8.0"
"@ribajs/core": "1.9.0-alpha.0",
"@ribajs/utils": "1.9.0-alpha.0"
},

@@ -62,2 +62,2 @@ "bugs": {

}
}
}

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

import { Binder, Utils } from '@ribajs/core';
import { Binder } from '@ribajs/core';
import { debounce } from '@ribajs/utils/src/control';

@@ -49,3 +50,3 @@ const DEFAULT_OFFSET = 10;

if (this.customData.watchScrollOnElement) {
this.customData.watchScrollOnElement.removeEventListener('scroll', Utils.debounce.bind(this, this.customData.onScroll.bind(this)));
this.customData.watchScrollOnElement.removeEventListener('scroll', debounce.bind(this, this.customData.onScroll.bind(this)));
}

@@ -65,3 +66,3 @@

// console.debug('addEventListener', this.customData.watchScrollOnElement);
this.customData.watchScrollOnElement.addEventListener('scroll', Utils.debounce(this.customData.onScroll.bind(this)), { passive: true });
this.customData.watchScrollOnElement.addEventListener('scroll', debounce(this.customData.onScroll.bind(this)), { passive: true });
}

@@ -79,5 +80,5 @@

if (this.customData.watchScrollOnElement) {
this.customData.watchScrollOnElement.removeEventListener('scroll', Utils.debounce(this.customData.onScroll.bind(this)));
this.customData.watchScrollOnElement.removeEventListener('scroll', debounce(this.customData.onScroll.bind(this)));
}
},
};

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

import { Binder, Utils } from '@ribajs/core';
import { Binder } from '@ribajs/core';
import { isString } from '@ribajs/utils/src/type';
import { Autoscroll, AutoscrollOptions } from '../services/autoscroll.service';

@@ -11,3 +12,3 @@

this.customData = this.customData || {};
if (options && options.width && Utils.isString(options.width)) {
if (options && options.width && isString(options.width)) {
if (options.width === '100vw') {

@@ -14,0 +15,0 @@ el.style.width = options.width;

@@ -1,11 +0,5 @@

export * from './binders';
// export * from './components';
// export * from './formatters';
// export * from './interfaces';
export * from './services';
import { RibaModule } from '@ribajs/core';
import * as binders from './binders';
// import * as formatters from './formatters';
import { TouchEventsService, Autoscroll } from './services';
import * as services from './services';
// import * as components from './components';

@@ -16,4 +10,6 @@

binders,
services: { TouchEventsService, Autoscroll },
services,
components: {},
};
export default extrasModule;
export * from './services';
export * from './binders';
import { extrasModule } from './extras.module';
export { extrasModule };
export default extrasModule;
export * from './types';
export * from './extras.module';
export * from './autoscroll.service';
export * from './dragscroll.service';
export * from './fullscreen.service';
export * from './gameloop.service';

@@ -4,0 +5,0 @@ export * from './touch-events/scroll-events.service';

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