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

ralltiir

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ralltiir - npm Package Compare versions

Comparing version 2.5.13 to 2.5.14

6

book.json
{
"title": "Superframe 文档",
"title": "Ralltiir 项目文档",
"description": "Superframe 相关教程、设计和 API",
"author": "Superframe 团队",
"author": "Ralltiir 团队",
"language": "zh-hans",

@@ -15,3 +15,3 @@ "plugins": [

"editlink": {
"base": "https://github.com/searchfe/superframe/docs/edit/master/",
"base": "https://github.com/Ralltiir/ralltiir/docs/edit/master/",
"label": "编辑此页",

@@ -18,0 +18,0 @@ "multilingual": false

# 框架 Debug
使用开发版的 Superframe 可以启用框架核心的调试功能。
在调试模式下,Superframe 提供了详细的页面调起和渲染日志。
使用开发版的 Ralltiir 可以启用框架核心的调试功能。
在调试模式下,Ralltiir 提供了详细的页面调起和渲染日志。
为了支持移动端调试,可以通过 URL 参数来指定将调试日志实时发送到服务器。

@@ -10,10 +10,10 @@

需要首先在[发布][release]页面选择“development”版本下载后部署在你的环境中。
如果在测试环境中,需要更新测试环境代码中对应的 superframe 源码。
如果在测试环境中,需要更新测试环境代码中对应的 Ralltiir 源码。
## 调试日志
在打开容器页(第一个让浏览器访问的 URL) 时,在浏览器控制台就可以看到 Superframe 框架日志了。例如:
在打开容器页(第一个让浏览器访问的 URL) 时,在浏览器控制台就可以看到 Ralltiir 框架日志了。例如:
```
m.baidu.com/sf?word=xxx
http://localhost:8080/
```

@@ -23,7 +23,7 @@

在移动设备调试时,可以将 debug 日志发送到某台服务器(例如你的开发机),
在移动设备调试时,可以将 debug 日志发送到某台服务器,
需要增加`debug-server=xxx`参数。例如:
```
m.baidu.com/sf?word=xxx&debug-server=http://example.com
http://localhost:8080/path?debug-server=http://example.com
```

@@ -33,2 +33,2 @@

[release]: https://github.com/searchfe/superframe/release
[release]: https://github.com/ralltiir/ralltiir/release
# 生命周期概述
Superframe Service、View都提供了生命周期的托管。
Ralltiir Service、View都提供了生命周期的托管。
其中View的生命周期由Service自行调用。本文主要介绍Service的生命周期。

@@ -8,3 +8,3 @@

在创建Service实例时,需要继承自Superframe提供的Service基类。
在创建Service实例时,需要继承自Ralltiir提供的Service基类。
该基类提供了生命周期回调接口(实现为空函数)。子类可实现其中任何一个的行为。包括:

@@ -11,0 +11,0 @@

# 目录
* [概述](README.md)
* 起步教程
* [起步教程]
* [1\. Hello World](/get-started/1-hello-world.md)
* [2\. 编写 Service](/get-started/2-service.md)
* [3\. Action 路由](/get-started/3-action.md)
* [4\. sfr-cli工具使用](/get-started/4-sfr-cli.md)
* 高级主题
* [3\. Action与路由](/get-started/3-action.md)
* [高级主题](/advanced/readme.md)
* [框架 Debug](/advanced/debug.md)
* [生命周期概述](/advanced/life-cycle.md)
* API
* [API](/api/readme.md)
* [Action](/api/action.md)

@@ -14,0 +13,0 @@ * [Cache](/api/cache.md)

{
"name": "ralltiir",
"version": "2.5.13",
"version": "2.5.14",
"discription": "前端极速浏览框架,目标是提升用户体验,提供沉浸式浏览方式。",

@@ -5,0 +5,0 @@ "scripts": {

# Superframe
[![Build Status](https://travis-ci.org/searchfe/superframe.svg?branch=master)](https://travis-ci.org/searchfe/superframe) [![Coverage Status](https://coveralls.io/repos/github/searchfe/superframe/badge.svg?branch=master)](https://coveralls.io/github/searchfe/superframe?branch=master)
[![Build Status](https://travis-ci.org/Ralltiir/ralltiir.svg?branch=master)](https://travis-ci.org/Ralltiir/ralltiir) [![Coverage Status](https://coveralls.io/repos/github/Ralltiir/ralltiir/badge.svg?branch=master)](https://coveralls.io/github/Ralltiir/ralltiir?branch=master)
文档:<https://ralltiir.github.io/ralltiir/>
## 概述
Superframe是一个页面异步解决方案。
Ralltiir是一个Web页面异步解决方案。
主要用于解决页面与页面的跳转体验糟糕的问题。
我们期望通过Superframe让Web的页面跳转也像Native App一样流畅。
我们期望通过Ralltiir让Web的页面跳转也像Native App一样流畅。
了解更多信息,访问[Superframe Docs](https://searchfe.github.io/superframe)
了解更多信息,访问[Ralltiir Docs](https://ralltiir.github.io/ralltiir/)
## 下载&安装
源码下载
``https://github.com/Ralltiir/ralltiir/archive/v2.5.13.zip``
npm安装
``npm install -g ralltiir``
## 文档教程
## ChangeLog
[起步教程:Hello World!](https://ralltiir.github.io/ralltiir/get-started/1-hello-world.html)
[Debug调试](https://ralltiir.github.io/ralltiir/advanced/debug.html)
[核心API](https://ralltiir.github.io/ralltiir/api/action.html)

@@ -135,2 +135,6 @@ /**

exports.has = function (name) {
return storage.hasOwnProperty(name);
};
/**

@@ -137,0 +141,0 @@ * Get the cache storage for specified namespace

@@ -258,3 +258,3 @@ /**

done();
}, 1000);
}, 500);
});

@@ -271,2 +271,14 @@ it('should not throw when error handled', function (done) {

});
it('should throw when error re-throwed', function (done) {
Promise.reject('foo').catch(function (e) {
throw e;
});
setTimeout(function () {
expect(handler).to.have.been.calledWithMatch({
reason: 'foo',
type: 'unhandledrejection'
});
done();
}, 100);
});
it('should not throw when no error occurred', function (done) {

@@ -273,0 +285,0 @@ Promise.resolve('foo');

@@ -28,2 +28,9 @@ /**

});
it('should return false when namespace not exist', function () {
expect(cache.has('name')).to.be.false;
});
it('should return true when namespace exist', function () {
cache.create('name');
expect(cache.has('name')).to.be.true;
});
});

@@ -30,0 +37,0 @@ describe('.get()', function () {

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