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

ajax4sablejs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajax4sablejs - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/index.js

@@ -13,3 +13,3 @@ parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"LNzP":[function(require,module,exports) {

var global = arguments[3];
var e=arguments[3],r=t(require("@babel/runtime/helpers/typeof"));function t(e){return e&&e.__esModule?e:{default:e}}var n=require("./ajax");function a(e,r){for(var t=e.isArray(r)?[]:{},n=e.getGlobal(),o=e.getProperty(n,"Object"),i=e.getProperty(o,"keys"),s=e.call(i,e.createUndefined(),r),c=e.getProperty(s,"length"),u=e.asNumber(c),g=0;g<u;g++){var l=e.getProperty(s,g),y=e.asString(l),p=e.getProperty(r,y);e.isUndefined(p)?t[y]=void 0:e.isNull(p)?t[y]=null:e.isBoolean(p)?t[y]=e.asBoolean(p):e.isNumber(p)?t[y]=e.asNumber(p):e.isString(p)?t[y]=e.asString(p):e.isObject(p)&&(t[y]=a(e,p))}return t}function o(e,t){var n=t.length?e.createArray():e.createObject();for(var a in t)if(t.hasOwnProperty(a)){var i=t[a];void 0===i?e.setProperty(n,a,e.createUndefined()):null===i?e.setProperty(n,a,e.createNull()):"boolean"==typeof i?e.setProperty(n,a,e.createBoolean(i)):"number"==typeof i?e.setProperty(n,a,e.createNumber(i)):"string"==typeof i?e.setProperty(n,a,e.createString(i)):"object"===(0,r.default)(i)&&e.setProperty(n,a,o(e,i))}return n}module.exports=function(e){var r=e.getGlobal(),t=e.createFunction("ajax",function(r){var t={},i=e.getProperty(r,"url"),s=e.getProperty(r,"type"),c=e.getProperty(r,"method"),u=e.getProperty(r,"headers"),g=e.getProperty(r,"data"),l=e.getProperty(r,"success"),y=e.getProperty(r,"error");return e.isString(i)&&(t.url=e.asString(i)),e.isString(s)&&(t.type=e.asString(s)),e.isString(c)&&(t.method=e.asString(c)),e.isObject(u)&&(t.headers=a(e,u)),e.isString(g)?t.data=e.asString(g):e.isObject(g)&&(t.data=a(e,g)),e.isFunction(l)&&(t.success=function(r,t){e.call(l,e.createUndefined(),"string"==typeof r?e.createString(r):o(e,r),o(e,t))}),e.isFunction(y)&&(t.error=function(r,t){e.call(y,e.createUndefined(),e.createNumber(r),e.createNumber(t))}),n(t),e.createUndefined()});e.setProperty(r,"ajax",t)};
var e=arguments[3],r=t(require("@babel/runtime/helpers/typeof"));function t(e){return e&&e.__esModule?e:{default:e}}var a=require("./ajax");function n(e,r){for(var t=e.isArray(r)?[]:{},a=e.getGlobal(),o=e.getProperty(a,"Object"),i=e.getProperty(o,"keys"),s=e.call(i,e.createUndefined(),r),c=e.getProperty(s,"length"),u=e.asNumber(c),l=0;l<u;l++){var g=e.getProperty(s,l),p=e.asString(g),y=e.getProperty(r,p);e.isUndefined(y)?t[p]=void 0:e.isNull(y)?t[p]=null:e.isBoolean(y)?t[p]=e.asBoolean(y):e.isNumber(y)?t[p]=e.asNumber(y):e.isString(y)?t[p]=e.asString(y):e.isObject(y)&&(t[p]=n(e,y))}return t}function o(e,t){var a=t.length?e.createArray():e.createObject();for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];void 0===i?e.setProperty(a,n,e.createUndefined()):null===i?e.setProperty(a,n,e.createNull()):"boolean"==typeof i?e.setProperty(a,n,e.createBoolean(i)):"number"==typeof i?e.setProperty(a,n,e.createNumber(i)):"string"==typeof i?e.setProperty(a,n,e.createString(i)):"object"===(0,r.default)(i)&&e.setProperty(a,n,o(e,i))}return a}module.exports=function(e){var r=e.getGlobal(),t=e.createFunction("ajax",function(r){var t={},i=e.getProperty(r,"url"),s=e.getProperty(r,"type"),c=e.getProperty(r,"method"),u=e.getProperty(r,"headers"),l=e.getProperty(r,"data"),g=e.getProperty(r,"success"),p=e.getProperty(r,"error");return e.isString(i)&&(t.url=e.asString(i)),e.isString(s)&&(t.type=e.asString(s)),e.isString(c)&&(t.method=e.asString(c)),e.isObject(u)&&(t.headers=n(e,u)),e.isString(l)?t.data=e.asString(l):e.isObject(l)&&(t.data=n(e,l)),e.isFunction(g)&&(t.success=function(r,t){e.call(g,e.createUndefined(),"string"==typeof r?e.createString(r):o(e,r),o(e,t))}),e.isFunction(p)&&(t.error=function(r,t){e.call(p,e.createUndefined(),e.createNumber(r),e.createNumber(t))}),a(t),e.createUndefined()});e.setProperty(r,"ajax",t)},module.exports.ajax=a;
},{"@babel/runtime/helpers/typeof":"LNzP","./ajax":"PSwN"}]},{},["Focm"], null)

@@ -113,1 +113,3 @@ const ajax = require("./ajax");

};
module.exports.ajax = ajax;
{
"name": "ajax4sablejs",
"version": "1.0.2",
"version": "1.0.3",
"description": "A tiny and simple ajax implenment for sablejs",

@@ -25,7 +25,7 @@ "keywords": [

"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"@babel/core": "^7.14.8",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.8",
"sablejs": "^1.0.2"
}
}
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