@bbn/bbn 2.0.217 → 2.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtDate extends bbnDt<Temporal.PlainDate> {
4
4
  readonly kind: bbnDtKind;
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  import getRow from '../../fn/object/getRow.js';
4
4
  export default class bbnDtDate extends bbnDt {
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtDateTime extends bbnDt<Temporal.PlainDateTime> {
4
4
  readonly kind: bbnDtKind;
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  import getRow from '../../fn/object/getRow.js';
4
4
  export default class bbnDtDateTime extends bbnDt {
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import { bbnDtTemporal } from '../vars/types.js';
3
3
  import bbnDtDuration from './duration.js';
4
4
  export declare abstract class bbnDt<TValue extends bbnDtTemporal> {
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _bbnDt_value;
13
- import { Temporal } from 'temporal-polyfill';
13
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
14
14
  import { unitsCorrespondence, units, formatsMap } from '../vars/units.js';
15
15
  import _ from '../../_.js';
16
16
  import substr from '../../fn/string/substr.js';
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  export default class bbnDtDuration {
3
3
  #private;
4
4
  static fromUnit(value: number, unit: string): bbnDtDuration;
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _bbnDtDuration_instances, _bbnDtDuration_value, _bbnDtDuration_unit, _bbnDtDuration_getUnitValue;
13
- import { Temporal } from 'temporal-polyfill';
13
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
14
14
  import { units, unitsCorrespondence } from '../vars/units.js';
15
15
  import getRow from '../../fn/object/getRow.js';
16
16
  const DURATION_RELATIVE_TO = Temporal.ZonedDateTime.from('1970-01-01T00:00Z[UTC]');
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtMonthDay extends bbnDt<Temporal.PlainMonthDay> {
4
4
  readonly kind: bbnDtKind;
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtMonthDay extends bbnDt {
4
4
  constructor(m, d) {
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtTime extends bbnDt<Temporal.PlainTime> {
4
4
  readonly kind: 'time';
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtTime extends bbnDt {
4
4
  constructor(h, i, s, ms) {
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtYearMonth extends bbnDt<Temporal.PlainYearMonth> {
4
4
  readonly kind: bbnDtKind;
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  import getRow from '../../fn/object/getRow.js';
4
4
  export default class bbnDtYearMonth extends bbnDt {
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDt from './dt.js';
3
3
  export default class bbnDtZoned extends bbnDt<Temporal.ZonedDateTime> {
4
4
  readonly kind: bbnDtKind;
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import fromJsDate from '../functions/fromJsDate.js';
3
3
  import bbnDt from './dt.js';
4
4
  export default class bbnDtZoned extends bbnDt {
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  /**
3
3
  * Convert a JS Date into:
4
4
  * - Temporal.Instant (if hasZone=true)
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  /**
3
3
  * Convert a JS Date into:
4
4
  * - Temporal.Instant (if hasZone=true)
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  import buildLocaleFromIntl from './buildLocaleFromIntl.js';
3
3
  import bbnDtZoned from '../classes/zoned.js';
4
4
  import bbnDtDateTime from '../classes/dateTime.js';
@@ -1,2 +1,2 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../../../node_modules/temporal-polyfill/index.js';
2
2
  export type bbnDtTemporal = Temporal.PlainDateTime | Temporal.PlainDate | Temporal.PlainTime | Temporal.PlainYearMonth | Temporal.PlainMonthDay | Temporal.ZonedDateTime;
package/dist/dt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../node_modules/temporal-polyfill/index.js';
2
2
  import bbnDtDateTime from './dt/classes/dateTime.js';
3
3
  import bbnDtDate from './dt/classes/date.js';
4
4
  import bbnDtTime from './dt/classes/zoned.js';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../node_modules/temporal-polyfill/index.js';
2
2
  declare const bbn: Bbn;
3
3
  export { bbn as default, bbn, Temporal };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from 'temporal-polyfill';
1
+ import { Temporal } from '../node_modules/temporal-polyfill/index.js';
2
2
  import _ from './_.js';
3
3
  import $ from './$.js';
4
4
  import lng from './lng.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.217",
3
+ "version": "2.0.218",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- declare const bbn: Bbn;
2
- export default bbn;
@@ -1,94 +0,0 @@
1
- import _ from './_.js';
2
- import $ from './$.js';
3
- import lng from './lng.js';
4
- import vars from './vars.js';
5
- import env from './env.js';
6
- import com from './com.js';
7
- import db from './db.js';
8
- import fn from './fn.js';
9
- import dt from './dt.js';
10
- const bbn = {
11
- version: "1.0.1",
12
- opt: {
13
- _cat: {}
14
- },
15
- app: {},
16
- _,
17
- $,
18
- lng,
19
- var: vars,
20
- dt,
21
- com,
22
- env,
23
- db,
24
- fn,
25
- info: [
26
- {
27
- value: 'ajax',
28
- label: 'Loading and streaming',
29
- description: 'Functions related to Ajax requests',
30
- icon: 'nf nf-fa-rocket',
31
- }, {
32
- value: 'browser',
33
- label: 'Browser-only',
34
- description: 'Functions that can only be run in the browser',
35
- icon: 'nf nf-fa-desktop',
36
- }, {
37
- value: 'convert',
38
- label: 'Conversion',
39
- description: 'Functions related to data conversion',
40
- icon: 'nf nf-fa-exchange',
41
- }, {
42
- value: 'datetime',
43
- label: 'Date and time',
44
- description: 'Functions related to dates and times',
45
- icon: 'nf nf-fa-calendar',
46
- }, {
47
- value: 'form',
48
- label: 'Form manipulation',
49
- description: 'Functions related to form manipulation and validation',
50
- icon: 'nf nf-fa-edit',
51
- }, {
52
- value: 'html',
53
- label: 'HTML manipulation',
54
- description: 'Functions related to HTML manipulation and DOM interaction',
55
- icon: 'nf nf-fa-html5',
56
- }, {
57
- value: 'loop',
58
- label: 'Looping',
59
- description: 'Functions related to looping through arrays and objects',
60
- icon: 'nf nf-fa-repeat',
61
- }, {
62
- value: 'misc',
63
- label: 'Miscellaneous',
64
- description: 'Miscellaneous functions that do not fit into other categories',
65
- icon: 'nf nf-fa-cubes',
66
- }, {
67
- value: 'object',
68
- label: 'Object manipulation',
69
- description: 'Functions related to object manipulation and inspection',
70
- icon: 'nf nf-fa-object_group',
71
- }, {
72
- value: 'phone',
73
- label: 'Phone and contact',
74
- description: 'Functions related to phone numbers and contact information',
75
- icon: 'nf nf-fa-phone',
76
- }, {
77
- value: 'string',
78
- label: 'String manipulation',
79
- description: 'Functions related to string manipulation and formatting',
80
- icon: 'nf nf-fa-text_height'
81
- }, {
82
- value: 'style',
83
- label: 'Styling and layout',
84
- description: 'Functions related to styling and layout management',
85
- icon: 'nf nf-fa-paint_brush',
86
- }, {
87
- value: 'type',
88
- label: 'Type checking',
89
- description: 'Functions related to type checking and validation',
90
- icon: 'nf nf-fa-check_square',
91
- }
92
- ]
93
- };
94
- export default bbn;