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

natty-db

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

natty-db - npm Package Versions

23

1.0.2

Diff

Changelog

Source

v1.0.2 / 2016-05-27

  • willRequestdidRequest在调用时传入了参数varsconfig,解决以下两个需求:
    • 希望在发送请求之前有机会修改原本的配置
    • 希望在发送请求之前有机会修改发送的数据
gnosaij
published 1.0.1 •

Changelog

Source

v1.0.1 / 2016-04-14

  • 修复IE11的一个小版本(11.0.9600.18230)下判断是否跨域不正确的问题。
let requestA = doc.createElement('a');
    requestA.href = url;
// 在IE11的不同小版本下, `requestA.protocol`的值有的是`:`, 有的是空字符串, 太奇葩啦!
gnosaij
published 1.0.0 •

Changelog

Source

v1.0.0 / 2016-04-07

  • 不再强依赖RSVP,改为使用Promise Polyfilllie。如果项目只运行在原生支撑Promise对象的浏览器或WebView中,则NattyDB可以不需要任何依赖。
  • package.json中,main的值改为natty-db.node.js
gnosaij
published 0.4.0 •

Changelog

Source

v0.4.0 / 2016-03-24

  • 添加willRequestdidRequest hook。
gnosaij
published 0.3.16 •

Changelog

Source

v0.3.16 / 2016-03-10

  • 解决IE8ajax模块不触发completebug
gnosaij
published 0.3.15 •

Changelog

Source

v0.3.15 / 2016-03-10

  • 打包脚本添加natty-db.pc.node.js
gnosaij
published 0.3.14 •

gnosaij
published 0.3.13 •

Changelog

Source

v0.3.13 / 2016-03-02

  • 优化Ajax请求头的AcceptContent-Type字段的默认值,解决 issue#6 提到的乱码问题。
gnosaij
published 0.3.12 •

gnosaij
published 0.3.11 •

Changelog

Source

v0.3.11 / 2016-02-26

  • 添加overrideSelfConcurrent参数,详见文档。
  • API的processfix方法中,传入了第二个参数,保存该次请求相关的数据,也为后续扩展做准备。
let Order = DBContext.create('Order', {
  create: {
    url: 'api/for/searchAddress',
    data: {
      fixData: '固参'
    },
    fit: function(response, vars) {
      // `vars.data`的值是: {fixData: '固参', liveData: '动参'}
      console.log(vars.data);
    },
    process: function(content, vars) {
      // `vars.data`的值是: {fixData: '固参', liveData: '动参'}
      console.log(vars.data);
    }
  }
});
  • 单元测试case数量加到94个。
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