Socket
Socket
Sign inDemoInstall

js-climacell-api

Package Overview
Dependencies
7
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

main.d.ts

5

browser.d.ts

@@ -1,1 +0,4 @@

export * from './dist/browser'
import { Main } from "./main";
export default class ClimaCellAPI extends Main {
constructor();
}

2

browser.js

@@ -1,1 +0,1 @@

module.exports = require("./dist/browser")
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ClimaCellAPI",[],e):"object"==typeof exports?exports.ClimaCellAPI=e():t.ClimaCellAPI=e()}(this,(function(){return(()=>{"use strict";var t={385:(t,e,n)=>{n.d(e,{default:()=>r});var o;o=new WeakMap;class r extends class{constructor(t){o.set(this,void 0),function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");e.set(t,n)}(this,o,t)}getData(){return t=this,e=void 0,r=function*(){return(yield function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}(this,o).call(this,"https://data.climacell.co/v4/timelines")).json()},new((n=void 0)||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}s((r=r.apply(t,e||[])).next())}));var t,e,n,r}}{constructor(){super(window.fetch.bind(window))}}}},e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}return n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n(385)})().default}));

@@ -1,1 +0,4 @@

export * from './dist/node'
import { Main } from './main';
export default class ClimaCellAPI extends Main {
constructor();
}

@@ -1,1 +0,1 @@

module.exports = require("./dist/node")
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ClimaCellAPI",[],t):"object"==typeof exports?exports.ClimaCellAPI=t():e.ClimaCellAPI=t()}(global,(function(){return(()=>{"use strict";var e={663:(e,t,n)=>{n.d(t,{default:()=>r});var o;o=new WeakMap;class r extends class{constructor(e){o.set(this,void 0),function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");t.set(e,n)}(this,o,e)}getData(){return e=this,t=void 0,r=function*(){return(yield function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}(this,o).call(this,"https://data.climacell.co/v4/timelines")).json()},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}));var e,t,n,r}}{constructor(){super(n(786))}}},786:e=>{e.exports=require("node-fetch")}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}return n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(663)})().default}));
{
"name": "js-climacell-api",
"version": "0.0.2",
"version": "0.0.3",
"description": "A wrapper for ClimaCell available to be used in both browser and node js environments",
"scripts": {
"expose": "generate-export-aliases",
"expose": "node unwrap.js",
"start:dev": "webpack --mode=development --watch --progress",

@@ -17,8 +17,2 @@ "build:prod": "webpack --mode=production",

},
"config": {
"exportAliases": {
"node": "./dist/node",
"browser": "./dist/browser"
}
},
"repository": {

@@ -48,3 +42,2 @@ "type": "git",

"eslint-plugin-prettier": "^3.3.1",
"generate-export-aliases": "^1.1.0",
"jest": "^26.6.3",

@@ -51,0 +44,0 @@ "prettier": "^2.2.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc